diff --git a/src/Components/Patient/ManagePatients.tsx b/src/Components/Patient/ManagePatients.tsx index 06e339fee0c..e2fbfcf93a1 100644 --- a/src/Components/Patient/ManagePatients.tsx +++ b/src/Components/Patient/ManagePatients.tsx @@ -135,6 +135,7 @@ export const PatientManager = (props: any) => { : undefined, local_body: qParams.lsgBody || undefined, facility: facilityId || qParams.facility, + facility_type: qParams.facility_type || undefined, district: qParams.district || undefined, offset: (qParams.page ? qParams.page - 1 : 0) * RESULT_LIMIT, created_date_before: qParams.created_date_before || undefined, @@ -226,6 +227,7 @@ export const PatientManager = (props: any) => { qParams.age_min, qParams.last_consultation_admitted_to_list, qParams.facility, + qParams.facility_type, qParams.district, qParams.category, qParams.gender, @@ -746,6 +748,7 @@ export const PatientManager = (props: any) => { {badge("COWIN ID", qParams.covin_id, "covin_id")} {badge("Facility", facilityName, "facility")} + {badge("Facility Type", qParams.facility_type, "facility_type")} {badge("District", districtName, "district")} {badge("Ordering", qParams.ordering, "ordering")} {badge("Category", qParams.category, "category")} diff --git a/src/Components/Patient/PatientFilterV2.tsx b/src/Components/Patient/PatientFilterV2.tsx index f33b8edd0d9..ee24618c4bf 100644 --- a/src/Components/Patient/PatientFilterV2.tsx +++ b/src/Components/Patient/PatientFilterV2.tsx @@ -9,6 +9,7 @@ import { import { PATIENT_FILTER_ORDER, GENDER_TYPES, + FACILITY_TYPES, DISEASE_STATUS, PATIENT_FILTER_CATEGORY, PATIENT_FILTER_ADMITTED_TO, @@ -51,6 +52,7 @@ export default function PatientFilterV2(props: any) { const [filterState, setFilterState] = useMergeState({ district: filter.district || "", facility: filter.facility || "", + facility_type: filter.facility_type || "", lsgBody: filter.lsgBody || "", facility_ref: null, lsgBody_ref: null, @@ -102,6 +104,7 @@ export default function PatientFilterV2(props: any) { const clearFilterState = { district: "", facility: "", + facility_type: "", lsgBody: "", facility_ref: null, lsgBody_ref: null, @@ -248,6 +251,7 @@ export default function PatientFilterV2(props: any) { const { district, facility, + facility_type, lsgBody, date_declared_positive_before, date_declared_positive_after, @@ -284,6 +288,7 @@ export default function PatientFilterV2(props: any) { district: district || "", lsgBody: lsgBody || "", facility: facility || "", + facility_type: facility_type || "", date_declared_positive_before: date_declared_positive_before && moment(date_declared_positive_before).isValid() @@ -489,6 +494,21 @@ export default function PatientFilterV2(props: any) { errors={""} /> + +
+ Facility type + +
+
Gender