Class RemoteTerminologyServiceValidationSupport
- java.lang.Object
-
- org.hl7.fhir.common.hapi.validation.support.BaseValidationSupport
-
- org.hl7.fhir.common.hapi.validation.support.RemoteTerminologyServiceValidationSupport
-
- All Implemented Interfaces:
ca.uhn.fhir.context.support.IValidationSupport
public class RemoteTerminologyServiceValidationSupport extends BaseValidationSupport implements ca.uhn.fhir.context.support.IValidationSupport
This class is an implementation ofIValidationSupportthat fetches validation codes from a remote FHIR based terminology server. It will invoke the FHIR ValueSet/$validate-code operation in order to validate codes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ca.uhn.fhir.context.support.IValidationSupport
ca.uhn.fhir.context.support.IValidationSupport.BaseConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult, ca.uhn.fhir.context.support.IValidationSupport.CodingConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.ConceptDesignation, ca.uhn.fhir.context.support.IValidationSupport.IssueSeverity, ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult, ca.uhn.fhir.context.support.IValidationSupport.StringConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome
-
-
Field Summary
-
Fields inherited from class org.hl7.fhir.common.hapi.validation.support.BaseValidationSupport
myCtx
-
-
Constructor Summary
Constructors Constructor Description RemoteTerminologyServiceValidationSupport(ca.uhn.fhir.context.FhirContext theFhirContext)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClientInterceptor(Object theClientInterceptor)Adds an interceptor that will be registered to all clients.org.hl7.fhir.instance.model.api.IBaseResourcefetchCodeSystem(String theSystem)org.hl7.fhir.instance.model.api.IBaseResourcefetchValueSet(String theValueSetUrl)protected ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResultinvokeRemoteValidateCode(String theCodeSystem, String theCode, String theDisplay, String theValueSetUrl, org.hl7.fhir.instance.model.api.IBaseResource theValueSet)booleanisCodeSystemSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem)booleanisValueSetSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theValueSetUrl)voidsetBaseUrl(String theBaseUrl)Sets the FHIR Terminology Server base URLca.uhn.fhir.context.support.IValidationSupport.CodeValidationResultvalidateCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, String theValueSetUrl)ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResultvalidateCodeInValueSet(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, org.hl7.fhir.instance.model.api.IBaseResource theValueSet)-
Methods inherited from class org.hl7.fhir.common.hapi.validation.support.BaseValidationSupport
getFhirContext
-
-
-
-
Constructor Detail
-
RemoteTerminologyServiceValidationSupport
public RemoteTerminologyServiceValidationSupport(ca.uhn.fhir.context.FhirContext theFhirContext)
Constructor- Parameters:
theFhirContext- The FhirContext object to use
-
-
Method Detail
-
validateCode
public ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult validateCode(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, String theValueSetUrl)
- Specified by:
validateCodein interfaceca.uhn.fhir.context.support.IValidationSupport
-
validateCodeInValueSet
public ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult validateCodeInValueSet(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, ca.uhn.fhir.context.support.ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, @Nonnull org.hl7.fhir.instance.model.api.IBaseResource theValueSet)
- Specified by:
validateCodeInValueSetin interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchCodeSystem
public org.hl7.fhir.instance.model.api.IBaseResource fetchCodeSystem(String theSystem)
- Specified by:
fetchCodeSystemin interfaceca.uhn.fhir.context.support.IValidationSupport
-
fetchValueSet
public org.hl7.fhir.instance.model.api.IBaseResource fetchValueSet(String theValueSetUrl)
- Specified by:
fetchValueSetin interfaceca.uhn.fhir.context.support.IValidationSupport
-
isCodeSystemSupported
public boolean isCodeSystemSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theSystem)
- Specified by:
isCodeSystemSupportedin interfaceca.uhn.fhir.context.support.IValidationSupport
-
isValueSetSupported
public boolean isValueSetSupported(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, String theValueSetUrl)
- Specified by:
isValueSetSupportedin interfaceca.uhn.fhir.context.support.IValidationSupport
-
invokeRemoteValidateCode
protected ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult invokeRemoteValidateCode(String theCodeSystem, String theCode, String theDisplay, String theValueSetUrl, org.hl7.fhir.instance.model.api.IBaseResource theValueSet)
-
setBaseUrl
public void setBaseUrl(String theBaseUrl)
Sets the FHIR Terminology Server base URL- Parameters:
theBaseUrl- The base URL, e.g. "https://hapi.fhir.org/baseR4"
-
addClientInterceptor
public void addClientInterceptor(@Nonnull Object theClientInterceptor)
Adds an interceptor that will be registered to all clients.Note that this method is not thread-safe and should only be called prior to this module being used.
- Parameters:
theClientInterceptor- The interceptor (must not be null)
-
-