Skip to content

Commit

Permalink
reenables discharge patient admitted to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed May 28, 2024
1 parent 6b75578 commit ac6aee0
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/Components/Patient/PatientFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,27 +352,25 @@ export default function PatientFilter(props: any) {
/>
</div>
</div>
{props.dischargePage || (
<div className="w-full flex-none" id="bed-type-select">
<FieldLabel className="text-sm">
{props.dischargePage && "Last "}Admitted to (Bed Types)
</FieldLabel>
<MultiSelectMenuV2
id="last_consultation_admitted_bed_type_list"
placeholder="Select bed types"
options={ADMITTED_TO}
value={filterState.last_consultation_admitted_bed_type_list}
optionValue={(o) => o.id}
optionLabel={(o) => o.text}
onChange={(o) =>
setFilterState({
...filterState,
last_consultation_admitted_bed_type_list: o,
})
}
/>
</div>
)}
<div className="w-full flex-none" id="bed-type-select">
<FieldLabel className="text-sm">
{props.dischargePage && "Last "}Admitted to (Bed Types)
</FieldLabel>
<MultiSelectMenuV2
id="last_consultation_admitted_bed_type_list"
placeholder="Select bed types"
options={ADMITTED_TO}
value={filterState.last_consultation_admitted_bed_type_list}
optionValue={(o) => o.id}
optionLabel={(o) => o.text}
onChange={(o) =>
setFilterState({
...filterState,
last_consultation_admitted_bed_type_list: o,
})
}
/>
</div>
{(props.dischargePage ||
["StateAdmin", "StateReadOnlyAdmin"].includes(
authUser.user_type,
Expand Down

0 comments on commit ac6aee0

Please sign in to comment.