Package org.hl7.fhir

Class 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 extensions

Java 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 Details

  • Constructor Details

    • Provenance

      public Provenance()
  • Method Details

    • getTarget

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 is Period
    • 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 is Instant
    • getReason

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 is Coding
    • 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 is Reference
    • getPolicy

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 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 Jakarta XML Binding object. This is why there is not a set method 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 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 Jakarta XML Binding object. This is why there is not a set method 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 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 Jakarta XML Binding object. This is why there is not a set method 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(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(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(Collection<Uri> values)
    • withAgent

      public Provenance withAgent(ProvenanceAgent... values)
    • withAgent

      public Provenance withAgent(Collection<ProvenanceAgent> values)
    • withEntity

      public Provenance withEntity(ProvenanceEntity... values)
    • withEntity

      public Provenance withEntity(Collection<ProvenanceEntity> values)
    • withSignature

      public Provenance withSignature(Signature... values)
    • withSignature

      public Provenance withSignature(Collection<Signature> values)
    • withText

      public Provenance withText(Narrative value)
      Overrides:
      withText in class DomainResource
    • withContained

      public Provenance withContained(ResourceContainer... values)
      Overrides:
      withContained in class DomainResource
    • withContained

      public Provenance withContained(Collection<ResourceContainer> values)
      Overrides:
      withContained in class DomainResource
    • withExtension

      public Provenance withExtension(Extension... values)
      Overrides:
      withExtension in class DomainResource
    • withExtension

      public Provenance withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class DomainResource
    • withModifierExtension

      public Provenance withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class DomainResource
    • withModifierExtension

      public Provenance withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class DomainResource
    • withId

      public Provenance withId(Id value)
      Overrides:
      withId in class DomainResource
    • withMeta

      public Provenance withMeta(Meta value)
      Overrides:
      withMeta in class DomainResource
    • withImplicitRules

      public Provenance withImplicitRules(Uri value)
      Overrides:
      withImplicitRules in class DomainResource
    • withLanguage

      public Provenance withLanguage(Code value)
      Overrides:
      withLanguage in class DomainResource
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class DomainResource
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class DomainResource
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class DomainResource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DomainResource
    • toString

      public String toString()
      Overrides:
      toString in class DomainResource
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class DomainResource
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class DomainResource
    • setTarget

      public void setTarget(List<Reference> value)
    • setReason

      public void setReason(List<Coding> value)
    • setPolicy

      public void setPolicy(List<Uri> value)
    • setAgent

      public void setAgent(List<ProvenanceAgent> value)
    • setEntity

      public void setEntity(List<ProvenanceEntity> value)
    • setSignature

      public void setSignature(List<Signature> value)