Class ResponseTerminologyTranslationInterceptor

java.lang.Object
ca.uhn.fhir.rest.server.interceptor.BaseResponseTerminologyInterceptor
ca.uhn.fhir.rest.server.interceptor.ResponseTerminologyTranslationInterceptor

This interceptor leverages ConceptMap resources stored in the repository to automatically map terminology from one CodeSystem to another at runtime, in resources that are being returned by the server.

Mappings are applied only if they are explicitly configured in the interceptor via the addMappingSpecification(String, String) method.

Since:
5.4.0
  • Constructor Details

    • ResponseTerminologyTranslationInterceptor

      public ResponseTerminologyTranslationInterceptor(ca.uhn.fhir.context.support.IValidationSupport theValidationSupport)
      Constructor
      Parameters:
      theValidationSupport - The validation support module
  • Method Details

    • addMappingSpecification

      public void addMappingSpecification(String theSourceCodeSystemUrl, String theTargetCodeSystemUrl)
      Adds a mapping specification using only a source and target CodeSystem URL. Any mappings specified using this URL
      Parameters:
      theSourceCodeSystemUrl - The source CodeSystem URL
      theTargetCodeSystemUrl - The target CodeSystem URL
    • clearMappingSpecifications

      Clear all mapping specifications
    • handleResource

      public void handleResource(RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theResource)