Class Provenance
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.Provenance
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.fhir.tools.CodeGenerator") public class Provenance extends DomainResourceProvenance 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.Maturity level: FMM3 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProvenance.AgentAn actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.static classProvenance.Builderstatic classProvenance.EntityAn entity used in this activity.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Provenance.Builderbuilder()booleanequals(java.lang.Object obj)CodeableConceptgetActivity()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.java.util.List<Provenance.Agent>getAgent()An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.java.util.List<Provenance.Entity>getEntity()An entity used in this activity.ReferencegetLocation()Where the activity occurred, if relevant.ElementgetOccurred()The period during which the activity occurred.java.util.List<Uri>getPolicy()Policy or plan the activity was defined by.java.util.List<CodeableConcept>getReason()The reason that the activity was taking place.InstantgetRecorded()The instant of time at which the activity was recorded.java.util.List<Signature>getSignature()A digital signature on the target Reference(s).java.util.List<Reference>getTarget()The Reference(s) that were generated or updated by the activity described in this resource.booleanhasChildren()inthashCode()Provenance.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getTarget
public java.util.List<Reference> getTarget()
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.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat is non-empty.
-
getOccurred
public Element getOccurred()
The period during which the activity occurred.
-
getRecorded
public Instant getRecorded()
The instant of time at which the activity was recorded.- Returns:
- An immutable object of type
Instantthat is non-null.
-
getPolicy
public java.util.List<Uri> getPolicy()
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:
- An unmodifiable list containing immutable objects of type
Urithat may be empty.
-
getLocation
public Reference getLocation()
Where the activity occurred, if relevant.- Returns:
- An immutable object of type
Referencethat may be null.
-
getReason
public java.util.List<CodeableConcept> getReason()
The reason that the activity was taking place.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getActivity
public CodeableConcept getActivity()
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.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getAgent
public java.util.List<Provenance.Agent> getAgent()
An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.- Returns:
- An unmodifiable list containing immutable objects of type
Provenance.Agentthat is non-empty.
-
getEntity
public java.util.List<Provenance.Entity> getEntity()
An entity used in this activity.- Returns:
- An unmodifiable list containing immutable objects of type
Provenance.Entitythat may be empty.
-
getSignature
public java.util.List<Signature> getSignature()
A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.- Returns:
- An unmodifiable list containing immutable objects of type
Signaturethat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public Provenance.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static Provenance.Builder builder()
-
-