Skip to content

Commit

Permalink
removed admitted to
Browse files Browse the repository at this point in the history
  • Loading branch information
skks1212 committed May 21, 2024
1 parent ac7fffd commit 94dba10
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions src/Components/Patient/PatientFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,25 +362,27 @@ export default function PatientFilter(props: any) {
/>
</div>
</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 || (
<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 94dba10

Please sign in to comment.