From 0cd64122b8ff7996552aebbd162c9f675db14715 Mon Sep 17 00:00:00 2001 From: JOSHIK ROSHAN <96165631+JOSHIK27@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:15:11 +0100 Subject: [PATCH 1/2] Fixed word splitting issue (#8384) * fixed issue 8304 * fixes 8304 * Update src/Components/Facility/ConsultationForm.tsx Co-authored-by: Rithvik Nishad * fixes#8365 * fixed word spacing issue --------- Co-authored-by: Rithvik Nishad Co-authored-by: Rithvik Nishad --- .../Facility/ConsultationDetails/Events/GenericEvent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx b/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx index 04ab5657149..2c4349177a5 100644 --- a/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx +++ b/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx @@ -93,7 +93,7 @@ export default function GenericEvent(props: IProps) { {t(key).replaceAll(/_/g, " ")} - + {formatValue(value, key)} From a65681ee18d403ad5776f49a800d59b7285f4d96 Mon Sep 17 00:00:00 2001 From: JOSHIK ROSHAN <96165631+JOSHIK27@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:33:29 +0100 Subject: [PATCH 2/2] Made General Instructions field in Consultation Form non mandatory (#8368) --- src/Components/Facility/ConsultationForm.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Components/Facility/ConsultationForm.tsx b/src/Components/Facility/ConsultationForm.tsx index 355d4ce745e..8b946cf3cc6 100644 --- a/src/Components/Facility/ConsultationForm.tsx +++ b/src/Components/Facility/ConsultationForm.tsx @@ -539,15 +539,6 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { invalidForm = true; } return; - case "consultation_notes": - if (!state.form[field]) { - errors[field] = t("field_required"); - invalidForm = true; - } else if (!state.form[field].replace(/\s/g, "").length) { - errors[field] = "Consultation notes can not be empty"; - invalidForm = true; - } - return; case "is_telemedicine": if ( state.form.admitted_to === "Home Isolation" && @@ -1405,7 +1396,6 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { >