Skip to content

Commit

Permalink
Removes symptoms onset date range filter from patient filters (#8493)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Sep 5, 2024
1 parent e69116f commit 760ef63
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
4 changes: 0 additions & 4 deletions src/Components/Facility/DischargedPatientsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,6 @@ const DischargedPatientsList = ({
badge("Declared Status", "is_declared_positive"),
...dateRange("Result", "date_of_result"),
...dateRange("Declared positive", "date_declared_positive"),
...dateRange(
"Symptoms onset",
"last_consultation_symptoms_onset_date",
),
...dateRange("Last vaccinated", "last_vaccinated_date"),
{
name: "Telemedicine",
Expand Down
12 changes: 0 additions & 12 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,6 @@ export const PatientManager = () => {
covin_id: qParams.covin_id || undefined,
is_kasp: qParams.is_kasp || undefined,
is_declared_positive: qParams.is_declared_positive || undefined,
last_consultation_symptoms_onset_date_before:
qParams.last_consultation_symptoms_onset_date_before || undefined,
last_consultation_symptoms_onset_date_after:
qParams.last_consultation_symptoms_onset_date_after || undefined,
last_vaccinated_date_before:
qParams.last_vaccinated_date_before || undefined,
last_vaccinated_date_after: qParams.last_vaccinated_date_after || undefined,
Expand Down Expand Up @@ -262,10 +258,6 @@ export const PatientManager = () => {
params.last_consultation_discharge_date_before,
params.last_consultation_discharge_date_after,
],
[
params.last_consultation_symptoms_onset_date_before,
params.last_consultation_symptoms_onset_date_after,
],
];

const durations = date_range_fields.map((field: string[]) => {
Expand Down Expand Up @@ -1125,10 +1117,6 @@ export const PatientManager = () => {
),
badge("Declared Status", "is_declared_positive"),
...dateRange("Declared positive", "date_declared_positive"),
...dateRange(
"Symptoms onset",
"last_consultation_symptoms_onset_date",
),
...dateRange("Last vaccinated", "last_vaccinated_date"),
{
name: "Telemedicine",
Expand Down
27 changes: 0 additions & 27 deletions src/Components/Patient/PatientFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ export default function PatientFilter(props: any) {
covin_id: filter.covin_id || null,
is_kasp: filter.is_kasp || null,
is_declared_positive: filter.is_declared_positive || null,
last_consultation_symptoms_onset_date_before:
filter.last_consultation_symptoms_onset_date_before || null,
last_consultation_symptoms_onset_date_after:
filter.last_consultation_symptoms_onset_date_after || null,
last_vaccinated_date_before: filter.last_vaccinated_date_before || null,
last_vaccinated_date_after: filter.last_vaccinated_date_after || null,
last_consultation_is_telemedicine:
Expand Down Expand Up @@ -191,8 +187,6 @@ export default function PatientFilter(props: any) {
covin_id,
is_kasp,
is_declared_positive,
last_consultation_symptoms_onset_date_before,
last_consultation_symptoms_onset_date_after,
last_vaccinated_date_before,
last_vaccinated_date_after,
last_consultation_is_telemedicine,
Expand Down Expand Up @@ -250,12 +244,6 @@ export default function PatientFilter(props: any) {
covin_id: covin_id || "",
is_kasp: is_kasp || "",
is_declared_positive: is_declared_positive || "",
last_consultation_symptoms_onset_date_before: dateQueryString(
last_consultation_symptoms_onset_date_before,
),
last_consultation_symptoms_onset_date_after: dateQueryString(
last_consultation_symptoms_onset_date_after,
),
last_vaccinated_date_before: dateQueryString(last_vaccinated_date_before),
last_vaccinated_date_after: dateQueryString(last_vaccinated_date_after),
last_consultation_is_telemedicine:
Expand Down Expand Up @@ -590,21 +578,6 @@ export default function PatientFilter(props: any) {
onChange={handleDateRangeChange}
errorClassName="hidden"
/>
<DateRangeFormField
labelClassName="text-sm"
name="last_consultation_symptoms_onset_date"
label="Onset of Symptoms Date"
value={{
start: getDate(
filterState.last_consultation_symptoms_onset_date_after,
),
end: getDate(
filterState.last_consultation_symptoms_onset_date_before,
),
}}
onChange={handleDateRangeChange}
errorClassName="hidden"
/>
</div>
</AccordionV2>
<AccordionV2
Expand Down

0 comments on commit 760ef63

Please sign in to comment.