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 IV/NIV Badge only for active consultations #8603

Merged
Changes from 3 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
3 changes: 2 additions & 1 deletion src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,8 @@ export const PatientManager = () => {
{patient.last_consultation?.last_daily_round
?.ventilator_interface &&
patient.last_consultation?.last_daily_round
?.ventilator_interface !== "UNKNOWN" && (
?.ventilator_interface !== "UNKNOWN" &&
!patient.last_consultation?.discharge_date && (
<div className="mb-auto flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-primary-600 bg-primary-100 text-xs font-semibold text-primary-600">
{
RESPIRATORY_SUPPORT.find(
Expand Down
Loading