Class Provenance
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Provenance
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Provenance extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for Provenance complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Provenance"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="target" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded"/> <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/> <element name="recorded" type="{http://hl7.org/fhir}instant"/> <element name="reason" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/> <element name="activity" type="{http://hl7.org/fhir}Coding" minOccurs="0"/> <element name="location" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="policy" type="{http://hl7.org/fhir}uri" maxOccurs="unbounded" minOccurs="0"/> <element name="agent" type="{http://hl7.org/fhir}Provenance.Agent" maxOccurs="unbounded"/> <element name="entity" type="{http://hl7.org/fhir}Provenance.Entity" maxOccurs="unbounded" minOccurs="0"/> <element name="signature" type="{http://hl7.org/fhir}Signature" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Codingactivityprotected java.util.List<ProvenanceAgent>agentprotected java.util.List<ProvenanceEntity>entityprotected Referencelocationprotected Periodperiodprotected java.util.List<Uri>policyprotected java.util.List<Coding>reasonprotected Instantrecordedprotected java.util.List<Signature>signatureprotected java.util.List<Reference>target-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Provenance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)CodinggetActivity()Gets the value of the activity property.java.util.List<ProvenanceAgent>getAgent()Gets the value of the agent property.java.util.List<ProvenanceEntity>getEntity()Gets the value of the entity property.ReferencegetLocation()Gets the value of the location property.PeriodgetPeriod()Gets the value of the period property.java.util.List<Uri>getPolicy()Gets the value of the policy property.java.util.List<Coding>getReason()Gets the value of the reason property.InstantgetRecorded()Gets the value of the recorded property.java.util.List<Signature>getSignature()Gets the value of the signature property.java.util.List<Reference>getTarget()Gets the value of the target property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetActivity(Coding value)Sets the value of the activity property.voidsetLocation(Reference value)Sets the value of the location property.voidsetPeriod(Period value)Sets the value of the period property.voidsetRecorded(Instant value)Sets the value of the recorded property.java.lang.StringtoString()ProvenancewithActivity(Coding value)ProvenancewithAgent(java.util.Collection<ProvenanceAgent> values)ProvenancewithAgent(ProvenanceAgent... values)ProvenancewithContained(java.util.Collection<ResourceContainer> values)ProvenancewithContained(ResourceContainer... values)ProvenancewithEntity(java.util.Collection<ProvenanceEntity> values)ProvenancewithEntity(ProvenanceEntity... values)ProvenancewithExtension(java.util.Collection<Extension> values)ProvenancewithExtension(Extension... values)ProvenancewithId(Id value)ProvenancewithImplicitRules(Uri value)ProvenancewithLanguage(Code value)ProvenancewithLocation(Reference value)ProvenancewithMeta(Meta value)ProvenancewithModifierExtension(java.util.Collection<Extension> values)ProvenancewithModifierExtension(Extension... values)ProvenancewithPeriod(Period value)ProvenancewithPolicy(java.util.Collection<Uri> values)ProvenancewithPolicy(Uri... values)ProvenancewithReason(java.util.Collection<Coding> values)ProvenancewithReason(Coding... values)ProvenancewithRecorded(Instant value)ProvenancewithSignature(java.util.Collection<Signature> values)ProvenancewithSignature(Signature... values)ProvenancewithTarget(java.util.Collection<Reference> values)ProvenancewithTarget(Reference... values)ProvenancewithText(Narrative value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
target
protected java.util.List<Reference> target
-
period
protected Period period
-
recorded
protected Instant recorded
-
reason
protected java.util.List<Coding> reason
-
activity
protected Coding activity
-
location
protected Reference location
-
policy
protected java.util.List<Uri> policy
-
agent
protected java.util.List<ProvenanceAgent> agent
-
entity
protected java.util.List<ProvenanceEntity> entity
-
signature
protected java.util.List<Signature> signature
-
-
Method Detail
-
getTarget
public java.util.List<Reference> getTarget()
Gets the value of the target property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the target property.For example, to add a new item, do as follows:
getTarget().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getPeriod
public Period getPeriod()
Gets the value of the period property.- Returns:
- possible object is
Period
-
setPeriod
public void setPeriod(Period value)
Sets the value of the period property.- Parameters:
value- allowed object isPeriod
-
getRecorded
public Instant getRecorded()
Gets the value of the recorded property.- Returns:
- possible object is
Instant
-
setRecorded
public void setRecorded(Instant value)
Sets the value of the recorded property.- Parameters:
value- allowed object isInstant
-
getReason
public java.util.List<Coding> getReason()
Gets the value of the reason property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the reason property.For example, to add a new item, do as follows:
getReason().add(newItem);Objects of the following type(s) are allowed in the list
Coding
-
getActivity
public Coding getActivity()
Gets the value of the activity property.- Returns:
- possible object is
Coding
-
setActivity
public void setActivity(Coding value)
Sets the value of the activity property.- Parameters:
value- allowed object isCoding
-
getLocation
public Reference getLocation()
Gets the value of the location property.- Returns:
- possible object is
Reference
-
setLocation
public void setLocation(Reference value)
Sets the value of the location property.- Parameters:
value- allowed object isReference
-
getPolicy
public java.util.List<Uri> getPolicy()
Gets the value of the policy property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the policy property.For example, to add a new item, do as follows:
getPolicy().add(newItem);Objects of the following type(s) are allowed in the list
Uri
-
getAgent
public java.util.List<ProvenanceAgent> getAgent()
Gets the value of the agent property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the agent property.For example, to add a new item, do as follows:
getAgent().add(newItem);Objects of the following type(s) are allowed in the list
ProvenanceAgent
-
getEntity
public java.util.List<ProvenanceEntity> getEntity()
Gets the value of the entity property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the entity property.For example, to add a new item, do as follows:
getEntity().add(newItem);Objects of the following type(s) are allowed in the list
ProvenanceEntity
-
getSignature
public java.util.List<Signature> getSignature()
Gets the value of the signature property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the signature property.For example, to add a new item, do as follows:
getSignature().add(newItem);Objects of the following type(s) are allowed in the list
Signature
-
withTarget
public Provenance withTarget(Reference... values)
-
withTarget
public Provenance withTarget(java.util.Collection<Reference> values)
-
withPeriod
public Provenance withPeriod(Period value)
-
withRecorded
public Provenance withRecorded(Instant value)
-
withReason
public Provenance withReason(Coding... values)
-
withReason
public Provenance withReason(java.util.Collection<Coding> values)
-
withActivity
public Provenance withActivity(Coding value)
-
withLocation
public Provenance withLocation(Reference value)
-
withPolicy
public Provenance withPolicy(Uri... values)
-
withPolicy
public Provenance withPolicy(java.util.Collection<Uri> values)
-
withAgent
public Provenance withAgent(ProvenanceAgent... values)
-
withAgent
public Provenance withAgent(java.util.Collection<ProvenanceAgent> values)
-
withEntity
public Provenance withEntity(ProvenanceEntity... values)
-
withEntity
public Provenance withEntity(java.util.Collection<ProvenanceEntity> values)
-
withSignature
public Provenance withSignature(Signature... values)
-
withSignature
public Provenance withSignature(java.util.Collection<Signature> values)
-
withText
public Provenance withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Provenance withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Provenance withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Provenance withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Provenance withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Provenance withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Provenance withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Provenance withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Provenance withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Provenance withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Provenance withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-