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
-
Field Summary
Fields inherited from class ca.uhn.fhir.rest.server.interceptor.BaseResponseTerminologyInterceptor
myContext, myValidationSupport
-
Constructor Summary
ConstructorDescriptionResponseTerminologyTranslationInterceptor
(ca.uhn.fhir.context.support.IValidationSupport theValidationSupport, ResponseTerminologyTranslationSvc theResponseTerminologyTranslationSvc) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMappingSpecification
(String theSourceCodeSystemUrl, String theTargetCodeSystemUrl) Adds a mapping specification using only a source and target CodeSystem URL.void
Clear all mapping specificationsvoid
handleResource
(RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theResource) Methods inherited from class ca.uhn.fhir.rest.server.interceptor.BaseResponseTerminologyInterceptor
toListForProcessing
-
Constructor Details
-
ResponseTerminologyTranslationInterceptor
public ResponseTerminologyTranslationInterceptor(ca.uhn.fhir.context.support.IValidationSupport theValidationSupport, ResponseTerminologyTranslationSvc theResponseTerminologyTranslationSvc) Constructor- Parameters:
theValidationSupport
- The validation support module
-
-
Method Details
-
addMappingSpecification
Adds a mapping specification using only a source and target CodeSystem URL. Any mappings specified using this URL- Parameters:
theSourceCodeSystemUrl
- The source CodeSystem URLtheTargetCodeSystemUrl
- The target CodeSystem URL
-
clearMappingSpecifications
Clear all mapping specifications -
getMappingSpecifications
-
handleResource
public void handleResource(RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theResource)
-