Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expanded the medical conditions the patient has (comorbidities) #7200

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/Common/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,16 @@ export const MEDICAL_HISTORY_CHOICES: Array<OptionsType> = [
{ 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<OptionsType> = [
Expand Down
56 changes: 50 additions & 6 deletions src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1021,13 +1021,57 @@ export const PatientRegister = (props: PatientRegisterProps) => {
label={id !== 1 ? title : "NONE"}
/>
</div>
{id !== 1 && (field("medical_history").value ?? []).includes(id) && (
{id !== 1 &&
id !== 7 &&
id !== 13 &&
(field("medical_history").value ?? []).includes(id) && (
<div className="mx-4">
<TextAreaFormField
{...field(textField)}
placeholder="Details"
rows={2}
/>
</div>
)}
{id === 7 && (field("medical_history").value ?? []).includes(id) && (
<div className="mx-4">
<TextAreaFormField
{...field(textField)}
placeholder="Details"
rows={2}
/>
<select>
<option value="type_of_cancer">Type of cancer</option>
<>
<option value="breast">Breast</option>
<option value="uterus">Uterus</option>
<option value="lung">Lung</option>
<option value="skin">Skin</option>
<option value="colorectal">Colorectal</option>
<option value="uterus">Leukaemia</option>
<option value="uterus">Bladder</option>
<option value="uterus">Prostate</option>
<option value="uterus">Melanoma</option>
<option value="uterus">Lymphoma</option>
<option value="uterus">Brain</option>
<option value="uterus">Liver</option>
<option value="uterus">Thyroid</option>
<option value="uterus">Others</option>
</>
</select>
</div>
)}
{id === 13 && (field("medical_history").value ?? []).includes(id) && (
<div className="mx-4">
<label>
<input type="radio" name="status" value="active" />
Active
</label>
<label>
<input type="radio" name="status" value="old" />
Old
</label>
<div>
<label>
Treated Duration:
<input type="text" name="duration" />
</label>
</div>
</div>
)}
</div>
Expand Down
Loading