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

Show icu admission date on consultations dashboard #6779

Merged
merged 8 commits into from
Jan 4, 2024
Merged
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
19 changes: 18 additions & 1 deletion src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default function PatientInfoCard(props: {
);
})}
</div>
{!!consultation?.discharge_date && (
{consultation?.discharge_date ? (
<div className="mt-3 flex gap-4 bg-cyan-300 px-3 py-1 text-sm font-medium">
<div>
<span>
Expand All @@ -340,6 +340,23 @@ export default function PatientInfoCard(props: {
</span>
</div>
</div>
) : (
<div className="mt-3 flex gap-4 bg-cyan-300 px-3 py-1 text-sm font-medium">
<span className="flex">
{consultation?.encounter_date && (
<div>
Admission on{" "}
{formatDateTime(consultation?.encounter_date)}
</div>
)}
{consultation?.icu_admission_date && (
<div>
, ICU Admission on{" "}
{formatDateTime(consultation?.icu_admission_date)}
</div>
)}
</span>
</div>
)}
</div>
</div>
Expand Down
Loading