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

Fix: Allergy count to Updated to has allergies text #9399

Merged
Merged
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
1 change: 1 addition & 0 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"get_tests": "Get Tests",
"goal": "Our goal is to continuously improve the quality and accessibility of public healthcare services using digital tools.",
"granted_on": "Granted On",
"has_allergies": "Has Allergies",
"has_domestic_healthcare_support": "Has domestic healthcare support?",
"has_sari": "Has SARI (Severe Acute Respiratory illness)?",
"health-profile": "Health Profile",
Expand Down
15 changes: 8 additions & 7 deletions src/components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,14 @@ export const PatientHome = (props: {
text={t("TELEMEDICINE")}
/>
)}
{patientData.allergies && (
<Chip
variant="danger"
size="small"
text={`${t("allergies")} ${patientData.allergies.length}`}
/>
)}
{patientData.allergies &&
patientData.allergies.trim().length > 0 && (
<Chip
variant="danger"
size="small"
text={t("has_allergies")}
/>
)}
</div>
</div>

Expand Down
Loading