Uses of Class
ca.uhn.fhir.context.FhirContext
Package
Description
-
Uses of FhirContext in ca.uhn.fhir.context
Modifier and TypeMethodDescriptionstatic FhirContext
FhirContext.forCached
(FhirVersionEnum theFhirVersionEnum) Returns a statically cached FhirContext instance for the given version, creating one if none exists in the cache.static FhirContext
FhirContext.forDstu2()
Creates and returns a new FhirContext with versionDSTU2
static FhirContext
FhirContext.forDstu2_1()
Creates and returns a new FhirContext with versionDSTU2
(2016 May DSTU3 Snapshot)static FhirContext
FhirContext.forDstu2Cached()
static FhirContext
FhirContext.forDstu2Hl7Org()
Creates and returns a new FhirContext with versionDSTU2
(using the Reference Implementation Structures)static FhirContext
FhirContext.forDstu2Hl7OrgCached()
static FhirContext
FhirContext.forDstu3()
Creates and returns a new FhirContext with versionDSTU3
static FhirContext
FhirContext.forDstu3Cached()
static FhirContext
FhirContext.forR4()
Creates and returns a new FhirContext with versionR4
static FhirContext
FhirContext.forR4B()
Creates and returns a new FhirContext with versionR4B
static FhirContext
FhirContext.forR4BCached()
static FhirContext
FhirContext.forR4Cached()
static FhirContext
FhirContext.forR5()
Creates and returns a new FhirContext with versionR5
static FhirContext
FhirContext.forR5Cached()
FhirVersionEnum.newContext()
Creates a new FhirContext for this FHIR versionFhirVersionEnum.newContextCached()
Creates a new FhirContext for this FHIR version, or returns a previously created one if one exists.FhirContext.setFhirValidatorFactory
(IFhirValidatorFactory theFhirValidatorFactory) Set the factory method used to create FhirValidator instancesFhirContext.setNarrativeGenerator
(INarrativeGenerator theNarrativeGenerator) FhirContext.setParserErrorHandler
(IParserErrorHandler theParserErrorHandler) Sets a parser error handler to use by default on all parsersModifier and TypeMethodDescriptionIFhirValidatorFactory.newFhirValidator
(FhirContext theFhirContext) void
RuntimeCompositeDatatypeDefinition.sealAndInitialize
(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) void
RuntimeExtensionDtDefinition.sealAndInitialize
(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) void
RuntimeResourceDefinition.sealAndInitialize
(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) ModifierConstructorDescriptionBaseRuntimeElementCompositeDefinition
(String theName, Class<? extends T> theImplementingClass, boolean theStandardType, FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) RuntimeChildResourceBlockDefinition
(FhirContext theContext, Field theField, Child theChildAnnotation, Description theDescriptionAnnotation, String theElementName, Class<? extends IBase> theResourceBlockType) RuntimeCompositeDatatypeDefinition
(DatatypeDef theDef, Class<? extends ICompositeType> theImplementingClass, boolean theStandardType, FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) RuntimeExtensionDtDefinition
(DatatypeDef theDef, Class<? extends ICompositeType> theImplementingClass, boolean theStandardType, FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) RuntimeResourceBlockDefinition
(String theName, Class<? extends IBase> theImplementingClass, boolean theStandardType, FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) RuntimeResourceDefinition
(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) -
Uses of FhirContext in ca.uhn.fhir.context.support
Modifier and TypeMethodDescriptionDefaultProfileValidationSupport.getFhirContext()
IValidationSupport.getFhirContext()
Returns the FHIR Context associated with this moduleModifier and TypeMethodDescriptionstatic String
DefaultProfileValidationSupport.getConformanceResourceUrl
(FhirContext theFhirContext, IBaseResource theResource) IValidationSupport.CodeValidationResult.toParameters
(FhirContext theContext) IValidationSupport.LookupCodeResult.toParameters
(FhirContext theContext, List<? extends IPrimitiveType<String>> thePropertyNamesToFilter) Converts the current LookupCodeResult instance into a IBaseParameters instance which is returned to the client of the $lookup operation.ModifierConstructorDescriptionDefaultProfileValidationSupport
(FhirContext theFhirContext) Constructor -
Uses of FhirContext in ca.uhn.fhir.model.api
Modifier and TypeMethodDescriptionIFhirVersion.createFhirPathExecutor
(FhirContext theFhirContext) IQueryParameterType.getValueAsQueryToken
(FhirContext theContext) Returns a representation of this parameter's value as it will be represented "over the wire".IFhirVersion.newBundleFactory
(FhirContext theContext) void
IQueryParameterType.setValueAsQueryToken
(FhirContext theContext, String theParamName, String theQualifier, String theValue) This method is generally only called by HAPI itself, and should not need to be called from user code.void
IQueryParameterAnd.setValuesAsQueryTokens
(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) See FHIR specification 2.2.2 Search SearchParameter Types for information on the token formatvoid
IQueryParameterOr.setValuesAsQueryTokens
(FhirContext theContext, String theParamName, QualifiedParamList theParameters) -
Uses of FhirContext in ca.uhn.fhir.model.base.composite
Modifier and TypeMethodDescriptionBaseCodingDt.getValueAsQueryToken
(FhirContext theContext) Returns a representation of this parameter's value as it will be represented "over the wire".BaseIdentifierDt.getValueAsQueryToken
(FhirContext theContext) Returns a representation of this parameter's value as it will be represented "over the wire".BaseQuantityDt.getValueAsQueryToken
(FhirContext theContext) void
BaseCodingDt.setValueAsQueryToken
(FhirContext theContext, String theParamName, String theQualifier, String theParameter) This method is generally only called by HAPI itself, and should not need to be called from user code.void
BaseIdentifierDt.setValueAsQueryToken
(FhirContext theContext, String theParamName, String theQualifier, String theParameter) This method is generally only called by HAPI itself, and should not need to be called from user code.void
BaseQuantityDt.setValueAsQueryToken
(FhirContext theContext, String theParamName, String theQualifier, String theValue) -
Uses of FhirContext in ca.uhn.fhir.model.primitive
Modifier and TypeMethodDescriptionStringDt.getValueAsQueryToken
(FhirContext theContext) Returns a representation of this parameter's value as it will be represented "over the wire".void
StringDt.setValueAsQueryToken
(FhirContext theContext, String theParamName, String theQualifier, String theValue) This method is generally only called by HAPI itself, and should not need to be called from user code. -
Uses of FhirContext in ca.uhn.fhir.model.view
-
Uses of FhirContext in ca.uhn.fhir.narrative
Modifier and TypeMethodDescriptionprotected String
BaseThymeleafNarrativeGenerator.applyTemplate
(FhirContext theFhirContext, INarrativeTemplate theTemplate, IBase theTargetContext) INarrativeGenerator.generateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) Generates the narrative for the given resource and returns it as a stringboolean
INarrativeGenerator.populateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) Generate any narratives for the given resource that have applicable templates, and populates the appropriate field(s). -
Uses of FhirContext in ca.uhn.fhir.narrative2
Modifier and TypeMethodDescriptionprotected abstract String
BaseNarrativeGenerator.applyTemplate
(FhirContext theFhirContext, INarrativeTemplate theTemplate, IBase theTargetContext) BaseNarrativeGenerator.generateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) NullNarrativeGenerator.generateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) INarrativeTemplateManifest.getTemplateByElement
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, IBase theElementValue) NarrativeTemplateManifest.getTemplateByElement
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, IBase theElement) INarrativeTemplateManifest.getTemplateByFragmentName
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theFragmentName) NarrativeTemplateManifest.getTemplateByFragmentName
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theFragmentName) INarrativeTemplateManifest.getTemplateByName
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theName) NarrativeTemplateManifest.getTemplateByName
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theName) INarrativeTemplateManifest.getTemplateByResourceName
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theResourceName, Collection<String> theProfiles) NarrativeTemplateManifest.getTemplateByResourceName
(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theResourceName, Collection<String> theProfiles) protected List
<INarrativeTemplate> BaseNarrativeGenerator.getTemplateForElement
(FhirContext theFhirContext, IBase theElement) boolean
BaseNarrativeGenerator.populateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) boolean
NullNarrativeGenerator.populateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) -
Uses of FhirContext in ca.uhn.fhir.parser
ModifierConstructorDescriptionBaseParser
(FhirContext theContext, IParserErrorHandler theParserErrorHandler) ConstructorJsonParser
(FhirContext theContext, IParserErrorHandler theParserErrorHandler) Do not use this constructor, the recommended way to obtain a new instance of the JSON parser is to invokenewJsonParser()
.NDJsonParser
(FhirContext theContext, IParserErrorHandler theParserErrorHandler) Do not use this constructor, the recommended way to obtain a new instance of the NDJSON parser is to invokenewNDJsonParser()
.RDFParser
(FhirContext context, IParserErrorHandler parserErrorHandler, org.apache.jena.riot.Lang lang) Do not use this constructor, the recommended way to obtain a new instance of the RDF parser is to invokenewRDFParser()
.XmlParser
(FhirContext theContext, IParserErrorHandler theParserErrorHandler) Do not use this constructor, the recommended way to obtain a new instance of the XML parser is to invokenewXmlParser()
. -
Uses of FhirContext in ca.uhn.fhir.repository
Modifier and TypeMethodDescriptionRepository.fhirContext()
Returns theFhirContext
used by the repository Practically, implementing FHIR functionality with the HAPI toolset requires a FhirContext. -
Uses of FhirContext in ca.uhn.fhir.rest.api
Modifier and TypeMethodDescriptionstatic PatchTypeEnum
PatchTypeEnum.forContentTypeOrThrowInvalidRequestException
(FhirContext theContext, String theContentType) abstract IParser
EncodingEnum.newParser
(FhirContext theContext) ModifierConstructorDescriptionQualifiedParamList
(IQueryParameterOr<?> theNextOr, FhirContext theContext) -
Uses of FhirContext in ca.uhn.fhir.rest.client.api
Modifier and TypeMethodDescriptionClientResponseContext.getFhirContext()
IRestfulClient.getFhirContext()
Returns the FHIR context associated with this clientModifier and TypeMethodDescriptionIHttpClient.createBinaryRequest
(FhirContext theContext, IBaseBinary theBinary) Create a binary requestIHttpClient.createByteRequest
(FhirContext theContext, String theContents, String theContentType, EncodingEnum theEncoding) Create a byte requestIHttpClient.createGetRequest
(FhirContext theContext, EncodingEnum theEncoding) Create a normal http get requestIHttpClient.createParamRequest
(FhirContext theContext, Map<String, List<String>> theParams, EncodingEnum theEncoding) Create a parameter requeststatic String
HttpClientUtil.createUserAgentString
(FhirContext theContext, String theClientType) ModifierConstructorDescriptionClientResponseContext
(IHttpRequest myHttpRequest, IHttpResponse theHttpResponse, IRestfulClient myRestfulClient, FhirContext theFhirContext, Class<? extends IBaseResource> theReturnType) -
Uses of FhirContext in ca.uhn.fhir.rest.gclient
Modifier and TypeMethodDescriptionCompositeCriterion.getParameterValue
(FhirContext theContext) ICriterionInternal.getParameterValue
(FhirContext theContext) -
Uses of FhirContext in ca.uhn.fhir.rest.param
Modifier and TypeMethodDescriptionstatic Integer
ParameterUtil.findIdParameterIndex
(Method theMethod, FhirContext theContext) Class
<? extends IBaseResource> ReferenceParam.getResourceType
(FhirContext theCtx) final String
BaseParam.getValueAsQueryToken
(FhirContext theContext) final void
BaseParam.setValueAsQueryToken
(FhirContext theContext, String theParamName, String theQualifier, String theValue) void
BaseAndListParam.setValuesAsQueryTokens
(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) void
BaseOrListParam.setValuesAsQueryTokens
(FhirContext theContext, String theParamName, QualifiedParamList theParameters) void
DateParam.setValuesAsQueryTokens
(FhirContext theContext, String theParamName, QualifiedParamList theParameters) void
DateRangeParam.setValuesAsQueryTokens
(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) ReferenceParam.toDateParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toDateParam
.ReferenceParam.toNumberParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toNumberParam
.ReferenceParam.toQuantityParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toQuantityParam
.ReferenceParam.toStringParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toStringParam
.ReferenceParam.toTokenParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toTokenParam
. -
Uses of FhirContext in ca.uhn.fhir.rest.param.binder
Modifier and TypeMethodDescriptionIParamBinder.encode
(FhirContext theContext, T theString) QueryParameterAndBinder.encode
(FhirContext theContext, IQueryParameterAnd<?> theString) QueryParameterOrBinder.encode
(FhirContext theContext, IQueryParameterOr<?> theValue) QueryParameterTypeBinder.encode
(FhirContext theContext, IQueryParameterType theValue) IParamBinder.parse
(FhirContext theContext, String theName, List<QualifiedParamList> theList) QueryParameterAndBinder.parse
(FhirContext theContext, String theParamName, List<QualifiedParamList> theString) QueryParameterOrBinder.parse
(FhirContext theContext, String theParamName, List<QualifiedParamList> theString) QueryParameterTypeBinder.parse
(FhirContext theContext, String theParamName, List<QualifiedParamList> theParams) -
Uses of FhirContext in ca.uhn.fhir.rest.server.exceptions
ModifierConstructorDescriptionUnprocessableEntityException
(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome) Constructor which accepts anIBaseOperationOutcome
resource which will be supplied in the response -
Uses of FhirContext in ca.uhn.fhir.serializer
ModifierConstructorDescriptionFhirResourceDeserializer
(FhirContext theFhirContext) FhirResourceSerializer
(FhirContext theFhirContext) -
Uses of FhirContext in ca.uhn.fhir.util
Modifier and TypeMethodDescriptionTerserUtilHelper.getContext()
Gets context holding resource definition.Modifier and TypeMethodDescriptionstatic void
OperationOutcomeUtil.addDetailsToIssue
(FhirContext theFhirContext, IBase theIssue, String theSystem, String theCode) static void
ExtensionUtil.addExtension
(FhirContext theFhirContext, IBase theBase, String theUrl, String theValueType, Object theValue) Adds an extension with the specified valuestatic IBase
OperationOutcomeUtil.addIssue
(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome, String theSeverity, String theDetails, String theLocation, String theCode) Add an issue to an OperationOutcomestatic IBase
OperationOutcomeUtil.addIssue
(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome, String theSeverity, String theDetails, String theLocation, String theCode, String theDetailSystem, String theDetailCode, String theDetailDescription) static void
OperationOutcomeUtil.addIssueColExtensionToIssue
(FhirContext theCtx, IBase theIssue, String theColumn) static void
OperationOutcomeUtil.addIssueLineExtensionToIssue
(FhirContext theCtx, IBase theIssue, String theLine) static IBase
OperationOutcomeUtil.addIssueWithMessageId
(FhirContext myCtx, IBaseOperationOutcome theOperationOutcome, String theSeverity, String theMessage, String theMessageId, String theLocation, String theCode) static void
OperationOutcomeUtil.addLocationToIssue
(FhirContext theContext, IBase theIssue, String theLocation) static void
OperationOutcomeUtil.addMessageIdExtensionToIssue
(FhirContext theCtx, IBase theIssue, String theMessageId) static IBase
ParametersUtil.addParameterToParameters
(FhirContext theContext, IBaseParameters theParameters, String theName) Add a parameter with no value (typically because we'll be adding sub-parameters)static void
ParametersUtil.addParameterToParameters
(FhirContext theContext, IBaseParameters theParameters, String theName, Object theValue) Add a parameter value to a Parameters resourcestatic void
ParametersUtil.addParameterToParameters
(FhirContext theContext, IBaseParameters theParameters, String theName, String thePrimitiveDatatype, String theValue) Add a parameter value to a Parameters resourcestatic void
ParametersUtil.addParameterToParametersBoolean
(FhirContext theCtx, IBaseParameters theParameters, String theName, boolean theValue) static void
ParametersUtil.addParameterToParametersCode
(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue) static void
ParametersUtil.addParameterToParametersDecimal
(FhirContext theCtx, IBaseParameters theParameters, String theName, BigDecimal theValue) static void
ParametersUtil.addParameterToParametersInteger
(FhirContext theCtx, IBaseParameters theParameters, String theName, int theValue) static void
ParametersUtil.addParameterToParametersLong
(FhirContext theCtx, IBaseParameters theParameters, String theName, long theValue) static void
ParametersUtil.addParameterToParametersReference
(FhirContext theCtx, IBaseParameters theParameters, String theName, String theReference) static void
ParametersUtil.addParameterToParametersString
(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue) static void
ParametersUtil.addParameterToParametersUri
(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue) static IBase
ParametersUtil.addPart
(FhirContext theContext, IBase theParameter, String theName, IBase theValue) static void
ParametersUtil.addPartBoolean
(FhirContext theContext, IBase theParameter, String theName, Boolean theValue) static void
ParametersUtil.addPartCode
(FhirContext theContext, IBase theParameter, String theName, String theCode) static void
ParametersUtil.addPartCoding
(FhirContext theContext, IBase theParameter, String theName, String theSystem, String theCode, String theDisplay) static void
ParametersUtil.addPartDecimal
(FhirContext theContext, IBase theParameter, String theName, Double theValue) static void
ParametersUtil.addPartInteger
(FhirContext theContext, IBase theParameter, String theName, Integer theInteger) static void
ParametersUtil.addPartResource
(FhirContext theContext, IBase theParameter, String theName, IBaseResource theValue) static void
ParametersUtil.addPartString
(FhirContext theContext, IBase theParameter, String theName, String theValue) static void
ParametersUtil.addPartUrl
(FhirContext theContext, IBase theParameter, String theName, String theCode) static void
TerserUtil.clearField
(FhirContext theFhirContext, String theFieldName, IBase theBase) Clears the specified field on the element providedstatic void
TerserUtil.clearField
(FhirContext theFhirContext, IBaseResource theResource, String theFieldName) Clears the specified field on the resource providedstatic void
TerserUtil.clearFieldByFhirPath
(FhirContext theFhirContext, IBaseResource theResource, String theFhirPath) Clears the specified field on the resource provided by the FHIRPath.static <T extends IBaseResource>
TTerserUtil.clone
(FhirContext theFhirContext, T theInstance) Clones the specified resource.static void
TerserUtil.cloneCompositeField
(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo, String theField) Clones specified composite field (collection).static void
TerserUtil.cloneIdentifierIntoResource
(FhirContext theFhirContext, BaseRuntimeChildDefinition theIdentifierDefinition, IBase theNewIdentifier, IBaseResource theResourceToCloneInto) Given an Child Definition of `identifier`, a R4/DSTU3 Identifier, and a new resource, clone the identifier into that resources' identifier list if it is not already present.static <T extends IBaseBundle>
TBundleUtil.convertBundleIntoTransaction
(FhirContext theContext, T theBundle, String thePrefixIdsOrNull) Converts a Bundle containing resources into a FHIR transaction which creates/updates the resources.static IPrimitiveType
<?> ParametersUtil.createCode
(FhirContext theContext, String theValue) static IBase
BundleUtil.createNewBundleEntryWithSingleField
(FhirContext theContext, String theFieldName, IBase... theValues) create a new bundle entry and set a value for a single fieldstatic IBase
ParametersUtil.createPart
(FhirContext theContext, IBase thePart, String theName) static IPrimitiveType
<?> ParametersUtil.createString
(FhirContext theContext, String theValue) static IPrimitiveType
<?> ParametersUtil.createUri
(FhirContext theContext, String theValue) static String
UrlUtil.determineResourceTypeInResourceUrl
(FhirContext theFhirContext, String theUrl) Given a FHIR resource URL, extracts the associated resource type.static boolean
TerserUtil.fieldExists
(FhirContext theFhirContext, String theFieldName, IBaseResource theInstance) Checks if the field exists on the resourcestatic List
<RuntimeSearchParam> SearchParameterUtil.getAllPatientCompartmenRuntimeSearchParams
(FhirContext theFhirContext) static List
<RuntimeSearchParam> SearchParameterUtil.getAllPatientCompartmentRuntimeSearchParamsForResourceType
(FhirContext theFhirContext, String theResourceType) SearchParameterUtil.getAllResourceTypesThatAreInPatientCompartment
(FhirContext theFhirContext) SearchParameterUtil.getBaseAsStrings
(FhirContext theContext, IBaseResource theResource) static List
<org.apache.commons.lang3.tuple.Pair<String, IBaseResource>> BundleUtil.getBundleEntryFullUrlsAndResources
(FhirContext theContext, IBaseBundle theBundle) Returns a collection of Pairs, one for each entry in the bundle.static List
<org.apache.commons.lang3.tuple.Pair<String, IBaseResource>> BundleUtil.getBundleEntryUrlsAndResources
(FhirContext theContext, IBaseBundle theBundle) static String
BundleUtil.getBundleType
(FhirContext theContext, IBaseBundle theBundle) static BundleTypeEnum
BundleUtil.getBundleTypeEnum
(FhirContext theContext, IBaseBundle theBundle) static String
SearchParameterUtil.getCode
(FhirContext theContext, IBaseResource theResource) static String
SearchParameterUtil.getExpression
(FhirContext theFhirContext, IBaseResource theResource) TerserUtil.getFieldByFhirPath
(FhirContext theFhirContext, String theFhirPath, IBase theResource) Returns field values ant the specified FHIR path from the resource.static IBase
TerserUtil.getFirstFieldByFhirPath
(FhirContext theFhirContext, String theFhirPath, IBase theResource) Returns the first available field value at the specified FHIR path from the resource.static String
OperationOutcomeUtil.getFirstIssueDetails
(FhirContext theCtx, IBaseOperationOutcome theOutcome) static String
OperationOutcomeUtil.getFirstIssueLocation
(FhirContext theCtx, IBaseOperationOutcome theOutcome) static int
OperationOutcomeUtil.getIssueCount
(FhirContext theCtx, IBaseOperationOutcome theOutcome) static String
BundleUtil.getLinkUrlOfType
(FhirContext theContext, IBaseBundle theBundle, String theLinkRelation) ParametersUtil.getNamedParameter
(FhirContext theCtx, IBaseResource theParameters, String theParameterName) ParametersUtil.getNamedParameterPartAsString
(FhirContext theCtx, IBaseParameters theParameters, String thePartName, String theParameterName) static Optional
<IBaseResource> ParametersUtil.getNamedParameterResource
(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) Returns the resource within a parameter.ParametersUtil.getNamedParameters
(FhirContext theCtx, IBaseResource theParameters, String theParameterName) ParametersUtil.getNamedParameterValueAsInteger
(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) ParametersUtil.getNamedParameterValueAsString
(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) ParametersUtil.getNamedParameterValuesAsInteger
(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) ParametersUtil.getNamedParameterValuesAsString
(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) static RuntimeSearchParam
SearchParameterUtil.getOnlyPatientCompartmentRuntimeSearchParam
(FhirContext theFhirContext, String theResourceType) Search the resource definition for a compartment named 'patient' and return its related Search Parameter.static Optional
<RuntimeSearchParam> SearchParameterUtil.getOnlyPatientSearchParamForResourceType
(FhirContext theFhirContext, String theResourceType) Given the resource type, fetch its patient-based search parameter name 1.static IPrimitiveType
<CodeDt> AttachmentUtil.getOrCreateContentType
(FhirContext theContext, ICompositeType theAttachment) static IPrimitiveType
<byte[]> AttachmentUtil.getOrCreateData
(FhirContext theContext, ICompositeType theAttachment) Fetches the base64Binary value of Attachment.data, creating it if it does not already exist.static IPrimitiveType
<byte[]> BinaryUtil.getOrCreateData
(FhirContext theContext, IBaseBinary theBinary) Fetches the base64Binary value of Binary.data (or Binary.content on versions of FHIR before R4), creating it if it does not already exist.static IPrimitiveType
<String> AttachmentUtil.getOrCreateUrl
(FhirContext theContext, ICompositeType theAttachment) ParametersUtil.getParameterPart
(FhirContext theCtx, IBase theParameter, String theParameterName) ParametersUtil.getParameterPartValue
(FhirContext theCtx, IBase theParameter, String theParameterName) ParametersUtil.getParameterPartValueAsInteger
(FhirContext theCtx, IBase theParameter, String theParameterName) static String
ParametersUtil.getParameterPartValueAsString
(FhirContext theCtx, IBase theParameter, String theParameterName) SearchParameterUtil.getPatientSearchParamsForResourceType
(FhirContext theFhirContext, String theResourceType) Given the resource type, fetch all its patient-based search parameter name that's availablestatic IBase
BundleUtil.getReferenceInBundle
(FhirContext theFhirContext, String theUrl, Object theAppContext) static IBaseResource
BundleUtil.getResourceByReferenceAndResourceType
(FhirContext theContext, IBaseBundle theBundle, IBaseReference theReference) Get resource from bundle by resource type and referencestatic List
<SearchBundleEntryParts> BundleUtil.getSearchBundleEntryParts
(FhirContext theContext, IBaseBundle theBundle) static IBaseReference
BinaryUtil.getSecurityContext
(FhirContext theCtx, IBaseBinary theBinary) static String
MetaUtil.getSource
(FhirContext theContext, IBaseMetaType theMeta) static Integer
BundleUtil.getTotal
(FhirContext theContext, IBaseBundle theBundle) static String
SearchParameterUtil.getURL
(FhirContext theContext, IBaseResource theResource) static IBase
TerserUtil.getValueFirstRep
(FhirContext theFhirContext, IBaseResource theResource, String theFieldName) Gets the first available value for the specified field.TerserUtil.getValues
(FhirContext theFhirContext, IBaseResource theResource, String theFieldName) Gets all values of the specified field.static boolean
OperationOutcomeUtil.hasIssues
(FhirContext theCtx, IBaseOperationOutcome theOutcome) Returns true if the given OperationOutcome has 1 or more Operation.issue repetitionsstatic boolean
OperationOutcomeUtil.hasIssuesOfSeverity
(FhirContext theCtx, IBaseOperationOutcome theOutcome, String theSeverity) static boolean
TerserUtil.hasValues
(FhirContext theFhirContext, IBaseResource theResource, String theFieldName) Checks if the specified fields has any valuesstatic IBaseBackboneElement
TerserUtil.instantiateBackboneElement
(FhirContext theFhirContext, String theTargetResourceName, String theTargetFieldName) Creates a new BackboneElement.static boolean
BundleUtil.isDstu3TransactionPatch
(FhirContext theContext, IBaseResource thePayloadResource) DSTU3 did not allow the PATCH verb for transaction bundles- so instead we infer that a bundle is a patch if the payload is a binary resource containing a patch.static boolean
SearchParameterUtil.isResourceTypeInPatientCompartment
(FhirContext theFhirContext, String theResourceType) Return true if any search parameter in the resource can point at a patient, false otherwisestatic <T extends IBaseResource>
TClasspathUtil.loadCompressedResource
(FhirContext theCtx, Class<T> theType, String theClasspath) Load a classpath resource, throw anInternalErrorException
if not foundstatic <T extends IBaseResource>
TClasspathUtil.loadResource
(FhirContext theCtx, Class<T> theType, String theClasspath) static void
TerserUtil.mergeAllFields
(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo) Merges all fields on the provided instance.static void
TerserUtil.mergeField
(FhirContext theFhirContext, FhirTerser theTerser, String theFieldName, IBaseResource theFrom, IBaseResource theTo) Merges value of the specified field fromtheFrom
resource totheTo
resource.static void
TerserUtil.mergeField
(FhirContext theFhirContext, String theFieldName, IBaseResource theFrom, IBaseResource theTo) Merges value of the specified field fromtheFrom
resource totheTo
resource.static void
TerserUtil.mergeFields
(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo, Predicate<String> inclusionStrategy) Merges values of all field fromtheFrom
resource totheTo
resource.static void
TerserUtil.mergeFieldsExceptIdAndMeta
(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo) Merges values of all fields except for "identifier" and "meta" fromtheFrom
resource totheTo
resource.static IBaseBinary
BinaryUtil.newBinary
(FhirContext theCtx) static <T extends IBase>
TTerserUtil.newElement
(FhirContext theFhirContext, String theElementType) Creates a new element instancestatic <T extends IBase>
TTerserUtil.newElement
(FhirContext theFhirContext, String theElementType, Object theConstructorParam) Creates a new element instancestatic TerserUtilHelper
TerserUtilHelper.newHelper
(FhirContext theFhirContext, String theResourceName) Factory method for creating a new instance of the wrapperstatic TerserUtilHelper
TerserUtilHelper.newHelper
(FhirContext theFhirContext, IBaseResource theResource) Factory method for creating a new instance of the wrapperstatic ICompositeType
AttachmentUtil.newInstance
(FhirContext theFhirCtx) static IBaseOperationOutcome
OperationOutcomeUtil.newInstance
(FhirContext theCtx) static IBaseParameters
ParametersUtil.newInstance
(FhirContext theContext) static <T extends IBase>
TTerserUtil.newResource
(FhirContext theFhirContext, String theResourceName) Creates a new resource definition.static <T extends IBase>
TTerserUtil.newResource
(FhirContext theFhirContext, String theResourceName, Object theConstructorParam) Creates a new resource definition.static RuntimeResourceDefinition
UrlUtil.parseUrlResourceType
(FhirContext theCtx, String theUrl) static <R extends IBaseResource>
voidMetaUtil.populateResourceSource
(FhirContext theFhirContext, String theProvenanceSourceUri, String theProvenanceRequestId, R theRetVal) static void
BundleUtil.processEntries
(FhirContext theContext, IBaseBundle theBundle, Consumer<ModifiableBundleEntry> theProcessor) Given a bundle, and a consumer, apply the consumer to each entry in the bundle.static void
ResourceUtil.removeNarrative
(FhirContext theContext, IBaseResource theInput) This method removes the narrative from the resource, or if the resource is a bundle, removes the narrative from all of the resources in the bundlestatic void
TerserUtil.replaceField
(FhirContext theFhirContext, String theFieldName, IBaseResource theFrom, IBaseResource theTo) Replaces the specified fields ontheTo
resource with the value fromtheFrom
resource.static void
TerserUtil.replaceFields
(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo, Predicate<String> theFieldNameInclusion) Replaces all fields that have matching field names by the given inclusion strategy.static void
TerserUtil.replaceFieldsByPredicate
(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo, Predicate<org.apache.commons.lang3.tuple.Triple<BaseRuntimeChildDefinition, IBase, IBase>> thePredicate) Replaces fields on theTo resource that test positive by the given predicate.static void
BundleUtil.setBundleType
(FhirContext theContext, IBaseBundle theBundle, String theType) static void
AttachmentUtil.setContentType
(FhirContext theContext, ICompositeType theAttachment, String theContentType) static void
AttachmentUtil.setData
(FhirContext theContext, ICompositeType theAttachment, byte[] theBytes) static void
BinaryUtil.setData
(FhirContext theCtx, IBaseBinary theBinary, byte[] theBytes, String theContentType) static void
ExtensionUtil.setExtension
(FhirContext theFhirContext, IBaseExtension<?, ?> theExtension, String theValue) Sets value of the extension as a stringstatic void
ExtensionUtil.setExtension
(FhirContext theFhirContext, IBaseExtension<?, ?> theExtension, String theExtensionType, Object theValue) Sets value of the extensionstatic void
ExtensionUtil.setExtension
(FhirContext theFhirContext, IBase theBase, String theUrl, String theValueType, Object theValue) Sets or replaces existing extension with the specified valuestatic void
ExtensionUtil.setExtensionAsString
(FhirContext theFhirContext, IBase theBase, String theUrl, String theValue) Sets or replaces existing extension with the specified value as a stringstatic void
TerserUtil.setField
(FhirContext theFhirContext, FhirTerser theTerser, String theFieldName, IBaseResource theResource, IBase... theValues) Sets the provided field with the given values.static void
TerserUtil.setField
(FhirContext theFhirContext, String theFieldName, IBaseResource theResource, IBase... theValues) Sets the provided field with the given values.static void
TerserUtil.setFieldByFhirPath
(FhirContext theFhirContext, String theFhirPath, IBaseResource theResource, IBase theValue) Sets the specified value at the FHIR path provided.static void
SubscriptionUtil.setReason
(FhirContext theContext, IBaseResource theSubscription, String theMessage) static void
BinaryUtil.setSecurityContext
(FhirContext theCtx, IBaseBinary theBinary, String theSecurityContext) static void
AttachmentUtil.setSize
(FhirContext theContext, ICompositeType theAttachment, Integer theLength) static void
MetaUtil.setSource
(FhirContext theContext, IBaseMetaType theMeta, String theValue) static void
MetaUtil.setSource
(FhirContext theContext, IBaseResource theResource, String theValue) Sets the value forResource.meta.source
for R4+ resources, and places the value in an extension onResource.meta
with the URLhttp://hapifhir.io/fhir/StructureDefinition/resource-meta-source
for DSTU3.static void
SubscriptionUtil.setStatus
(FhirContext theContext, IBaseResource theSubscription, String theStatus) static void
TerserUtil.setStringField
(FhirContext theFhirContext, String theFieldName, IBaseResource theResource, String theValue) Sets the provided field with the given values.static void
TerserUtil.setStringFieldByFhirPath
(FhirContext theFhirContext, String theFhirPath, IBaseResource theResource, String theValue) Sets the specified String value at the FHIR path provided.static void
BundleUtil.setTotal
(FhirContext theContext, IBaseBundle theBundle, Integer theTotal) static void
AttachmentUtil.setUrl
(FhirContext theContext, ICompositeType theAttachment, String theUrl) static void
BundleUtil.sortEntriesIntoProcessingOrder
(FhirContext theContext, IBaseBundle theBundle) Function which will do an in-place sort of a bundles' entries, to the correct processing order, which is: 1.static List
<BundleEntryParts> BundleUtil.toListOfEntries
(FhirContext theContext, IBaseBundle theBundle) Extract all of the resources from a given bundleBundleUtil.toListOfResourceIds
(FhirContext theContext, IBaseBundle theBundle) Extract all of ids of all the resources from a given bundlestatic List
<IBaseResource> BundleUtil.toListOfResources
(FhirContext theContext, IBaseBundle theBundle) Extract all of the resources from a given bundlestatic <T extends IBaseResource>
List<T> BundleUtil.toListOfResourcesOfType
(FhirContext theContext, IBaseBundle theBundle, Class<T> theTypeToInclude) Extract all of the resources of a given type from a given bundleModifierConstructorDescriptionBundleBuilder
(FhirContext theContext) ConstructorCompositionBuilder
(FhirContext theFhirContext) FhirTerser
(FhirContext theContext) PropertyModifyingHelper
(FhirContext theFhirContext, IBase theBase) Creates a new instance initializing the dependencies.ResourceReferenceInfo
(FhirContext theContext, IBaseResource theOwningResource, List<String> thePathToElement, IBaseReference theElement) protected
TerserUtilHelper
(FhirContext theFhirContext, IBaseResource theResource) -
Uses of FhirContext in ca.uhn.fhir.util.bundle
Modifier and TypeMethodDescriptionvoid
BundleEntryMutator.setRequestIfNoneExist
(FhirContext theFhirContext, String theIfNoneExist) void
ModifiableBundleEntry.setRequestIfNoneExist
(FhirContext theFhirContext, String theIfNoneExist) void
ModifiableBundleEntry.setRequestUrl
(FhirContext theFhirContext, String theRequestUrl) ModifierConstructorDescriptionBundleEntryMutator
(FhirContext theFhirContext, IBase theEntry, BaseRuntimeChildDefinition theRequestChildDef, BaseRuntimeElementCompositeDefinition<?> theChildContentsDef, BaseRuntimeElementCompositeDefinition<?> theEntryDefinition) -
Uses of FhirContext in ca.uhn.fhir.validation
Modifier and TypeMethodDescriptionValidationResult.getContext()
IValidationContext.getFhirContext()
Modifier and TypeMethodDescriptionstatic <T extends IBaseResource>
IValidationContext<T> ValidationContext.forResource
(FhirContext theContext, T theResource, ValidationOptions theOptions) static IValidationContext
<IBaseResource> ValidationContext.forText
(FhirContext theContext, String theResourceBody, ValidationOptions theOptions) ModifierConstructorDescriptionFhirValidator
(FhirContext theFhirContext) Constructor (this should not be called directly, but rathernewValidator()
should be called to obtain an instance ofFhirValidator
)SchemaBaseValidator
(FhirContext theContext) ValidationFailureException
(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome) ValidationResult
(FhirContext theCtx, List<SingleValidationMessage> theMessages) -
Uses of FhirContext in ca.uhn.fhir.validation.schematron
Modifier and TypeMethodDescriptionstatic IValidatorModule
SchematronProvider.getSchematronValidatorInstance
(FhirContext myContext) static boolean
SchematronProvider.isSchematronAvailable
(FhirContext theFhirContext)