Uses of Interface
org.hl7.fhir.instance.model.api.IBaseResource
Package
Description
-
Uses of IBaseResource in ca.uhn.fhir.context
Modifier and TypeMethodDescriptionClass
<? extends IBaseResource> FhirContext.getDefaultTypeForProfile
(String theProfile) Returns the default resource type for the given profileList
<Class<? extends IBaseResource>> RuntimeChildChoiceDefinition.getResourceTypes()
List
<Class<? extends IBaseResource>> RuntimeChildResourceDefinition.getResourceTypes()
Modifier and TypeMethodDescriptionFhirContext.getResourceDefinition
(IBaseResource theResource) Returns the scanned runtime model for the given type.FhirContext.getResourceType
(IBaseResource theResource) Returns the name of the scanned runtime model for the given type.Modifier and TypeMethodDescriptionFhirContext.getResourceDefinition
(Class<? extends IBaseResource> theResourceType) Returns the scanned runtime model for the given type.FhirContext.getResourceType
(Class<? extends IBaseResource> theResourceType) Returns the name of a given resource class.void
FhirContext.setDefaultTypeForProfile
(String theProfile, Class<? extends IBaseResource> theClass) Sets the default type which will be used when parsing a resource that is found to be of the given profile.ModifierConstructorDescriptionFhirContext
(Class<? extends IBaseResource> theResourceType) Deprecated.It is recommended that you use one of the static initializer methods instead of this method, e.g.FhirContext
(Collection<Class<? extends IBaseResource>> theResourceTypes) Deprecated.It is recommended that you use one of the static initializer methods instead of this method, e.g.RuntimeChildResourceDefinition
(Field theField, String theElementName, Child theChildAnnotation, Description theDescriptionAnnotation, List<Class<? extends IBaseResource>> theResourceTypes) ConstructorRuntimeElemContainedResourceList
(Class<IBaseResource> theClass, boolean theStandardType) RuntimeResourceDefinition
(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) -
Uses of IBaseResource in ca.uhn.fhir.context.support
Modifier and TypeMethodDescription<T extends IBaseResource>
List<T> DefaultProfileValidationSupport.fetchAllNonBaseStructureDefinitions()
default <T extends IBaseResource>
List<T> IValidationSupport.fetchAllNonBaseStructureDefinitions()
Load and return all possible structure definitions aside from resource definitions themselvesdefault <T extends IBaseResource>
List<T> IValidationSupport.fetchAllSearchParameters()
Load and return all possible search parameters<T extends IBaseResource>
List<T> DefaultProfileValidationSupport.fetchAllStructureDefinitions()
default <T extends IBaseResource>
List<T> IValidationSupport.fetchAllStructureDefinitions()
Load and return all possible structure definitionsdefault <T extends IBaseResource>
TIValidationSupport.fetchResource
(Class<T> theClass, String theUri) Loads a resource needed by the validation (a StructureDefinition, or a ValueSet)Modifier and TypeMethodDescriptionDefaultProfileValidationSupport.fetchCodeSystem
(String theSystem) default IBaseResource
IValidationSupport.fetchCodeSystem
(String theSystem) Fetch a code system by IDDefaultProfileValidationSupport.fetchStructureDefinition
(String theUrl) default IBaseResource
IValidationSupport.fetchStructureDefinition
(String theUrl) DefaultProfileValidationSupport.fetchValueSet
(String theUrl) default IBaseResource
IValidationSupport.fetchValueSet
(String theValueSetUrl) Fetch the given ValueSet by URL, or returns null if one can't be found for the given URLdefault IBaseResource
IValidationSupport.generateSnapshot
(ValidationSupportContext theValidationSupportContext, IBaseResource theInput, String theUrl, String theWebUrl, String theProfileName) Generate a snapshot from the given differential profile.IValidationSupport.ValueSetExpansionOutcome.getValueSet()
Modifier and TypeMethodDescriptionDefaultProfileValidationSupport.fetchAllConformanceResources()
default List
<IBaseResource> IValidationSupport.fetchAllConformanceResources()
Load and return all conformance resources associated with this validation support module.Modifier and TypeMethodDescriptionIValidationSupport.expandValueSet
(ValidationSupportContext theValidationSupportContext, ValueSetExpansionOptions theExpansionOptions, IBaseResource theValueSetToExpand) Expands the given portion of a ValueSetdefault IBaseResource
IValidationSupport.generateSnapshot
(ValidationSupportContext theValidationSupportContext, IBaseResource theInput, String theUrl, String theWebUrl, String theProfileName) Generate a snapshot from the given differential profile.static String
DefaultProfileValidationSupport.getConformanceResourceUrl
(FhirContext theFhirContext, IBaseResource theResource) IValidationSupport.validateCodeInValueSet
(ValidationSupportContext theValidationSupportContext, ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, IBaseResource theValueSet) Validates that the given code exists and if possible returns a display name. -
Uses of IBaseResource in ca.uhn.fhir.model.api
Modifier and TypeInterfaceDescriptioninterface
This interface is the parent interface for all FHIR Resource definition classes.Modifier and TypeMethodDescriptionIFhirVersion.generateProfile
(RuntimeResourceDefinition theRuntimeResourceDefinition, String theServerBase) Modifier and TypeMethodDescriptionResourceMetadataKeyEnum.get
(IBaseResource theResource) IFhirVersion.getLastUpdated
(IBaseResource theResource) void
ResourceMetadataKeyEnum.put
(IBaseResource theResource, T theValue) -
Uses of IBaseResource in ca.uhn.fhir.model.base.composite
Modifier and TypeMethodDescriptionBaseResourceReferenceDt.getResource()
Gets the actual loaded and parsed resource instance, if it is already present.BaseResourceReferenceDt.loadResource
(IRestfulClient theClient) Returns the referenced resource, fetching it if it has not already been loaded. -
Uses of IBaseResource in ca.uhn.fhir.model.base.resource
Modifier and TypeInterfaceDescriptioninterface
interface
interface
-
Uses of IBaseResource in ca.uhn.fhir.model.primitive
Modifier and TypeMethodDescriptionvoid
IdDt.applyTo
(IBaseResource theResouce) static IdDt
IdDt.of
(IBaseResource theResouce) Retrieves the ID from the given resource instance -
Uses of IBaseResource in ca.uhn.fhir.model.view
Modifier and TypeMethodDescription<T extends IBaseResource>
TViewGenerator.newView
(IBaseResource theResource, Class<T> theTargetType) Modifier and TypeMethodDescription<T extends IBaseResource>
TViewGenerator.newView
(IBaseResource theResource, Class<T> theTargetType) -
Uses of IBaseResource in ca.uhn.fhir.narrative
Modifier and TypeMethodDescriptionINarrativeGenerator.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 IBaseResource in ca.uhn.fhir.narrative2
Modifier and TypeMethodDescriptionBaseNarrativeGenerator.generateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) NullNarrativeGenerator.generateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) boolean
BaseNarrativeGenerator.populateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) boolean
NullNarrativeGenerator.populateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) -
Uses of IBaseResource in ca.uhn.fhir.parser
Modifier and TypeMethodDescriptionprotected abstract <T extends IBaseResource>
TBaseParser.doParseResource
(Class<T> theResourceType, Reader theReader) <T extends IBaseResource>
TJsonParser.doParseResource
(Class<T> theResourceType, JsonLikeStructure theJsonStructure) <T extends IBaseResource>
TJsonParser.doParseResource
(Class<T> theResourceType, Reader theReader) <T extends IBaseResource>
TNDJsonParser.doParseResource
(Class<T> theResourceType, Reader theReader) protected <T extends IBaseResource>
TRDFParser.doParseResource
(Class<T> resourceType, Reader reader) Parses RDF content to a FHIR resource using Apache Jena<T extends IBaseResource>
TXmlParser.doParseResource
(Class<T> theResourceType, Reader theReader) <T extends IBaseResource>
TBaseParser.parseResource
(Class<T> theResourceType, InputStream theInputStream) <T extends IBaseResource>
TBaseParser.parseResource
(Class<T> theResourceType, Reader theReader) <T extends IBaseResource>
TBaseParser.parseResource
(Class<T> theResourceType, String theMessageString) <T extends IBaseResource>
TIJsonLikeParser.parseResource
(Class<T> theResourceType, JsonLikeStructure theJsonLikeStructure) Parses a resource from a JSON-like data structure<T extends IBaseResource>
TIParser.parseResource
(Class<T> theResourceType, InputStream theInputStream) Parses a resource<T extends IBaseResource>
TIParser.parseResource
(Class<T> theResourceType, Reader theReader) Parses a resource<T extends IBaseResource>
TIParser.parseResource
(Class<T> theResourceType, String theString) Parses a resource<T extends IBaseResource>
TJsonParser.parseResource
(Class<T> theResourceType, JsonLikeStructure theJsonLikeStructure) Modifier and TypeMethodDescriptionBaseParser.parseResource
(InputStream theInputStream) BaseParser.parseResource
(Reader theReader) BaseParser.parseResource
(String theMessageString) IJsonLikeParser.parseResource
(JsonLikeStructure theJsonLikeStructure) Parses a resource from a JSON-like data structureIParser.parseResource
(InputStream theInputStream) Parses a resourceIParser.parseResource
(Reader theReader) Parses a resourceIParser.parseResource
(String theMessageString) Parses a resourceJsonParser.parseResource
(JsonLikeStructure theJsonLikeStructure) Modifier and TypeMethodDescriptionList
<Class<? extends IBaseResource>> BaseParser.getPreferTypes()
List
<Class<? extends IBaseResource>> IParser.getPreferTypes()
Gets the preferred types, as set usingIParser.setPreferTypes(List)
Modifier and TypeMethodDescriptionprotected void
BaseParser.containResourcesInReferences
(IBaseResource theResource) void
JsonParser.doEncodeResourceToJsonLikeWriter
(IBaseResource theResource, BaseJsonLikeWriter theEventWriter, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) protected abstract void
BaseParser.doEncodeResourceToWriter
(IBaseResource theResource, Writer theWriter, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) protected void
JsonParser.doEncodeResourceToWriter
(IBaseResource theResource, Writer theWriter, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) protected void
NDJsonParser.doEncodeResourceToWriter
(IBaseResource theResource, Writer theWriter, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) protected void
RDFParser.doEncodeResourceToWriter
(IBaseResource resource, Writer writer, ca.uhn.fhir.parser.BaseParser.EncodeContext encodeContext) Writes the provided resource to the writer.void
XmlParser.doEncodeResourceToWriter
(IBaseResource theResource, Writer theWriter, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) void
IJsonLikeParser.encodeResourceToJsonLikeWriter
(IBaseResource theResource, BaseJsonLikeWriter theJsonLikeWriter) void
JsonParser.encodeResourceToJsonLikeWriter
(IBaseResource theResource, BaseJsonLikeWriter theJsonLikeWriter) BaseParser.encodeResourceToString
(IBaseResource theResource) IParser.encodeResourceToString
(IBaseResource theResource) Encodes a resource using the parser's given encoding format.final void
BaseParser.encodeResourceToWriter
(IBaseResource theResource, Writer theWriter) protected void
BaseParser.encodeResourceToWriter
(IBaseResource theResource, Writer theWriter, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) void
IParser.encodeResourceToWriter
(IBaseResource theResource, Writer theWriter) Encodes a resource using the parser's given encoding format.protected <T extends IPrimitiveType<String>>
List<T> BaseParser.getProfileTagsForEncoding
(IBaseResource theResource, List<T> theProfiles) BaseParser.preProcessValues
(BaseRuntimeChildDefinition theMetaChildUncast, IBaseResource theResource, List<? extends IBase> theValues, BaseParser.CompositeChildElement theCompositeChildElement, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) protected boolean
BaseParser.shouldEncodeResourceId
(IBaseResource theResource, ca.uhn.fhir.parser.BaseParser.EncodeContext theEncodeContext) Modifier and TypeMethodDescriptionvoid
BaseParser.setPreferTypes
(List<Class<? extends IBaseResource>> thePreferTypes) void
IParser.setPreferTypes
(List<Class<? extends IBaseResource>> thePreferTypes) If set, when parsing resources the parser will try to use the given types when possible, in the order that they are provided (from highest to lowest priority). -
Uses of IBaseResource in ca.uhn.fhir.repository
Modifier and TypeMethodDescriptiondefault <T extends IBaseResource>
MethodOutcomeRepository.create
(T resource) Creates a Resource in the repository<T extends IBaseResource>
MethodOutcomeCreates a Resource in the repositorydefault <T extends IBaseResource,
I extends IIdType>
MethodOutcomeDeletes a Resource in the repository<T extends IBaseResource,
I extends IIdType>
MethodOutcomeDeletes a Resource in the repositorydefault <B extends IBaseBundle,
P extends IBaseParameters, T extends IBaseResource>
BReturns a Bundle with type-level history for this repositorydefault <B extends IBaseBundle,
P extends IBaseParameters, T extends IBaseResource>
BRepository.history
(Class<T> resourceType, P parameters, Class<B> returnType, Map<String, String> headers) Returns a Bundle with type-level history for this repositorydefault <R extends IBaseResource,
P extends IBaseParameters, I extends IIdType>
RInvokes an instance-level operation on this repository that returns a Resource<R extends IBaseResource,
P extends IBaseParameters, I extends IIdType>
RInvokes an instance-level operation on this repository that returns a Resourcedefault <P extends IBaseParameters,
T extends IBaseResource>
MethodOutcomeInvokes a type-level operation on this repositorydefault <R extends IBaseResource,
P extends IBaseParameters, T extends IBaseResource>
RInvokes a type-level operation on this repository that returns a Resourcedefault <R extends IBaseResource,
P extends IBaseParameters, T extends IBaseResource>
RInvokes a type-level operation on this repository that returns a Resource<R extends IBaseResource,
P extends IBaseParameters, T extends IBaseResource>
RRepository.invoke
(Class<T> resourceType, String name, P parameters, Class<R> returnType, Map<String, String> headers) Invokes a type-level operation on this repository that returns a Resource<R extends IBaseResource,
P extends IBaseParameters, T extends IBaseResource>
RRepository.invoke
(Class<T> resourceType, String name, P parameters, Class<R> returnType, Map<String, String> headers) Invokes a type-level operation on this repository that returns a Resourcedefault <P extends IBaseParameters,
T extends IBaseResource>
MethodOutcomeInvokes a type-level operation on this repositorydefault <R extends IBaseResource,
P extends IBaseParameters>
RInvokes a server-level operation on this repository that returns a Resourcedefault <R extends IBaseResource,
P extends IBaseParameters>
RInvokes a server-level operation on this repository that returns a Resourcedefault <T extends IBaseResource,
I extends IIdType>
TReads a resource from the repository<T extends IBaseResource,
I extends IIdType>
TReads a Resource from the repositorydefault <B extends IBaseBundle,
T extends IBaseResource>
BRepository.search
(Class<B> bundleType, Class<T> resourceType, Map<String, List<IQueryParameterType>> searchParameters) Searches this repository<B extends IBaseBundle,
T extends IBaseResource>
BRepository.search
(Class<B> bundleType, Class<T> resourceType, Map<String, List<IQueryParameterType>> searchParameters, Map<String, String> headers) Searches this repositorydefault <T extends IBaseResource>
MethodOutcomeRepository.update
(T resource) Updates a Resource in the repository<T extends IBaseResource>
MethodOutcomeUpdates a Resource in the repository -
Uses of IBaseResource in ca.uhn.fhir.rest.api
Modifier and TypeMethodDescriptionMethodOutcome.getResource()
From a client response: If the method returned an actual resource body (e.g.IVersionSpecificBundleFactory.getResourceBundle()
Modifier and TypeMethodDescriptionvoid
IVersionSpecificBundleFactory.initializeWithBundleResource
(IBaseResource theResource) MethodOutcome.setResource
(IBaseResource theResource) In a server response: This field may be populated in server code with the final resource for operations where a resource body is being created/updated.Modifier and TypeMethodDescriptionvoid
IVersionSpecificBundleFactory.addResourcesToBundle
(List<IBaseResource> theResult, BundleTypeEnum theBundleType, String theServerBase, BundleInclusionRule theBundleInclusionRule, Set<Include> theIncludes) default void
IVersionSpecificBundleFactory.initializeBundleFromResourceList
(String theAuthor, List<? extends IBaseResource> theResult, String theServerBase, String theCompleteUrl, int theTotalResults, BundleTypeEnum theBundleType) Deprecated.This was deprecated in HAPI FHIR 4.1.0 as it provides duplicate functionality to theIVersionSpecificBundleFactory.addRootPropertiesToBundle(String, BundleLinks, Integer, IPrimitiveType<Date>)
andIVersionSpecificBundleFactory.addResourcesToBundle(List, BundleTypeEnum, String, BundleInclusionRule, Set)
methods -
Uses of IBaseResource in ca.uhn.fhir.rest.client.api
Modifier and TypeMethodDescription<T extends IBaseResource>
TIRestfulClient.fetchResourceFromUrl
(Class<T> theResourceType, String theUrl) Retrieve the contents at the given URL and parse them as a resource.<T extends IBaseResource>
TDeprecated.Useread() fluent method
instead (deprecated in HAPI FHIR 3.0.0)<T extends IBaseResource>
TDeprecated.Useread() fluent method
instead (deprecated in HAPI FHIR 3.0.0)<T extends IBaseResource>
TDeprecated.Useread() fluent method
instead (deprecated in HAPI FHIR 3.0.0)<T extends IBaseResource>
TDeprecated.Useread() fluent method
instead (deprecated in HAPI FHIR 3.0.0)Modifier and TypeMethodDescriptionDeprecated.Useread() fluent method
instead (deprecated in HAPI FHIR 3.0.0)Modifier and TypeMethodDescriptionClass
<? extends IBaseResource> ClientResponseContext.getReturnType()
Modifier and TypeMethodDescriptionIGenericClient.update
(IdDt theId, IBaseResource theResource) Deprecated.Useupdate() fluent method
instead (deprecated in HAPI FHIR 3.0.0)IGenericClient.update
(String theId, IBaseResource theResource) Deprecated.Useupdate() fluent method
instead (deprecated in HAPI FHIR 3.0.0)IGenericClient.validate
(IBaseResource theResource) Deprecated.Usevalidate() fluent method
instead (deprecated in HAPI FHIR 3.0.0)ModifierConstructorDescriptionClientResponseContext
(IHttpRequest myHttpRequest, IHttpResponse theHttpResponse, IRestfulClient myRestfulClient, FhirContext theFhirContext, Class<? extends IBaseResource> theReturnType) -
Uses of IBaseResource in ca.uhn.fhir.rest.gclient
Modifier and TypeInterfaceDescriptioninterface
IOperationProcessMsgMode<T extends IBaseResource>
interface
IReadExecutable<T extends IBaseResource>
interface
IReadIfNoneMatch<T extends IBaseResource>
interface
IReadTyped<T extends IBaseResource>
Modifier and TypeMethodDescription<R extends IBaseResource>
IOperationProcessMsgMode<R> IOperationProcessMsgMode.asynchronous
(Class<R> theResponseClass) <T extends IBaseResource>
IReadTyped<T> Construct a read for the given resource type (e.g.<R extends IBaseResource>
IOperationUntypedWithInput<R> IOperationUntypedWithInput.returnResourceType
(Class<R> theReturnType) If this operation returns a single resource body as its return type instead of aParameters
resource, use this method to specify that resource type.<R extends IBaseResource>
IOperationProcessMsgMode<R> IOperationProcessMsg.setMessageBundle
(IBaseBundle theMsgBundle) Set the Message Bundle to POST to the messaging server.
After this call you must choose either the method synchronous or asynchronous to set the processing mode.<R extends IBaseResource>
IOperationProcessMsgMode<R> IOperationProcessMsgMode.synchronous
(Class<R> theResponseClass) Modifier and TypeMethodDescriptionConstruct a read for the given resource type (e.g.ITransaction.withResources
(List<? extends IBaseResource> theResources) Use a list of resources as the transaction inputModifier and TypeMethodDescriptionICreate.resource
(IBaseResource theResource) IDelete.resource
(IBaseResource theResource) IUpdate.resource
(IBaseResource theResource) IValidate.resource
(IBaseResource theResource) Use a resource as validate inputModifier and TypeMethodDescriptionIPatchWithBody.conditional
(Class<? extends IBaseResource> theResourceType) Build a conditional URL using fluent constants on resource typesIUntypedQuery.forResource
(Class<? extends IBaseResource> theClass) IBaseOn.onType
(Class<? extends IBaseResource> theResourceType) Perform the operation across all versions of all resources of the given type on the serverIClientExecutable.preferResponseType
(Class<? extends IBaseResource> theType) Explicitly specify a custom structure type to attempt to use when parsing the response.IClientExecutable.preferResponseTypes
(List<Class<? extends IBaseResource>> theTypes) Explicitly specify a list of custom structure types to attempt to use (in order from most to least preferred) when parsing the response.IDelete.resourceConditionalByType
(Class<? extends IBaseResource> theResourceType) Delete using a conditional/match URL.ITransaction.withResources
(List<? extends IBaseResource> theResources) Use a list of resources as the transaction input -
Uses of IBaseResource in ca.uhn.fhir.rest.param
Modifier and TypeMethodDescriptionClass
<? extends IBaseResource> ReferenceParam.getResourceType
(FhirContext theCtx) -
Uses of IBaseResource in ca.uhn.fhir.rest.server.exceptions
ModifierConstructorDescriptionResourceGoneException
(Class<? extends IBaseResource> theClass, BaseIdentifierDt thePatientId) Deprecated.This constructor has a dependency on a specific model version and will be removed.ResourceGoneException
(Class<? extends IBaseResource> theClass, IIdType theResourceId) Constructor which creates an error message based on a given resource ID -
Uses of IBaseResource in ca.uhn.fhir.serializer
Modifier and TypeMethodDescriptionFhirResourceDeserializer.deserialize
(com.fasterxml.jackson.core.JsonParser theJsonParser, com.fasterxml.jackson.databind.DeserializationContext theContext) Modifier and TypeMethodDescriptionvoid
FhirResourceSerializer.serialize
(IBaseResource theResource, com.fasterxml.jackson.core.JsonGenerator theJsonGenerator, com.fasterxml.jackson.databind.SerializerProvider theProvider) -
Uses of IBaseResource in ca.uhn.fhir.util
Modifier and TypeMethodDescription<T extends IBaseResource>
TFhirTerser.clone
(T theSource) Clones a resource object, copying all data elements from theSource into a new copy of the same type.static <T extends IBaseResource>
TTerserUtil.clone
(FhirContext theFhirContext, T theInstance) Clones the specified resource.<T extends IBaseResource>
TCompositionBuilder.getComposition()
<T extends IBaseResource>
TTerserUtilHelper.getResource()
Gets resource that this helper operates onstatic <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 <R extends IBaseResource>
voidMetaUtil.populateResourceSource
(FhirContext theFhirContext, String theProvenanceSourceUri, String theProvenanceRequestId, R theRetVal) static <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 bundleModifier and TypeMethodDescriptionstatic IBaseResource
BundleUtil.getResourceByReferenceAndResourceType
(FhirContext theContext, IBaseBundle theBundle, IBaseReference theReference) Get resource from bundle by resource type and referenceModifier and TypeMethodDescriptionFhirTerser.getAllEmbeddedResources
(IBaseResource theResource, boolean theRecurse) Returns all embedded resources that are found embedded withintheResource
.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) FhirTerser.ContainedResources.getContainedResources()
FhirTerser.ContainedResources.getExistingIdToContainedResource()
static Optional
<IBaseResource> ParametersUtil.getNamedParameterResource
(FhirContext theCtx, IBaseParameters theParameters, String theParameterName) Returns the resource within a parameter.static List
<IBaseResource> BundleUtil.toListOfResources
(FhirContext theContext, IBaseBundle theBundle) Extract all of the resources from a given bundleModifier and TypeMethodDescriptionvoid
IModelVisitor.acceptElement
(IBaseResource theResource, IBase theElement, List<String> thePathToElement, BaseRuntimeChildDefinition theChildDefinition, BaseRuntimeElementDefinition<?> theDefinition) void
BundleBuilder.addCollectionEntry
(IBaseResource theResource) Adds an entry for a Collection bundle typeFhirTerser.ContainedResources.addContained
(IBaseResource theResource) void
FhirTerser.ContainedResources.addContained
(IIdType theId, IBaseResource theResource) void
BundleBuilder.addDocumentEntry
(IBaseResource theResource) Adds an entry for a Document bundle typestatic void
ParametersUtil.addPartResource
(FhirContext theContext, IBase theParameter, String theName, IBaseResource theValue) BundleBuilder.addTransactionCreateEntry
(IBaseResource theResource) Adds an entry containing an create (POST) request.BundleBuilder.addTransactionCreateEntry
(IBaseResource theResource, String theFullUrl) Adds an entry containing an create (POST) request.void
BundleBuilder.addTransactionCreateEntryIdOnly
(IBaseResource theResource) Adds an entry containing a create (POST) request without the body of the resource.BundleBuilder.addTransactionDeleteEntry
(IBaseResource theResource) Adds an entry containing a delete (DELETE) request.BundleBuilder.addTransactionUpdateEntry
(IBaseResource theResource) Adds an entry containing an update (PUT) request.void
BundleBuilder.addTransactionUpdateIdOnlyEntry
(IBaseResource theResource) Adds an entry containing an update (UPDATE) request without the body of the resource.void
FhirTerser.clear
(IBaseResource theInput) Clear all content on a resourcestatic 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 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.FhirTerser.containResources
(IBaseResource theResource, FhirTerser.OptionsEnum... theOptions) Iterate through the whole resource and identify any contained resources.static boolean
TerserUtil.fieldExists
(FhirContext theFhirContext, String theFieldName, IBaseResource theInstance) Checks if the field exists on the resourceFhirTerser.getAllEmbeddedResources
(IBaseResource theResource, boolean theRecurse) Returns all embedded resources that are found embedded withintheResource
.FhirTerser.getAllPopulatedChildElementsOfType
(IBaseResource theResource, Class<T> theType) Returns a list containing all child elements (including the resource itself) which are non-empty and are either of the exact type specified, or are a subclass of that type.FhirTerser.getAllResourceReferences
(IBaseResource theResource) Extracts all outbound references from a resourceFhirTerser.getAllResourceReferencesExcluding
(IBaseResource theResource, List<String> thePathsToExclude) Extracts all outbound references from a resource, excluding any that are located on black-listed parts of the resourceSearchParameterUtil.getBaseAsStrings
(FhirContext theContext, IBaseResource theResource) static String
SearchParameterUtil.getCode
(FhirContext theContext, IBaseResource theResource) FhirTerser.getCompartmentOwnersForResource
(String theCompartmentName, IBaseResource theSource, Set<String> theAdditionalCompartmentParamNames) Returns the owners of the compartment intheSource
is in the compartment namedtheCompartmentName
.static String
SearchParameterUtil.getExpression
(FhirContext theFhirContext, IBaseResource theResource) ParametersUtil.getNamedParameter
(FhirContext theCtx, IBaseResource theParameters, String theParameterName) ParametersUtil.getNamedParameters
(FhirContext theCtx, IBaseResource theParameters, String theParameterName) FhirTerser.ContainedResources.getResourceId
(IBaseResource theNext) 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
TerserUtil.hasValues
(FhirContext theFhirContext, IBaseResource theResource, String theFieldName) Checks if the specified fields has any valuesstatic boolean
SubscriptionUtil.isDefinedAsCrossPartitionSubcription
(IBaseResource theSubscription) 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.boolean
FhirTerser.isSourceInCompartmentForTarget
(String theCompartmentName, IBaseResource theSource, IIdType theTarget) Returnstrue
iftheSource
is in the compartment namedtheCompartmentName
belonging to resourcetheTarget
boolean
FhirTerser.isSourceInCompartmentForTarget
(String theCompartmentName, IBaseResource theSource, IIdType theTarget, Set<String> theAdditionalCompartmentParamNames) Returnstrue
iftheSource
is in the compartment namedtheCompartmentName
belonging to resourcetheTarget
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 TerserUtilHelper
TerserUtilHelper.newHelper
(FhirContext theFhirContext, IBaseResource theResource) Factory method for creating a new instance of the wrapperstatic 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
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
TerserUtil.setFieldByFhirPath
(FhirTerser theTerser, 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
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.void
FhirTerser.visit
(IBaseResource theResource, IModelVisitor theVisitor) Visit all elements in a given resourceModifier and TypeMethodDescriptionFhirTerser.getDefinition
(Class<? extends IBaseResource> theResourceType, String thePath) ModifierConstructorDescriptionResourceReferenceInfo
(FhirContext theContext, IBaseResource theOwningResource, List<String> thePathToElement, IBaseReference theElement) protected
TerserUtilHelper
(FhirContext theFhirContext, IBaseResource theResource) -
Uses of IBaseResource in ca.uhn.fhir.util.bundle
Modifier and TypeMethodDescriptionBundleEntryParts.getResource()
ModifiableBundleEntry.getResource()
SearchBundleEntryParts.getResource()
Modifier and TypeMethodDescriptionvoid
BundleEntryMutator.setResource
(IBaseResource theUpdatedResource) void
ModifiableBundleEntry.setResource
(IBaseResource theUpdatedResource) ModifierConstructorDescriptionBundleEntryParts
(String theFullUrl, RequestTypeEnum theRequestType, String theUrl, IBaseResource theResource, String theConditionalUrl) SearchBundleEntryParts
(String theFullUrl, IBaseResource theResource, String theSearchMode, BigDecimal theSearchScore) -
Uses of IBaseResource in ca.uhn.fhir.validation
Modifier and TypeMethodDescriptionstatic <T extends IBaseResource>
IValidationContext<T> ValidationContext.forResource
(FhirContext theContext, T theResource, ValidationOptions theOptions) <T extends IBaseResource>
TLoad the latest version of a given resourceModifier and TypeMethodDescriptionstatic IValidationContext
<IBaseResource> ValidationContext.forText
(FhirContext theContext, String theResourceBody, ValidationOptions theOptions) static IValidationContext
<IBaseResource> ValidationContext.subContext
(IValidationContext<IBaseResource> theCtx, IBaseResource theResource, ValidationOptions theOptions) Modifier and TypeMethodDescriptionstatic IValidationContext
<IBaseResource> ValidationContext.subContext
(IValidationContext<IBaseResource> theCtx, IBaseResource theResource, ValidationOptions theOptions) FhirValidator.validateWithResult
(IBaseResource theResource) Validates a resource instance returning aValidationResult
which contains the results.FhirValidator.validateWithResult
(IBaseResource theResource, ValidationOptions theOptions) Validates a resource instance returning aValidationResult
which contains the results.Modifier and TypeMethodDescriptionstatic IValidationContext
<IBaseResource> ValidationContext.subContext
(IValidationContext<IBaseResource> theCtx, IBaseResource theResource, ValidationOptions theOptions) void
IValidatorModule.validateResource
(IValidationContext<IBaseResource> theCtx) Validate the actual resource.void
SchemaBaseValidator.validateResource
(IValidationContext<IBaseResource> theContext) -
Uses of IBaseResource in ca.uhn.fhir.validation.schematron
Modifier and TypeMethodDescriptionvoid
SchematronBaseValidator.validateResource
(IValidationContext<IBaseResource> theCtx) -
Uses of IBaseResource in org.hl7.fhir.instance.model.api
Modifier and TypeInterfaceDescriptioninterface
An IBaseResource that has a FHIR version of DSTU3 or higherinterface
interface
interface
interface
interface
interface
Modifier and TypeMethodDescriptionvoid
IIdType.applyTo
(IBaseResource theResource) IBaseReference.setResource
(IBaseResource theResource)