diff --git a/src/patients/visits/FilterPatientModal.tsx b/src/patients/visits/FilterPatientModal.tsx index e483305b1e..9ab199cbe6 100644 --- a/src/patients/visits/FilterPatientModal.tsx +++ b/src/patients/visits/FilterPatientModal.tsx @@ -2,7 +2,11 @@ import React, { useState } from 'react' import { Label, Modal, Select } from '@hospitalrun/components' import useTranslator from '../../shared/hooks/useTranslator' import { Button } from 'react-bootstrap' -import { appointmentTypes } from '../../scheduling/appointments/constants/Appointment' +import { + appointmentStatus, + appointmentTypes, +} from '../../scheduling/appointments/constants/Appointment' +// import { getAllPatients } from '../../scheduling/appointments/service/Patients' interface Props { show: boolean @@ -11,13 +15,21 @@ interface Props { } const FilterPatientModal = ({ show, onCloseButtonClick, onFieldChange }: Props) => { + // const func = () => { + // console.log('ALL PATIENTS DATA', getAllPatients()) + // } + + // useEffect(() => { + // func() + // }, []) + const { t } = useTranslator() - const [patientId, setpatientId] = useState('') + const [patientStatus, setPatientStatus] = useState('') const [appointmentType, setappointmentType] = useState('') const clearValues = () => { - setpatientId('') + setPatientStatus('') setappointmentType('') } @@ -32,9 +44,17 @@ const FilterPatientModal = ({ show, onCloseButtonClick, onFieldChange }: Props) onChange={(values) => setappointmentType(values[0])} /> +
+
+
+
+