
Uses of Class
ca.uhn.fhir.context.FhirContext
Packages that use FhirContext
Package
Description
This package provides an interface and implementations abstracting
 access to a FHIR repository.
- 
Uses of FhirContext in ca.uhn.fhir.contextMethods in ca.uhn.fhir.context that return FhirContextModifier and TypeMethodDescriptionstatic FhirContextFhirContext.forCached(FhirVersionEnum theFhirVersionEnum) Returns a statically cached FhirContext instance for the given version, creating one if none exists in the cache.static FhirContextFhirContext.forDstu2()Creates and returns a new FhirContext with versionDSTU2static FhirContextFhirContext.forDstu2_1()Creates and returns a new FhirContext with versionDSTU2(2016 May DSTU3 Snapshot)static FhirContextFhirContext.forDstu2Cached()static FhirContextFhirContext.forDstu2Hl7Org()Creates and returns a new FhirContext with versionDSTU2(using the Reference Implementation Structures)static FhirContextFhirContext.forDstu2Hl7OrgCached()static FhirContextFhirContext.forDstu3()Creates and returns a new FhirContext with versionDSTU3static FhirContextFhirContext.forDstu3Cached()static FhirContextFhirContext.forR4()Creates and returns a new FhirContext with versionR4static FhirContextFhirContext.forR4B()Creates and returns a new FhirContext with versionR4Bstatic FhirContextFhirContext.forR4BCached()static FhirContextFhirContext.forR4Cached()static FhirContextFhirContext.forR5()Creates and returns a new FhirContext with versionR5static FhirContextFhirContext.forR5Cached()static FhirContextFhirContext.forVersion(FhirVersionEnum theFhirVersionEnum) An uncached version of forCached()FhirVersionEnum.newContext()Deprecated, for removal: This API element is subject to removal in a future version.since 7.7.FhirVersionEnum.newContextCached()Deprecated, for removal: This API element is subject to removal in a future version.since 7.7.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 parsersMethods in ca.uhn.fhir.context with parameters of type FhirContextModifier and TypeMethodDescriptionIFhirValidatorFactory.newFhirValidator(FhirContext theFhirContext) voidRuntimeCompositeDatatypeDefinition.sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) voidRuntimeExtensionDtDefinition.sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) voidRuntimeResourceDefinition.sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) Constructors in ca.uhn.fhir.context with parameters of type FhirContextModifierConstructorDescriptionBaseRuntimeElementCompositeDefinition(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.supportMethods in ca.uhn.fhir.context.support that return FhirContextModifier and TypeMethodDescriptionDefaultProfileValidationSupport.getFhirContext()IValidationSupport.getFhirContext()Returns the FHIR Context associated with this moduleMethods in ca.uhn.fhir.context.support with parameters of type FhirContextModifier and TypeMethodDescriptionstatic StringDefaultProfileValidationSupport.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.Constructors in ca.uhn.fhir.context.support with parameters of type FhirContextModifierConstructorDescriptionDefaultProfileValidationSupport(FhirContext theFhirContext) Constructor
- 
Uses of FhirContext in ca.uhn.fhir.model.apiMethods in ca.uhn.fhir.model.api with parameters of type FhirContextModifier and TypeMethodDescriptionIFhirVersion.createFhirPathExecutor(FhirContext theFhirContext) default StringIQueryParameterType.getValueAsQueryToken(FhirContext theContext) Deprecated, for removal: This API element is subject to removal in a future version.UseIQueryParameterType.getValueAsQueryToken()insteadIFhirVersion.newBundleFactory(FhirContext theContext) voidIQueryParameterType.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.voidIQueryParameterAnd.setValuesAsQueryTokens(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) See FHIR specification 2.2.2 Search SearchParameter Types for information on the token formatvoidIQueryParameterOr.setValuesAsQueryTokens(FhirContext theContext, String theParamName, QualifiedParamList theParameters) 
- 
Uses of FhirContext in ca.uhn.fhir.model.base.compositeMethods in ca.uhn.fhir.model.base.composite with parameters of type FhirContextModifier and TypeMethodDescriptionvoidBaseCodingDt.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.voidBaseIdentifierDt.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.voidBaseQuantityDt.setValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) 
- 
Uses of FhirContext in ca.uhn.fhir.model.primitiveMethods in ca.uhn.fhir.model.primitive with parameters of type FhirContextModifier and TypeMethodDescriptionvoidStringDt.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.viewConstructors in ca.uhn.fhir.model.view with parameters of type FhirContext
- 
Uses of FhirContext in ca.uhn.fhir.narrativeMethods in ca.uhn.fhir.narrative with parameters of type FhirContextModifier and TypeMethodDescriptionprotected StringBaseThymeleafNarrativeGenerator.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 stringbooleanINarrativeGenerator.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.narrative2Methods in ca.uhn.fhir.narrative2 with parameters of type FhirContextModifier and TypeMethodDescriptionprotected abstract StringBaseNarrativeGenerator.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, Collection<String> theCodes) NarrativeTemplateManifest.getTemplateByResourceName(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theResourceName, Collection<String> theProfiles, Collection<String> theCodes) protected List<INarrativeTemplate> BaseNarrativeGenerator.getTemplateForElement(FhirContext theFhirContext, IBase theElement) booleanBaseNarrativeGenerator.populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource) booleanNullNarrativeGenerator.populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource) 
- 
Uses of FhirContext in ca.uhn.fhir.parserMethods in ca.uhn.fhir.parser that return FhirContextConstructors in ca.uhn.fhir.parser with parameters of type FhirContextModifierConstructorDescriptionBaseParser(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.repositoryMethods in ca.uhn.fhir.repository that return FhirContextModifier and TypeMethodDescriptionIRepository.fhirContext()Returns theFhirContextused by the repositoryMethods in ca.uhn.fhir.repository that return types with arguments of type FhirContextMethods in ca.uhn.fhir.repository with parameters of type FhirContextModifier and TypeMethodDescriptionstatic IRepositoryRepositories.repositoryForUrl(FhirContext theFhirContext, String theRepositoryUrl) Constructs a version ofIRepositorybased on the given URL.
- 
Uses of FhirContext in ca.uhn.fhir.repository.implMethods in ca.uhn.fhir.repository.impl with parameters of type FhirContextModifier and TypeMethodDescriptionstatic IRepositoryUrlRepositoryFactory.buildRepository(FhirContext theFhirContext, String theRepositoryUrl) Find a factory forIRepositorybased on the given URL.UrlRepositoryFactory.buildRequest(String theBaseUrl, FhirContext theFhirContext) Builder for our abstractIRepositoryLoader.IRepositoryRequestinterface.
- 
Uses of FhirContext in ca.uhn.fhir.rest.apiMethods in ca.uhn.fhir.rest.api with parameters of type FhirContextModifier and TypeMethodDescriptionstatic PatchTypeEnumPatchTypeEnum.forContentTypeOrThrowInvalidRequestException(FhirContext theContext, String theContentType) abstract IParserEncodingEnum.newParser(FhirContext theContext) Constructors in ca.uhn.fhir.rest.api with parameters of type FhirContextModifierConstructorDescriptionQualifiedParamList(IQueryParameterOr<?> theNextOr, FhirContext theContext) 
- 
Uses of FhirContext in ca.uhn.fhir.rest.client.apiMethods in ca.uhn.fhir.rest.client.api that return FhirContextModifier and TypeMethodDescriptionClientResponseContext.getFhirContext()IRestfulClient.getFhirContext()Returns the FHIR context associated with this clientMethods in ca.uhn.fhir.rest.client.api with parameters of type FhirContextModifier 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 StringHttpClientUtil.createUserAgentString(FhirContext theContext, String theClientType) Constructors in ca.uhn.fhir.rest.client.api with parameters of type FhirContextModifierConstructorDescriptionClientResponseContext(IHttpRequest myHttpRequest, IHttpResponse theHttpResponse, IRestfulClient myRestfulClient, FhirContext theFhirContext, Class<? extends IBaseResource> theReturnType) 
- 
Uses of FhirContext in ca.uhn.fhir.rest.gclientMethods in ca.uhn.fhir.rest.gclient with parameters of type FhirContextModifier and TypeMethodDescriptionCompositeCriterion.getParameterValue(FhirContext theContext) ICriterionInternal.getParameterValue(FhirContext theContext) 
- 
Uses of FhirContext in ca.uhn.fhir.rest.paramMethods in ca.uhn.fhir.rest.param with parameters of type FhirContextModifier and TypeMethodDescriptionstatic IntegerParameterUtil.findIdParameterIndex(Method theMethod, FhirContext theContext) Class<? extends IBaseResource> ReferenceParam.getResourceType(FhirContext theCtx) final voidBaseParam.setValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) voidBaseAndListParam.setValuesAsQueryTokens(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) voidBaseOrListParam.setValuesAsQueryTokens(FhirContext theContext, String theParamName, QualifiedParamList theParameters) voidDateParam.setValuesAsQueryTokens(FhirContext theContext, String theParamName, QualifiedParamList theParameters) voidDateRangeParam.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.binderMethods in ca.uhn.fhir.rest.param.binder with parameters of type FhirContextModifier 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.exceptionsConstructors in ca.uhn.fhir.rest.server.exceptions with parameters of type FhirContextModifierConstructorDescriptionUnprocessableEntityException(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome) Constructor which accepts anIBaseOperationOutcomeresource which will be supplied in the response
- 
Uses of FhirContext in ca.uhn.fhir.serializerConstructors in ca.uhn.fhir.serializer with parameters of type FhirContextModifierConstructorDescriptionFhirResourceDeserializer(FhirContext theFhirContext) FhirResourceSerializer(FhirContext theFhirContext) 
- 
Uses of FhirContext in ca.uhn.fhir.utilMethods in ca.uhn.fhir.util that return FhirContextModifier and TypeMethodDescriptionTerserUtilHelper.getContext()Gets context holding resource definition.Methods in ca.uhn.fhir.util with parameters of type FhirContextModifier and TypeMethodDescriptionstatic voidOperationOutcomeUtil.addDetailsToIssue(FhirContext theFhirContext, IBase theIssue, String theSystem, String theCode) static voidOperationOutcomeUtil.addDetailsToIssue(FhirContext theFhirContext, IBase theIssue, String theSystem, String theCode, String theText) static voidOperationOutcomeUtil.addExpressionToIssue(FhirContext theContext, IBase theIssue, String theLocationExpression) Given an instance ofOperationOutcome.issue, adds a new instance ofOperationOutcome.issue.expressionwith the given string value.static voidExtensionUtil.addExtension(FhirContext theFhirContext, IBase theBase, String theUrl, String theValueType, Object theValue) Adds an extension with the specified valuestatic IBaseOperationOutcomeUtil.addIssue(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome, String theSeverity, String theDiagnostics, String theLocation, String theCode) Add an issue to an OperationOutcomestatic IBaseOperationOutcomeUtil.addIssue(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome, String theSeverity, String theDiagnostics, String theLocation, String theCode, String theDetailSystem, String theDetailCode, String theDetailDescription) static voidOperationOutcomeUtil.addIssueColExtensionToIssue(FhirContext theCtx, IBase theIssue, String theColumn) static voidOperationOutcomeUtil.addIssueLineExtensionToIssue(FhirContext theCtx, IBase theIssue, String theLine) static IBaseOperationOutcomeUtil.addIssueWithMessageId(FhirContext myCtx, IBaseOperationOutcome theOperationOutcome, String theSeverity, String theMessage, String theMessageId, String theLocation, String theCode) static voidOperationOutcomeUtil.addLocationToIssue(FhirContext theContext, IBase theIssue, String theLocation) static voidOperationOutcomeUtil.addMessageIdExtensionToIssue(FhirContext theCtx, IBase theIssue, String theMessageId) static IBaseParametersUtil.addParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName) Add a parameter with no value (typically because we'll be adding sub-parameters)static voidParametersUtil.addParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName, Object theValue) Add a parameter value to a Parameters resourcestatic voidParametersUtil.addParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName, String thePrimitiveDatatype, String theValue) Add a parameter value to a Parameters resourcestatic voidParametersUtil.addParameterToParametersBoolean(FhirContext theCtx, IBaseParameters theParameters, String theName, boolean theValue) static voidParametersUtil.addParameterToParametersCode(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue) static voidParametersUtil.addParameterToParametersDecimal(FhirContext theCtx, IBaseParameters theParameters, String theName, BigDecimal theValue) static voidParametersUtil.addParameterToParametersInteger(FhirContext theCtx, IBaseParameters theParameters, String theName, int theValue) static voidParametersUtil.addParameterToParametersLong(FhirContext theCtx, IBaseParameters theParameters, String theName, long theValue) static voidParametersUtil.addParameterToParametersReference(FhirContext theCtx, IBaseParameters theParameters, String theName, String theReference) static voidParametersUtil.addParameterToParametersString(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue) static voidParametersUtil.addParameterToParametersUri(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue) static IBaseParametersUtil.addPart(FhirContext theContext, IBase theParameter, String theName, IBase theValue) static IBaseParametersUtil.addPartBoolean(FhirContext theContext, IBase theParameter, String theName, Boolean theValue) static voidParametersUtil.addPartCode(FhirContext theContext, IBase theParameter, String theName, String theCode) static voidParametersUtil.addPartCoding(FhirContext theContext, IBase theParameter, String theName, String theSystem, String theCode, String theDisplay) static voidParametersUtil.addPartDecimal(FhirContext theContext, IBase theParameter, String theName, Double theValue) static voidParametersUtil.addPartInteger(FhirContext theContext, IBase theParameter, String theName, Integer theInteger) static voidParametersUtil.addPartResource(FhirContext theContext, IBase theParameter, String theName, IBaseResource theValue) static voidParametersUtil.addPartString(FhirContext theContext, IBase theParameter, String theName, String theValue) static voidParametersUtil.addPartUrl(FhirContext theContext, IBase theParameter, String theName, String theCode) static voidTerserUtil.clearField(FhirContext theFhirContext, String theFieldName, IBase theBase) Clears the specified field on the element providedstatic voidTerserUtil.clearField(FhirContext theFhirContext, IBaseResource theResource, String theFieldName) Clears the specified field on the resource providedstatic voidTerserUtil.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 voidTerserUtil.cloneCompositeField(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo, String theField) Clones specified composite field (collection).static voidTerserUtil.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 IPrimitiveType<?> ParametersUtil.createInstant(FhirContext theContext, Date theValue) static IBaseBundleUtil.createNewBundleEntryWithSingleField(FhirContext theContext, String theFieldName, IBase... theValues) create a new bundle entry and set a value for a single fieldstatic IBaseOperationOutcomeOperationOutcomeUtil.createOperationOutcome(String theSeverity, String theMessage, String theCode, FhirContext theFhirContext, StorageResponseCodeEnum theStorageResponseCode) static IBaseParametersUtil.createPart(FhirContext theContext, IBase thePart, String theName) static IPrimitiveType<?> ParametersUtil.createString(FhirContext theContext, String theValue) static IPrimitiveType<?> ParametersUtil.createUri(FhirContext theContext, String theValue) static StringUrlUtil.determineResourceTypeInResourceUrl(FhirContext theFhirContext, String theUrl) Given a FHIR resource URL, extracts the associated resource type.static booleanTerserUtil.fieldExists(FhirContext theFhirContext, String theFieldName, IBaseResource theInstance) Checks if the field exists on the resourcestatic CanonicalBundleEntryCanonicalBundleEntry.fromBundleEntry(FhirContext theFhirContext, IBaseBackboneElement theEntry) Factory method to create a CanonicalBundleEntry from a Bundle Entrystatic 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 StringBundleUtil.getBundleType(FhirContext theContext, IBaseBundle theBundle) static BundleTypeEnumBundleUtil.getBundleTypeEnum(FhirContext theContext, IBaseBundle theBundle) static StringSearchParameterUtil.getCode(FhirContext theContext, IBaseResource theResource) static StringSearchParameterUtil.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 IBaseTerserUtil.getFirstFieldByFhirPath(FhirContext theFhirContext, String theFhirPath, IBase theResource) Returns the first available field value at the specified FHIR path from the resource.static StringOperationOutcomeUtil.getFirstIssueDetails(FhirContext theCtx, IBaseOperationOutcome theOutcome) Deprecated, for removal: This API element is subject to removal in a future version.static StringOperationOutcomeUtil.getFirstIssueDiagnostics(FhirContext theCtx, IBaseOperationOutcome theOutcome) static StringOperationOutcomeUtil.getFirstIssueLocation(FhirContext theCtx, IBaseOperationOutcome theOutcome) static intOperationOutcomeUtil.getIssueCount(FhirContext theCtx, IBaseOperationOutcome theOutcome) static StringOperationOutcomeUtil.getIssueDiagnostics(FhirContext theCtx, IBaseOperationOutcome theOutcome, int theIndex) static StringBundleUtil.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 List<IBaseReference> ParametersUtil.getNamedParameterReferences(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) Returns the list of parameter reference.static Optional<IBaseResource> ParametersUtil.getNamedParameterResource(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) Returns the resource within a parameter.ParametersUtil.getNamedParameters(FhirContext theCtx, IBaseResource theParameters) Returns a map containing all of the named parameters in a Parameters resource.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 RuntimeSearchParamSearchParameterUtil.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.getParameterPartValueAsBoolean(FhirContext theCtx, IBase theParameter, String theParameterName) ParametersUtil.getParameterPartValueAsInteger(FhirContext theCtx, IBase theParameter, String theParameterName) static StringParametersUtil.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 IBaseBundleUtil.getReferenceInBundle(FhirContext theFhirContext, String theUrl, Object theAppContext) static IBaseResourceBundleUtil.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 IBaseReferenceBinaryUtil.getSecurityContext(FhirContext theCtx, IBaseBinary theBinary) static StringMetaUtil.getSource(FhirContext theContext, IBaseMetaType theMeta) static StringMetaUtil.getSource(FhirContext theContext, IBaseResource theResource) static IntegerBundleUtil.getTotal(FhirContext theContext, IBaseBundle theBundle) static StringSearchParameterUtil.getURL(FhirContext theContext, IBaseResource theResource) static IBaseTerserUtil.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 booleanOperationOutcomeUtil.hasIssues(FhirContext theCtx, IBaseOperationOutcome theOutcome) Returns true if the given OperationOutcome has 1 or more Operation.issue repetitionsstatic booleanOperationOutcomeUtil.hasIssuesOfSeverity(FhirContext theCtx, IBaseOperationOutcome theOutcome, String theSeverity) static booleanTerserUtil.hasValues(FhirContext theFhirContext, IBaseResource theResource, String theFieldName) Checks if the specified fields has any valuesstatic IBaseBackboneElementTerserUtil.instantiateBackboneElement(FhirContext theFhirContext, String theTargetResourceName, String theTargetFieldName) Creates a new BackboneElement.static booleanBundleUtil.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 booleanSearchParameterUtil.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 anInternalErrorExceptionif not foundstatic <T extends IBaseResource>
 TClasspathUtil.loadResource(FhirContext theCtx, Class<T> theType, String theClasspath) static voidTerserUtil.mergeAllFields(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo) Merges all fields on the provided instance.static voidTerserUtil.mergeField(FhirContext theFhirContext, FhirTerser theTerser, String theFieldName, IBaseResource theFrom, IBaseResource theTo) Merges value of the specified field fromtheFromresource totheToresource.static voidTerserUtil.mergeField(FhirContext theFhirContext, String theFieldName, IBaseResource theFrom, IBaseResource theTo) Merges value of the specified field fromtheFromresource totheToresource.static voidTerserUtil.mergeFields(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo, Predicate<String> inclusionStrategy) Merges values of all field fromtheFromresource totheToresource.static voidTerserUtil.mergeFieldsExceptIdAndMeta(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo) Merges values of all fields except for "identifier" and "meta" fromtheFromresource totheToresource.static IBaseBinaryBinaryUtil.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 TerserUtilHelperTerserUtilHelper.newHelper(FhirContext theFhirContext, String theResourceName) Factory method for creating a new instance of the wrapperstatic TerserUtilHelperTerserUtilHelper.newHelper(FhirContext theFhirContext, IBaseResource theResource) Factory method for creating a new instance of the wrapperstatic ICompositeTypeAttachmentUtil.newInstance(FhirContext theFhirCtx) static IBaseOperationOutcomeOperationOutcomeUtil.newInstance(FhirContext theCtx) static IBaseParametersParametersUtil.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 RuntimeResourceDefinitionUrlUtil.parseUrlResourceType(FhirContext theCtx, String theUrl) static <R extends IBaseResource>
 voidMetaUtil.populateResourceSource(FhirContext theFhirContext, String theProvenanceSourceUri, String theProvenanceRequestId, R theRetVal) static voidBundleUtil.processAllEntries(FhirContext theContext, IBaseBundle theBundle, Consumer<ModifiableBundleEntryParts> theEntryConsumer) Invokes a consumer for each entry in the Bundle, passing aModifiableBundleEntryPartswhich contains a version-independent means of accessing and modifiing each entrystatic voidBundleUtil.processEntries(FhirContext theContext, IBaseBundle theBundle, Consumer<ModifiableBundleEntry> theProcessor) Deprecated, for removal: This API element is subject to removal in a future version.static booleanSearchParameterUtil.referencePathCouldPotentiallyReferenceCanonicalElement(FhirContext theContext, String theResourceType, String thePath, boolean theReverse) Given a FHIRPath expression which presumably addresses a FHIR reference or canonical reference element (i.e. a FHIRPath expression used in a "reference" SearchParameter), tries to determine whether the path could potentially resolve to a canonical reference.static voidResourceUtil.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 voidTerserUtil.replaceField(FhirContext theFhirContext, String theFieldName, IBaseResource theFrom, IBaseResource theTo) Replaces the specified fields ontheToresource with the value fromtheFromresource.static voidTerserUtil.replaceFields(FhirContext theFhirContext, IBaseResource theFrom, IBaseResource theTo, Predicate<String> theFieldNameInclusion) Replaces all fields that have matching field names by the given inclusion strategy.static voidTerserUtil.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 voidBundleUtil.setBundleType(FhirContext theContext, IBaseBundle theBundle, String theType) static voidAttachmentUtil.setContentType(FhirContext theContext, ICompositeType theAttachment, String theContentType) static voidAttachmentUtil.setData(FhirContext theContext, ICompositeType theAttachment, byte[] theBytes) static voidBinaryUtil.setData(FhirContext theCtx, IBaseBinary theBinary, byte[] theBytes, String theContentType) static voidExtensionUtil.setExtension(FhirContext theFhirContext, IBaseExtension<?, ?> theExtension, String theValue) Sets value of the extension as a stringstatic voidExtensionUtil.setExtension(FhirContext theFhirContext, IBaseExtension<?, ?> theExtension, String theExtensionType, Object theValue) Sets value of the extensionstatic voidExtensionUtil.setExtension(FhirContext theFhirContext, IBase theBase, String theUrl, String theValueType, Object theValue) Sets or replaces existing extension with the specified valuestatic voidExtensionUtil.setExtensionAsString(FhirContext theFhirContext, IBase theBase, String theUrl, String theValue) Sets or replaces existing extension with the specified value as a stringstatic voidTerserUtil.setField(FhirContext theFhirContext, FhirTerser theTerser, String theFieldName, IBaseResource theResource, IBase... theValues) Sets the provided field with the given values.static voidTerserUtil.setField(FhirContext theFhirContext, String theFieldName, IBaseResource theResource, IBase... theValues) Sets the provided field with the given values.static voidTerserUtil.setFieldByFhirPath(FhirContext theFhirContext, String theFhirPath, IBaseResource theResource, IBase theValue) Sets the specified value at the FHIR path provided.static voidSubscriptionUtil.setReason(FhirContext theContext, IBaseResource theSubscription, String theMessage) static voidBinaryUtil.setSecurityContext(FhirContext theCtx, IBaseBinary theBinary, String theSecurityContext) static voidAttachmentUtil.setSize(FhirContext theContext, ICompositeType theAttachment, Integer theLength) static voidMetaUtil.setSource(FhirContext theContext, IBaseMetaType theMeta, String theValue) static voidMetaUtil.setSource(FhirContext theContext, IBaseResource theResource, String theValue) Sets the value forResource.meta.sourcefor R4+ resources, and places the value in an extension onResource.metawith the URLhttp://hapifhir.io/fhir/StructureDefinition/resource-meta-sourcefor DSTU3.static voidSubscriptionUtil.setStatus(FhirContext theContext, IBaseResource theSubscription, String theStatus) static voidTerserUtil.setStringField(FhirContext theFhirContext, String theFieldName, IBaseResource theResource, String theValue) Sets the provided field with the given values.static voidTerserUtil.setStringFieldByFhirPath(FhirContext theFhirContext, String theFhirPath, IBaseResource theResource, String theValue) Sets the specified String value at the FHIR path provided.static voidBundleUtil.setTotal(FhirContext theContext, IBaseBundle theBundle, Integer theTotal) static voidAttachmentUtil.setUrl(FhirContext theContext, ICompositeType theAttachment, String theUrl) static voidBundleUtil.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.<T extends IBase>
 TCanonicalBundleEntry.toBundleEntry(FhirContext theFhirContext, Class<T> theBundleEntryComponentClass) Convert this CanonicalBundleEntry back to a Bundle Entry of the specified typestatic List<CanonicalBundleEntry> BundleUtil.toListOfCanonicalBundleEntries(FhirContext theContext, IBaseBundle theBundle) static List<BundleEntryParts> BundleUtil.toListOfEntries(FhirContext theContext, IBaseBundle theBundle) Extract all of the resources from a given bundlestatic <T> List<T> BundleUtil.toListOfEntries(FhirContext theContext, IBaseBundle theBundle, PartsConverter<T> partsConverter) static List<ModifiableBundleEntryParts> BundleUtil.toListOfEntriesModifiable(FhirContext theContext, IBaseBundle theBundle) Returns a list of entries in the Bundle with a modifiable type that can be used to manipulate the entries.BundleUtil.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 bundleConstructors in ca.uhn.fhir.util with parameters of type FhirContextModifierConstructorDescriptionBundleBuilder(FhirContext theContext) ConstructorBundleBuilder(FhirContext theContext, IBaseBundle theBundle) Constructor which accepts an existing Bundle.CompositionBuilder(FhirContext theFhirContext) FhirPatchBuilder(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) protectedTerserUtilHelper(FhirContext theFhirContext, IBaseResource theResource) 
- 
Uses of FhirContext in ca.uhn.fhir.util.bundleMethods in ca.uhn.fhir.util.bundle with parameters of type FhirContextModifier and TypeMethodDescriptionstatic Function<BundleResponseEntryParts, IBase> BundleResponseEntryParts.builder(FhirContext theFhirContext) static Function<IBase, BundleResponseEntryParts> BundleResponseEntryParts.buildPartsExtractor(FhirContext theFhirContext) Build an extractor function that can be used to extract the parts of a bundle entry.BundleResponseEntryParts.getConverter(FhirContext theFhirContext) voidModifiableBundleEntry.setRequestUrl(FhirContext theFhirContext, String theRequestUrl) Deprecated, for removal: This API element is subject to removal in a future version.Constructors in ca.uhn.fhir.util.bundle with parameters of type FhirContextModifierConstructorDescriptionBundleEntryMutator(FhirContext theFhirContext, IBase theEntry, BaseRuntimeChildDefinition theRequestChildDef, BaseRuntimeElementCompositeDefinition<?> theChildContentsDef, BaseRuntimeElementCompositeDefinition<?> theEntryDefinition, BaseRuntimeChildDefinition theMethodChildDef) ModifiableBundleEntryParts(FhirContext theFhirContext, BundleEntryParts theBundleEntryParts, BundleEntryMutator theBundleEntryMutator) 
- 
Uses of FhirContext in ca.uhn.fhir.validationFields in ca.uhn.fhir.validation declared as FhirContextMethods in ca.uhn.fhir.validation that return FhirContextModifier and TypeMethodDescriptionValidationResult.getContext()IValidationContext.getFhirContext()Methods in ca.uhn.fhir.validation with parameters of type FhirContextModifier 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) Constructors in ca.uhn.fhir.validation with parameters of type FhirContextModifierConstructorDescriptionFhirValidator(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.schematronMethods in ca.uhn.fhir.validation.schematron with parameters of type FhirContextModifier and TypeMethodDescriptionstatic IValidatorModuleSchematronProvider.getSchematronValidatorInstance(FhirContext myContext) static booleanSchematronProvider.isSchematronAvailable(FhirContext theFhirContext) Constructors in ca.uhn.fhir.validation.schematron with parameters of type FhirContext