From e73c76e3abbdf50020fb351c031b7ed53f5e3629 Mon Sep 17 00:00:00 2001 From: Salah-BOUYAHIA Date: Thu, 18 Jul 2024 10:23:31 +0200 Subject: [PATCH] fix: fix value-quantity default into observation --- src/utils/cohortCreation.ts | 2 +- src/utils/mappers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/cohortCreation.ts b/src/utils/cohortCreation.ts index cbc72c457..1954ed6aa 100644 --- a/src/utils/cohortCreation.ts +++ b/src/utils/cohortCreation.ts @@ -507,7 +507,7 @@ const constructFilterFhir = (criterion: SelectedCriteriaType, deidentified: bool case CriteriaType.OBSERVATION: { const unreducedFilterFhir = [ - `subject.active=true&${OBSERVATION_STATUS}=${BiologyStatus.VALIDATED}&value-quantity=ge0,le0`, + `subject.active=true&${OBSERVATION_STATUS}=${BiologyStatus.VALIDATED}`, filtersBuilders(OBSERVATION_CODE, buildLabelObjectFilter(criterion.code, BIOLOGY_HIERARCHY_ITM_ANABIO)), filtersBuilders(ENCOUNTER_SERVICE_PROVIDER, buildEncounterServiceFilter(criterion.encounterService)), filtersBuilders(ENCOUNTER_STATUS_REFERENCE, buildLabelObjectFilter(criterion.encounterStatus)), diff --git a/src/utils/mappers.ts b/src/utils/mappers.ts index 49075ce4b..1b3c93503 100644 --- a/src/utils/mappers.ts +++ b/src/utils/mappers.ts @@ -149,7 +149,7 @@ export const buildObservationValueFilter = (criterion: ObservationDataType, fhir return `${fhirKey}=${valueComparatorFilter}${criterion.searchByValue[0]}` } } - return '' + return `${fhirKey}=le0,ge0` } export const unbuildObservationValueFilter = (filters: string[][], currentCriterion: ObservationDataType) => {