From 02a9ab2230460e8159f9076e2d8609786b7669b7 Mon Sep 17 00:00:00 2001 From: shraman <22bcs229@iiitdmj.ac.in> Date: Sun, 11 Feb 2024 17:23:47 +0530 Subject: [PATCH] expanded the medical conditions the patient has (comorbidities) --- src/Common/constants.tsx | 12 +++-- src/Components/Patient/PatientRegister.tsx | 56 +++++++++++++++++++--- 2 files changed, 59 insertions(+), 9 deletions(-) diff --git a/src/Common/constants.tsx b/src/Common/constants.tsx index ada2fc6e2bf..d29c24a8d79 100644 --- a/src/Common/constants.tsx +++ b/src/Common/constants.tsx @@ -244,10 +244,16 @@ export const MEDICAL_HISTORY_CHOICES: Array = [ { id: 2, text: "Diabetes" }, { id: 3, text: "Heart Disease" }, { id: 4, text: "HyperTension" }, - { id: 5, text: "Kidney Diseases" }, - { id: 6, text: "Lung Diseases/Asthma" }, + { id: 5, text: "Chronic Renal Disease" }, + { id: 6, text: "Asthma" }, { id: 7, text: "Cancer" }, - { id: 8, text: "OTHER" }, + { id: 8, text: "COPD" }, + { id: 9, text: "Bronchitis" }, + { id: 10, text: "Chronic neurological or neuromuscular disease" }, + { id: 11, text: "Immunocompromised condition" }, + { id: 12, text: "Liver Disease" }, + { id: 13, text: "TB" }, + { id: 14, text: "OTHER" }, ]; export const REVIEW_AT_CHOICES: Array = [ diff --git a/src/Components/Patient/PatientRegister.tsx b/src/Components/Patient/PatientRegister.tsx index 2f18ef36dbb..51b2fa35586 100644 --- a/src/Components/Patient/PatientRegister.tsx +++ b/src/Components/Patient/PatientRegister.tsx @@ -1021,13 +1021,57 @@ export const PatientRegister = (props: PatientRegisterProps) => { label={id !== 1 ? title : "NONE"} /> - {id !== 1 && (field("medical_history").value ?? []).includes(id) && ( + {id !== 1 && + id !== 7 && + id !== 13 && + (field("medical_history").value ?? []).includes(id) && ( +
+ +
+ )} + {id === 7 && (field("medical_history").value ?? []).includes(id) && (
- + +
+ )} + {id === 13 && (field("medical_history").value ?? []).includes(id) && ( +
+ + +
+ +
)}