Skip to content

Commit

Permalink
Merge branch 'master' of github.com:srdc/onfhir
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaci committed Oct 24, 2024
2 parents b7f645d + bd3d6bb commit 99e1513
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ object UriQueryBuilder extends IFhirQueryBuilder {
modifier match {
//No modifier
case "" => getQueryForUriEquality(values, path)
case FHIR_PREFIXES_MODIFIERS.NOT =>
Filters.not(getQueryForUriEquality(values, path))
case FHIR_PREFIXES_MODIFIERS.ABOVE =>
//if(values.length > 1)
// throw new InvalidParameterException(s"Only single url value should be provided when modifier ${FHIR_PREFIXES_MODIFIERS.ABOVE} is used for FHIR url type parameters!")
Expand All @@ -36,7 +38,7 @@ object UriQueryBuilder extends IFhirQueryBuilder {
// throw new InvalidParameterException(s"Only single url value should be provided when modifier ${FHIR_PREFIXES_MODIFIERS.BELOW} is used for FHIR url type parameters!")
orQueries(values.map(v => getQueryForBelowModifier(v, path)))
case oth =>
throw new InvalidParameterException(s"Modifier ${oth} is not valid or supported by onFhir.io for FHIR url type parameters!")
throw new InvalidParameterException(s"Modifier $oth is not valid or supported by onFhir.io for FHIR url type parameters!")
}
}

Expand Down

0 comments on commit 99e1513

Please sign in to comment.