Package ca.uhn.fhir.jpa.searchparam.util
Class Dstu3DistanceHelper
java.lang.Object
ca.uhn.fhir.jpa.searchparam.util.Dstu3DistanceHelper
In DSTU3, the near-distance search parameter is separate from near. In this utility method,
we search for near-distance search parameters and if we find any, remove them from the list
of search parameters and store it in a dedicated field in
SearchParameterMap
. This is so that
when the "near" search parameter is processed, we have access to this near-distance value.
This requires at most one near-distance parameter. If more are found, we throw an IllegalArgumentException
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setNearDistance
(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResourceType, SearchParameterMap theParams)
-
Constructor Details
-
Dstu3DistanceHelper
public Dstu3DistanceHelper()
-
-
Method Details
-
setNearDistance
public static void setNearDistance(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResourceType, SearchParameterMap theParams)
-