Class MdmSearchExpansionSvc

java.lang.Object
ca.uhn.fhir.mdm.svc.MdmSearchExpansionSvc

public class MdmSearchExpansionSvc extends Object
  • Constructor Details

  • 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 a SearchParameterMap 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 for Encounter?subject=Patient/1 might be modified to be a search for Encounter?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 details
      theSearchParameterMap - The parameter map to modify
      theParamTester - 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)