Uses of Class
ca.uhn.fhir.context.FhirContext
Packages that use FhirContext
Package
Description
-
Uses of FhirContext in ca.uhn.fhir.context
Methods 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.forDstu3()Creates and returns a new FhirContext with versionDSTU3static FhirContextFhirContext.forDstu3Cached()static FhirContextFhirContext.forR4()Creates and returns a new FhirContext with versionR4static FhirContextFhirContext.forR4Cached()static FhirContextFhirContext.forR5()Creates and returns a new FhirContext with versionR5static FhirContextFhirContext.forR5Cached()FhirVersionEnum.newContext()Methods in ca.uhn.fhir.context with parameters of type FhirContextModifier and TypeMethodDescriptionvoidRuntimeCompositeDatatypeDefinition.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.support
Methods 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.LookupCodeResult.toParameters(FhirContext theContext, List<? extends IPrimitiveType<String>> theProperties)Constructors in ca.uhn.fhir.context.support with parameters of type FhirContextModifierConstructorDescriptionDefaultProfileValidationSupport(FhirContext theFhirContext)Constructor -
Uses of FhirContext in ca.uhn.fhir.model.api
Methods in ca.uhn.fhir.model.api with parameters of type FhirContextModifier 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)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.composite
Methods in ca.uhn.fhir.model.base.composite with parameters of type FhirContextModifier 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)voidBaseCodingDt.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.primitive
Methods in ca.uhn.fhir.model.primitive with parameters of type FhirContextModifier and TypeMethodDescriptionStringDt.getValueAsQueryToken(FhirContext theContext)Returns a representation of this parameter's value as it will be represented "over the wire".voidStringDt.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
Constructors in ca.uhn.fhir.model.view with parameters of type FhirContext -
Uses of FhirContext in ca.uhn.fhir.narrative
Methods in ca.uhn.fhir.narrative with parameters of type FhirContextModifier and TypeMethodDescriptionbooleanBaseThymeleafNarrativeGenerator.populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource)booleanINarrativeGenerator.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
Methods in ca.uhn.fhir.narrative2 with parameters of type FhirContextModifier and TypeMethodDescriptionprotected abstract StringBaseNarrativeGenerator.applyTemplate(FhirContext theFhirContext, INarrativeTemplate theTemplate, IBase theTargetContext)protected StringThymeleafNarrativeGenerator.applyTemplate(FhirContext theFhirContext, INarrativeTemplate theTemplate, IBase theTargetContext)INarrativeTemplateManifest.getTemplateByElement(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, IBase theElementValue)NarrativeTemplateManifest.getTemplateByElement(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, IBase theElement)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)NarrativeTemplateManifest.getTemplateByResourceName(FhirContext theFhirContext, EnumSet<TemplateTypeEnum> theStyles, String theResourceName)booleanBaseNarrativeGenerator.populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource)booleanNullNarrativeGenerator.populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource) -
Uses of FhirContext in ca.uhn.fhir.parser
Methods 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.rest.api
Methods 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.api
Methods in ca.uhn.fhir.rest.client.api that return FhirContextModifier and TypeMethodDescriptionIRestfulClient.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) -
Uses of FhirContext in ca.uhn.fhir.rest.gclient
Methods 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.param
Methods 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)BaseParam.getValueAsQueryToken(FhirContext theContext)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.binder
Methods 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.exceptions
Constructors 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.util
Methods 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 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 theDetails, String theLocation, String theCode)Add an issue to an OperationOutcomestatic voidOperationOutcomeUtil.addLocationToIssue(FhirContext theContext, IBase theIssue, String theLocation)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 voidParametersUtil.addPart(FhirContext theContext, IBase theParameter, String theName, IBase theValue)static voidParametersUtil.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 voidTerserUtil.clearField(FhirContext theFhirContext, String theFieldName, IBase theBase)Clears the specified field on the element providedstatic voidTerserUtil.clearField(FhirContext theFhirContext, String theFieldName, IBaseResource theResource)Clears the specified field on the resource providedstatic <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.cloneEidIntoResource(FhirContext theFhirContext, BaseRuntimeChildDefinition theIdentifierDefinition, IBase theEid, IBase theResourceToCloneEidInto)Given an Child Definition of `identifier`, a R4/DSTU3 EID Identifier, and a new resource, clone the EID into that resources' identifier list.static IPrimitiveType<?>ParametersUtil.createCode(FhirContext theContext, String theValue)static IPrimitiveType<?>ParametersUtil.createString(FhirContext theContext, String theValue)static IPrimitiveType<?>ParametersUtil.createUri(FhirContext theContext, String theValue)static booleanTerserUtil.fieldExists(FhirContext theFhirContext, String theFieldName, IBaseResource theInstance)Checks if the field exists on the resourcestatic List<RuntimeSearchParam>SearchParameterUtil.getAllPatientCompartmentRuntimeSearchParams(FhirContext theFhirContext, String theResourceType)SearchParameterUtil.getBaseAsStrings(FhirContext theContext, IBaseResource theResource)static List<org.apache.commons.lang3.tuple.Pair<String,IBaseResource>>BundleUtil.getBundleEntryUrlsAndResources(FhirContext theContext, IBaseBundle theBundle)static StringBundleUtil.getBundleType(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)static StringOperationOutcomeUtil.getFirstIssueLocation(FhirContext theCtx, IBaseOperationOutcome theOutcome)static intOperationOutcomeUtil.getIssueCount(FhirContext theCtx, IBaseOperationOutcome theOutcome)static StringBundleUtil.getLinkUrlOfType(FhirContext theContext, IBaseBundle theBundle, String theLinkRelation)ParametersUtil.getNamedParameterPartAsString(FhirContext theCtx, IBaseParameters theParameters, String thePartName, String theParameterName)ParametersUtil.getNamedParameters(FhirContext theCtx, IBaseResource theParameters, String theParameterName)ParametersUtil.getNamedParameterValueAsInteger(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<String>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)static StringParametersUtil.getParameterPartValueAsString(FhirContext theCtx, IBase theParameter, String theParameterName)static List<SearchBundleEntryParts>BundleUtil.getSearchBundleEntryParts(FhirContext theContext, IBaseBundle theBundle)static IBaseReferenceBinaryUtil.getSecurityContext(FhirContext theCtx, IBaseBinary theBinary)static StringMetaUtil.getSource(FhirContext theContext, IBaseMetaType theMeta)static IntegerBundleUtil.getTotal(FhirContext theContext, IBaseBundle theBundle)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 booleanTerserUtil.hasValues(FhirContext theFhirContext, IBaseResource theResource, String theFieldName)Checks if the specified fields has any valuesstatic 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 <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 voidBundleUtil.processEntries(FhirContext theContext, IBaseBundle theBundle, Consumer<ModifiableBundleEntry> theProcessor)Given a bundle, and a consumer, apply the consumer to each entry in the bundle.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 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.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 bundleConstructors in ca.uhn.fhir.util with parameters of type FhirContextModifierConstructorDescriptionBundleBuilder(FhirContext theContext)ConstructorFhirTerser(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.bundle
Methods in ca.uhn.fhir.util.bundle with parameters of type FhirContextModifier and TypeMethodDescriptionvoidModifiableBundleEntry.setRequestUrl(FhirContext theFhirContext, String theRequestUrl)Constructors in ca.uhn.fhir.util.bundle with parameters of type FhirContextModifierConstructorDescriptionBundleEntryMutator(FhirContext theFhirContext, IBase theEntry, BaseRuntimeChildDefinition theRequestChildDef, BaseRuntimeElementCompositeDefinition<?> theChildContentsDef, BaseRuntimeElementCompositeDefinition<?> theEntryDefinition) -
Uses of FhirContext in ca.uhn.fhir.validation
Fields 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.schematron
Methods 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