Class Provenance
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
Definition: Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Provenance
- See Also:
- Serialized Form
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBlock class for child element: Provenance.agent (who)static classBlock class for child element: Provenance.agent.relatedAgent ()static classBlock class for child element: Provenance.entity () -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for agentstatic ca.uhn.fhir.rest.gclient.DateClientParamFluent Client search parameter constant for endstatic ca.uhn.fhir.rest.gclient.UriClientParamFluent Client search parameter constant for entitystatic ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for entitytypestatic ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for locationstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for sigtypestatic StringSearch parameter constant for agentstatic StringSearch parameter constant for endstatic StringSearch parameter constant for entitystatic StringSearch parameter constant for entitytypestatic StringSearch parameter constant for locationstatic StringSearch parameter constant for patientstatic StringSearch parameter constant for sigtypestatic StringSearch parameter constant for startstatic StringSearch parameter constant for targetstatic StringSearch parameter constant for useridstatic ca.uhn.fhir.rest.gclient.DateClientParamFluent Client search parameter constant for startstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for targetstatic ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for useridFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_IDFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAgent()Adds and returns a new value for agent (who)addAgent(Provenance.Agent theValue)Adds a given new value for agent (who)Adds and returns a new value for entity ()addEntity(Provenance.Entity theValue)Adds a given new value for entity ()ca.uhn.fhir.model.primitive.UriDtAdds and returns a new value for policy ()addPolicy(ca.uhn.fhir.model.primitive.UriDt theValue)Adds a given new value for policy ()Adds a new value for policy ()Adds and returns a new value for reason (why)addReason(CodeableConceptDt theValue)Adds a given new value for reason (why)Adds and returns a new value for signature ()addSignature(SignatureDt theValue)Adds a given new value for signature ()Adds and returns a new value for target (what)Gets the value(s) for activity (why).getAgent()Gets the value(s) for agent (who).Gets the first repetition for agent (who), creating it if it does not already exist.<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)Gets the value(s) for entity ().Gets the first repetition for entity (), creating it if it does not already exist.Gets the value(s) for location (where).Gets the value(s) for period (when.done).List<ca.uhn.fhir.model.primitive.UriDt>Gets the value(s) for policy ().ca.uhn.fhir.model.primitive.UriDtGets the first repetition for policy (), creating it if it does not already exist.Gets the value(s) for reason (why).Gets the first repetition for reason (why), creating it if it does not already exist.Gets the value(s) for recorded (when.recorded).ca.uhn.fhir.model.primitive.InstantDtGets the value(s) for recorded (when.recorded).Gets the value(s) for signature ().Gets the first repetition for signature (), creating it if it does not already exist.ca.uhn.fhir.context.FhirVersionEnumGets the value(s) for target (what).booleanisEmpty()setActivity(CodeableConceptDt theValue)Sets the value(s) for activity (why)setAgent(List<Provenance.Agent> theValue)Sets the value(s) for agent (who)setEntity(List<Provenance.Entity> theValue)Sets the value(s) for entity ()setLocation(ResourceReferenceDt theValue)Sets the value(s) for location (where)Sets the value(s) for period (when.done)Sets the value(s) for policy ()setReason(List<CodeableConceptDt> theValue)Sets the value(s) for reason (why)setRecorded(ca.uhn.fhir.model.primitive.InstantDt theValue)Sets the value(s) for recorded (when.recorded)setRecorded(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for recorded (when.recorded)setRecordedWithMillisPrecision(Date theDate)Sets the value for recorded (when.recorded)setSignature(List<SignatureDt> theValue)Sets the value(s) for signature ()setTarget(List<ResourceReferenceDt> theValue)Sets the value(s) for target (what)Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringMethods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, setId, setIdMethods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_TARGET
Search parameter constant for targetDescription:
Type: reference
Path: Provenance.target
- See Also:
- Constant Field Values
-
TARGET
Fluent Client search parameter constant for targetDescription:
Type: reference
Path: Provenance.target
-
SP_START
Search parameter constant for startDescription:
Type: date
Path: Provenance.period.start
- See Also:
- Constant Field Values
-
START
Fluent Client search parameter constant for startDescription:
Type: date
Path: Provenance.period.start
-
SP_END
Search parameter constant for endDescription:
Type: date
Path: Provenance.period.end
- See Also:
- Constant Field Values
-
END
Fluent Client search parameter constant for endDescription:
Type: date
Path: Provenance.period.end
-
SP_LOCATION
Search parameter constant for locationDescription:
Type: reference
Path: Provenance.location
- See Also:
- Constant Field Values
-
LOCATION
Fluent Client search parameter constant for locationDescription:
Type: reference
Path: Provenance.location
-
SP_AGENT
Search parameter constant for agentDescription:
Type: reference
Path: Provenance.agent.actor
- See Also:
- Constant Field Values
-
AGENT
Fluent Client search parameter constant for agentDescription:
Type: reference
Path: Provenance.agent.actor
-
SP_USERID
Search parameter constant for useridDescription:
Type: token
Path: Provenance.agent.userId
- See Also:
- Constant Field Values
-
USERID
Fluent Client search parameter constant for useridDescription:
Type: token
Path: Provenance.agent.userId
-
SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: Provenance.target
- See Also:
- Constant Field Values
-
PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: Provenance.target
-
SP_SIGTYPE
Search parameter constant for sigtypeDescription:
Type: token
Path: Provenance.signature.type
- See Also:
- Constant Field Values
-
SIGTYPE
Fluent Client search parameter constant for sigtypeDescription:
Type: token
Path: Provenance.signature.type
-
SP_ENTITYTYPE
Search parameter constant for entitytypeDescription:
Type: token
Path: Provenance.entity.type
- See Also:
- Constant Field Values
-
ENTITYTYPE
Fluent Client search parameter constant for entitytypeDescription:
Type: token
Path: Provenance.entity.type
-
SP_ENTITY
Search parameter constant for entityDescription:
Type: uri
Path: Provenance.entity.reference
- See Also:
- Constant Field Values
-
ENTITY
Fluent Client search parameter constant for entityDescription:
Type: uri
Path: Provenance.entity.reference
-
INCLUDE_AGENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Provenance:agent". -
INCLUDE_LOCATION
Constant for fluent queries to be used to add include statements. Specifies the path value of "Provenance:location". -
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Provenance:patient". -
INCLUDE_TARGET
Constant for fluent queries to be used to add include statements. Specifies the path value of "Provenance:target".
-
-
Constructor Details
-
Provenance
public Provenance()
-
-
Method Details
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getTarget
Gets the value(s) for target (what). creating it if it does not exist. Will not returnnull.Definition: The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity
-
setTarget
Sets the value(s) for target (what)Definition: The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity
-
addTarget
Adds and returns a new value for target (what)Definition: The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity
-
getPeriod
Gets the value(s) for period (when.done). creating it if it does not exist. Will not returnnull.Definition: The period during which the activity occurred
-
setPeriod
Sets the value(s) for period (when.done)Definition: The period during which the activity occurred
-
getRecordedElement
Gets the value(s) for recorded (when.recorded). creating it if it does not exist. Will not returnnull.Definition: The instant of time at which the activity was recorded
-
getRecorded
Gets the value(s) for recorded (when.recorded). creating it if it does not exist. This method may returnnull.Definition: The instant of time at which the activity was recorded
-
setRecorded
Sets the value(s) for recorded (when.recorded)Definition: The instant of time at which the activity was recorded
-
setRecordedWithMillisPrecision
Sets the value for recorded (when.recorded)Definition: The instant of time at which the activity was recorded
-
setRecorded
public Provenance setRecorded(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for recorded (when.recorded)Definition: The instant of time at which the activity was recorded
-
getReason
Gets the value(s) for reason (why). creating it if it does not exist. Will not returnnull.Definition: The reason that the activity was taking place
-
setReason
Sets the value(s) for reason (why)Definition: The reason that the activity was taking place
-
addReason
Adds and returns a new value for reason (why)Definition: The reason that the activity was taking place
-
addReason
Adds a given new value for reason (why)Definition: The reason that the activity was taking place
- Parameters:
theValue- The reason to add (must not benull)
-
getReasonFirstRep
Gets the first repetition for reason (why), creating it if it does not already exist.Definition: The reason that the activity was taking place
-
getActivity
Gets the value(s) for activity (why). creating it if it does not exist. Will not returnnull.Definition: An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities
-
setActivity
Sets the value(s) for activity (why)Definition: An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities
-
getLocation
Gets the value(s) for location (where). creating it if it does not exist. Will not returnnull.Definition: Where the activity occurred, if relevant
-
setLocation
Sets the value(s) for location (where)Definition: Where the activity occurred, if relevant
-
getPolicy
Gets the value(s) for policy (). creating it if it does not exist. Will not returnnull.Definition: Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.
-
setPolicy
Sets the value(s) for policy ()Definition: Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.
-
addPolicy
Adds and returns a new value for policy ()Definition: Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.
-
addPolicy
Adds a given new value for policy ()Definition: Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.
- Parameters:
theValue- The policy to add (must not benull)
-
getPolicyFirstRep
Gets the first repetition for policy (), creating it if it does not already exist.Definition: Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.
-
addPolicy
Adds a new value for policy ()Definition: Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getAgent
Gets the value(s) for agent (who). creating it if it does not exist. Will not returnnull.Definition: An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility
-
setAgent
Sets the value(s) for agent (who)Definition: An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility
-
addAgent
Adds and returns a new value for agent (who)Definition: An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility
-
addAgent
Adds a given new value for agent (who)Definition: An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility
- Parameters:
theValue- The agent to add (must not benull)
-
getAgentFirstRep
Gets the first repetition for agent (who), creating it if it does not already exist.Definition: An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility
-
getEntity
Gets the value(s) for entity (). creating it if it does not exist. Will not returnnull.Definition: An entity used in this activity
-
setEntity
Sets the value(s) for entity ()Definition: An entity used in this activity
-
addEntity
Adds and returns a new value for entity ()Definition: An entity used in this activity
-
addEntity
Adds a given new value for entity ()Definition: An entity used in this activity
- Parameters:
theValue- The entity to add (must not benull)
-
getEntityFirstRep
Gets the first repetition for entity (), creating it if it does not already exist.Definition: An entity used in this activity
-
getSignature
Gets the value(s) for signature (). creating it if it does not exist. Will not returnnull.Definition: A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.
-
setSignature
Sets the value(s) for signature ()Definition: A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.
-
addSignature
Adds and returns a new value for signature ()Definition: A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.
-
addSignature
Adds a given new value for signature ()Definition: A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.
- Parameters:
theValue- The signature to add (must not benull)
-
getSignatureFirstRep
Gets the first repetition for signature (), creating it if it does not already exist.Definition: A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.
-
getResourceName
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-