Skip to content

Commit

Permalink
Fix Domiciliary Care discrepancy. (#7568)
Browse files Browse the repository at this point in the history
* Fix bug

* remove extra space

Co-authored-by: Ashesh <[email protected]>

---------

Co-authored-by: Khavin Shankar <[email protected]>
Co-authored-by: Ashesh <[email protected]>
  • Loading branch information
3 people authored Apr 17, 2024
1 parent 6500fc6 commit 7fb4185
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Components/Facility/TreatmentSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,13 @@ const TreatmentSummary = (props: any) => {
</div>

<div className="col-span-1 px-3 py-2">
<b>Date of admission : </b>
{consultationData?.suggestion === "DC" ? (
<b>Date of domiciliary care commenced : </b>
) : (
<b>Date of admission : </b>
)}
<span>
{consultationData?.admitted
{consultationData?.encounter_date
? formatDateTime(consultationData.encounter_date)
: " --/--/----"}
</span>
Expand Down
4 changes: 3 additions & 1 deletion src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ export default function PatientInfoCard(props: {
<span className="flex">
{consultation?.encounter_date && (
<div>
Admission on:{" "}
{consultation.suggestion === "DC"
? "Commenced on: "
: "Admitted on: "}
{formatDateTime(consultation?.encounter_date)}
</div>
)}
Expand Down

0 comments on commit 7fb4185

Please sign in to comment.