Skip to content

Commit

Permalink
enabled filter (#7933)
Browse files Browse the repository at this point in the history
Co-authored-by: Rithvik Nishad <mail@rithviknishad.dev>
  • Loading branch information
shivankacker and rithviknishad authored Sep 24, 2024
1 parent ea57831 commit a0f5c52
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 @@ -343,27 +343,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>
<div className="w-full flex-none" id="consent-type-select">
<FieldLabel className="text-sm">Has consent records for</FieldLabel>
<MultiSelectMenuV2
Expand Down

0 comments on commit a0f5c52

Please sign in to comment.