Class DelegatingFhirContext
java.lang.Object
ca.uhn.fhir.context.FhirContext
org.openehealth.ipf.commons.ihe.fhir.DelegatingFhirContext
Delegating FhirContext with a custom IRestfulClientFactory. This is more lightweight
than to create new FhirContext instances just due to a different HTTP client setup.
-
Constructor Summary
ConstructorDescriptionDelegatingFhirContext
(FhirContext fhirContext, IRestfulClientFactory restfulClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends IBaseResource>
getDefaultTypeForProfile
(String theProfile) getElementDefinition
(Class<? extends IBase> theElementType) getElementDefinition
(String theElementName) getPrimitiveBoolean
(Boolean theValue) Deprecated.getResourceDefinition
(FhirVersionEnum theVersion, String theResourceName) getResourceDefinition
(Class<? extends IBaseResource> theResourceType) getResourceDefinition
(String theResourceName) getResourceDefinition
(IBaseResource theResource) getResourceDefinitionById
(String theId) getResourceType
(Class<? extends IBaseResource> theResourceType) getResourceType
(String theResourceName) getResourceType
(IBaseResource theResource) boolean
boolean
boolean
boolean
boolean
Deprecated.newPrimitiveBoolean
(Boolean theValue) newPrimitiveString
(String theValue) <T extends IRestfulClient>
TnewRestfulClient
(Class<T> theClientType, String theServerBase) newRestfulGenericClient
(String theServerBase) void
registerCustomType
(Class<? extends IBase> theType) void
registerCustomTypes
(Collection<Class<? extends IBase>> theTypes) void
setAddProfileTagWhenEncoding
(AddProfileTagEnum theAddProfileTagWhenEncoding) void
setDefaultTypeForProfile
(String theProfile, Class<? extends IBaseResource> theClass) setFhirValidatorFactory
(IFhirValidatorFactory theFhirValidatorFactory) void
setLocalizer
(HapiLocalizer theMessages) setNarrativeGenerator
(INarrativeGenerator theNarrativeGenerator) setParserErrorHandler
(IParserErrorHandler theParserErrorHandler) void
setParserOptions
(ParserOptions theParserOptions) void
setPerformanceOptions
(PerformanceOptionsEnum... thePerformanceOptions) void
setPerformanceOptions
(Collection<PerformanceOptionsEnum> theOptions) void
setRestfulClientFactory
(IRestfulClientFactory theRestfulClientFactory) void
setValidationSupport
(IValidationSupport theValidationSupport) Methods inherited from class ca.uhn.fhir.context.FhirContext
forCached, forDstu2, forDstu2_1, forDstu2Cached, forDstu2Hl7Org, forDstu2Hl7OrgCached, forDstu3, forDstu3Cached, forR4, forR4B, forR4BCached, forR4Cached, forR5, forR5Cached, toString
-
Constructor Details
-
DelegatingFhirContext
-
-
Method Details
-
getRestfulClientFactory
- Overrides:
getRestfulClientFactory
in classFhirContext
-
getDelegate
-
getAddProfileTagWhenEncoding
- Overrides:
getAddProfileTagWhenEncoding
in classFhirContext
-
setAddProfileTagWhenEncoding
- Overrides:
setAddProfileTagWhenEncoding
in classFhirContext
-
getDefaultTypeForProfile
- Overrides:
getDefaultTypeForProfile
in classFhirContext
-
getElementDefinition
- Overrides:
getElementDefinition
in classFhirContext
-
getElementDefinition
- Overrides:
getElementDefinition
in classFhirContext
-
getElementDefinitions
- Overrides:
getElementDefinitions
in classFhirContext
-
getLocalizer
- Overrides:
getLocalizer
in classFhirContext
-
setLocalizer
- Overrides:
setLocalizer
in classFhirContext
-
getNarrativeGenerator
- Overrides:
getNarrativeGenerator
in classFhirContext
-
setNarrativeGenerator
- Overrides:
setNarrativeGenerator
in classFhirContext
-
getParserOptions
- Overrides:
getParserOptions
in classFhirContext
-
setParserOptions
- Overrides:
setParserOptions
in classFhirContext
-
getPerformanceOptions
- Overrides:
getPerformanceOptions
in classFhirContext
-
setPerformanceOptions
- Overrides:
setPerformanceOptions
in classFhirContext
-
setPerformanceOptions
- Overrides:
setPerformanceOptions
in classFhirContext
-
getResourceDefinition
public RuntimeResourceDefinition getResourceDefinition(Class<? extends IBaseResource> theResourceType) - Overrides:
getResourceDefinition
in classFhirContext
-
getResourceDefinition
public RuntimeResourceDefinition getResourceDefinition(FhirVersionEnum theVersion, String theResourceName) - Overrides:
getResourceDefinition
in classFhirContext
-
getResourceDefinition
- Overrides:
getResourceDefinition
in classFhirContext
-
getResourceType
- Overrides:
getResourceType
in classFhirContext
-
getResourceType
- Overrides:
getResourceType
in classFhirContext
-
getResourceType
- Overrides:
getResourceType
in classFhirContext
- Throws:
DataFormatException
-
getResourceDefinition
public RuntimeResourceDefinition getResourceDefinition(String theResourceName) throws DataFormatException - Overrides:
getResourceDefinition
in classFhirContext
- Throws:
DataFormatException
-
getResourceDefinitionById
- Overrides:
getResourceDefinitionById
in classFhirContext
-
getResourceDefinitionsWithExplicitId
- Overrides:
getResourceDefinitionsWithExplicitId
in classFhirContext
-
getResourceTypes
- Overrides:
getResourceTypes
in classFhirContext
-
setRestfulClientFactory
- Overrides:
setRestfulClientFactory
in classFhirContext
-
getRuntimeChildUndeclaredExtensionDefinition
- Overrides:
getRuntimeChildUndeclaredExtensionDefinition
in classFhirContext
-
getValidationSupport
- Overrides:
getValidationSupport
in classFhirContext
-
setValidationSupport
- Overrides:
setValidationSupport
in classFhirContext
-
getVersion
- Overrides:
getVersion
in classFhirContext
-
hasDefaultTypeForProfile
public boolean hasDefaultTypeForProfile()- Overrides:
hasDefaultTypeForProfile
in classFhirContext
-
isFormatXmlSupported
public boolean isFormatXmlSupported()- Overrides:
isFormatXmlSupported
in classFhirContext
-
isFormatJsonSupported
public boolean isFormatJsonSupported()- Overrides:
isFormatJsonSupported
in classFhirContext
-
isFormatNDJsonSupported
public boolean isFormatNDJsonSupported()- Overrides:
isFormatNDJsonSupported
in classFhirContext
-
isFormatRdfSupported
public boolean isFormatRdfSupported()- Overrides:
isFormatRdfSupported
in classFhirContext
-
newBundleFactory
- Overrides:
newBundleFactory
in classFhirContext
-
newFluentPath
Deprecated.- Overrides:
newFluentPath
in classFhirContext
-
newFhirPath
- Overrides:
newFhirPath
in classFhirContext
-
newJsonParser
- Overrides:
newJsonParser
in classFhirContext
-
newNDJsonParser
- Overrides:
newNDJsonParser
in classFhirContext
-
newRDFParser
- Overrides:
newRDFParser
in classFhirContext
-
newRestfulClient
- Overrides:
newRestfulClient
in classFhirContext
-
newRestfulGenericClient
- Overrides:
newRestfulGenericClient
in classFhirContext
-
newTerser
- Overrides:
newTerser
in classFhirContext
-
newValidator
- Overrides:
newValidator
in classFhirContext
-
newViewGenerator
- Overrides:
newViewGenerator
in classFhirContext
-
newXmlParser
- Overrides:
newXmlParser
in classFhirContext
-
registerCustomType
- Overrides:
registerCustomType
in classFhirContext
-
registerCustomTypes
- Overrides:
registerCustomTypes
in classFhirContext
-
setDefaultTypeForProfile
- Overrides:
setDefaultTypeForProfile
in classFhirContext
-
setParserErrorHandler
- Overrides:
setParserErrorHandler
in classFhirContext
-
setFhirValidatorFactory
- Overrides:
setFhirValidatorFactory
in classFhirContext
-
getPrimitiveBoolean
Deprecated.- Overrides:
getPrimitiveBoolean
in classFhirContext
-
newPrimitiveBoolean
- Overrides:
newPrimitiveBoolean
in classFhirContext
-
newPrimitiveString
- Overrides:
newPrimitiveString
in classFhirContext
-