Package org.hl7.fhir.dstu2.model
Class Provenance
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.Provenance
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class Provenance extends DomainResource
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProvenance.ProvenanceAgentComponentstatic classProvenance.ProvenanceAgentRelatedAgentComponentstatic classProvenance.ProvenanceEntityComponentstatic classProvenance.ProvenanceEntityRolestatic classProvenance.ProvenanceEntityRoleEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptactivityAn 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.protected List<Provenance.ProvenanceAgentComponent>agentAn agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place.protected List<Provenance.ProvenanceEntityComponent>entityAn entity used in this activity.protected ReferencelocationWhere the activity occurred, if relevant.protected LocationlocationTargetThe actual object that is the target of the reference (Where the activity occurred, if relevant.)protected PeriodperiodThe period during which the activity occurred.protected List<UriType>policyPolicy or plan the activity was defined by.protected List<CodeableConcept>reasonThe reason that the activity was taking place.protected InstantTyperecordedThe instant of time at which the activity was recorded.protected List<Signature>signatureA digital signature on the target Reference(s).static StringSP_AGENTstatic StringSP_ENDstatic StringSP_ENTITYstatic StringSP_ENTITYTYPEstatic StringSP_LOCATIONstatic StringSP_PATIENTstatic StringSP_SIGTYPEstatic StringSP_STARTstatic StringSP_TARGETstatic StringSP_USERIDprotected List<Reference>targetThe Reference(s) that were generated or updated by the activity described in this resource.protected List<Resource>targetTargetThe actual objects that are the target of the reference (The Reference(s) that were generated or updated by the activity described in this resource.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Provenance()Provenance(InstantType recorded)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
target
protected List<Reference> target
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.
-
targetTarget
protected List<Resource> targetTarget
The actual objects that are the target of the reference (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.)
-
recorded
protected InstantType recorded
The instant of time at which the activity was recorded.
-
reason
protected List<CodeableConcept> reason
The reason that the activity was taking place.
-
activity
protected CodeableConcept activity
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.
-
locationTarget
protected Location locationTarget
The actual object that is the target of the reference (Where the activity occurred, if relevant.)
-
policy
protected List<UriType> policy
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.
-
agent
protected List<Provenance.ProvenanceAgentComponent> agent
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.
-
entity
protected List<Provenance.ProvenanceEntityComponent> entity
An entity used in this activity.
-
signature
protected List<Signature> signature
A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.
-
SP_SIGTYPE
public static final String SP_SIGTYPE
- See Also:
- Constant Field Values
-
SP_AGENT
public static final String SP_AGENT
- See Also:
- Constant Field Values
-
SP_ENTITYTYPE
public static final String SP_ENTITYTYPE
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_START
public static final String SP_START
- See Also:
- Constant Field Values
-
SP_END
public static final String SP_END
- See Also:
- Constant Field Values
-
SP_LOCATION
public static final String SP_LOCATION
- See Also:
- Constant Field Values
-
SP_USERID
public static final String SP_USERID
- See Also:
- Constant Field Values
-
SP_ENTITY
public static final String SP_ENTITY
- See Also:
- Constant Field Values
-
SP_TARGET
public static final String SP_TARGET
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Provenance
public Provenance()
-
Provenance
public Provenance(InstantType recorded)
-
-
Method Detail
-
getTarget
public List<Reference> getTarget()
- Returns:
target(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.)
-
hasTarget
public boolean hasTarget()
-
addTarget
public Reference addTarget()
- Returns:
target(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
public Provenance addTarget(Reference t)
-
getTargetTarget
public List<Resource> getTargetTarget()
- Returns:
target(The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. 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
public Period getPeriod()
- Returns:
period(The period during which the activity occurred.)
-
hasPeriod
public boolean hasPeriod()
-
setPeriod
public Provenance setPeriod(Period value)
- Parameters:
value-period(The period during which the activity occurred.)
-
getRecordedElement
public InstantType getRecordedElement()
- Returns:
recorded(The instant of time at which the activity was recorded.). This is the underlying object with id, value and extensions. The accessor "getRecorded" gives direct access to the value
-
hasRecordedElement
public boolean hasRecordedElement()
-
hasRecorded
public boolean hasRecorded()
-
setRecordedElement
public Provenance setRecordedElement(InstantType value)
- Parameters:
value-recorded(The instant of time at which the activity was recorded.). This is the underlying object with id, value and extensions. The accessor "getRecorded" gives direct access to the value
-
getRecorded
public Date getRecorded()
- Returns:
- The instant of time at which the activity was recorded.
-
setRecorded
public Provenance setRecorded(Date value)
- Parameters:
value- The instant of time at which the activity was recorded.
-
getReason
public List<CodeableConcept> getReason()
- Returns:
reason(The reason that the activity was taking place.)
-
hasReason
public boolean hasReason()
-
addReason
public CodeableConcept addReason()
- Returns:
reason(The reason that the activity was taking place.)
-
addReason
public Provenance addReason(CodeableConcept t)
-
getActivity
public CodeableConcept getActivity()
- Returns:
activity(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.)
-
hasActivity
public boolean hasActivity()
-
setActivity
public Provenance setActivity(CodeableConcept value)
- Parameters:
value-activity(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
public Reference getLocation()
- Returns:
location(Where the activity occurred, if relevant.)
-
hasLocation
public boolean hasLocation()
-
setLocation
public Provenance setLocation(Reference value)
- Parameters:
value-location(Where the activity occurred, if relevant.)
-
getLocationTarget
public Location getLocationTarget()
- Returns:
locationThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Where the activity occurred, if relevant.)
-
setLocationTarget
public Provenance setLocationTarget(Location value)
- Parameters:
value-locationThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Where the activity occurred, if relevant.)
-
getPolicy
public List<UriType> getPolicy()
- Returns:
policy(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.)
-
hasPolicy
public boolean hasPolicy()
-
addPolicyElement
public UriType addPolicyElement()
- Returns:
policy(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
public Provenance addPolicy(String value)
- Parameters:
value-policy(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.)
-
hasPolicy
public boolean hasPolicy(String value)
- Parameters:
value-policy(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.)
-
getAgent
public List<Provenance.ProvenanceAgentComponent> getAgent()
- Returns:
agent(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.)
-
hasAgent
public boolean hasAgent()
-
addAgent
public Provenance.ProvenanceAgentComponent addAgent()
- Returns:
agent(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
public Provenance addAgent(Provenance.ProvenanceAgentComponent t)
-
getEntity
public List<Provenance.ProvenanceEntityComponent> getEntity()
- Returns:
entity(An entity used in this activity.)
-
hasEntity
public boolean hasEntity()
-
addEntity
public Provenance.ProvenanceEntityComponent addEntity()
- Returns:
entity(An entity used in this activity.)
-
addEntity
public Provenance addEntity(Provenance.ProvenanceEntityComponent t)
-
getSignature
public List<Signature> getSignature()
- Returns:
signature(A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.)
-
hasSignature
public boolean hasSignature()
-
addSignature
public Signature addSignature()
- Returns:
signature(A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.)
-
addSignature
public Provenance addSignature(Signature t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Provenance copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected Provenance typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-