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>
     
    • Constructor Detail

      • Provenance

        public Provenance()
    • 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 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 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 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 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 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 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 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 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 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 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 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

      • withReason

        public Provenance withReason​(java.util.Collection<Coding> values)
      • withPolicy

        public Provenance withPolicy​(java.util.Collection<Uri> values)
      • 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:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class DomainResource
      • equals

        public boolean equals​(java.lang.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
      • 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:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class DomainResource
      • 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:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class DomainResource