Package ca.uhn.fhir.mdm.svc
Class MdmSearchExpansionSvc
java.lang.Object
ca.uhn.fhir.mdm.svc.MdmSearchExpansionSvc
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexpandSearchAndStoreInRequestDetails
(String theResourceName, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.jpa.searchparam.SearchParameterMap theSearchParameterMap, MdmSearchExpansionSvc.IParamTester theParamTester) This method looks through all the reference parameters within aSearchParameterMap
and performs MDM expansion.static MdmSearchExpansionResults
getCachedExpansionResults
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-
Constructor Details
-
MdmSearchExpansionSvc
public MdmSearchExpansionSvc()
-
-
Method Details
-
expandSearchAndStoreInRequestDetails
public MdmSearchExpansionResults expandSearchAndStoreInRequestDetails(String theResourceName, @Nullable ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, @Nonnull ca.uhn.fhir.jpa.searchparam.SearchParameterMap theSearchParameterMap, MdmSearchExpansionSvc.IParamTester theParamTester) This method looks through all the reference parameters within aSearchParameterMap
and performs MDM expansion. This means looking for any subject/patient parameters, and expanding them to include any linked and golden resource patients. So, for example, a search forEncounter?subject=Patient/1
might be modified to be a search forEncounter?subject=Patient/1,Patient/999
if 999 is linked to 1 by MDM.This is an internal MDM service and its API is subject to change. Use with caution!
- Parameters:
theRequestDetails
- The incoming request detailstheSearchParameterMap
- The parameter map to modifytheParamTester
- Determines which parameters should be expanded- Returns:
- Returns the results of the expansion, which are also stored in the
RequestDetails
userdata map, so this service will only be invoked a maximum of once per request. - Since:
- 8.0.0
-
getCachedExpansionResults
@Nullable public static MdmSearchExpansionResults getCachedExpansionResults(@Nonnull ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-