Skip to content

Commit

Permalink
fix: fix value-quantity default into observation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi-BOUYAHIA committed Jul 18, 2024
1 parent 5a50d5d commit e73c76e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/cohortCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit e73c76e

Please sign in to comment.