Package org.hl7.fhir

Class Contract

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class Contract
    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 Contract complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Contract">
       <complexContent>
         <extension base="{http://hl7.org/fhir}DomainResource">
           <sequence>
             <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
             <element name="issued" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
             <element name="applies" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
             <element name="subject" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="topic" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="authority" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="domain" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
             <element name="subType" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="action" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="actionReason" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="agent" type="{http://hl7.org/fhir}Contract.Agent" maxOccurs="unbounded" minOccurs="0"/>
             <element name="signer" type="{http://hl7.org/fhir}Contract.Signer" maxOccurs="unbounded" minOccurs="0"/>
             <element name="valuedItem" type="{http://hl7.org/fhir}Contract.ValuedItem" maxOccurs="unbounded" minOccurs="0"/>
             <element name="term" type="{http://hl7.org/fhir}Contract.Term" maxOccurs="unbounded" minOccurs="0"/>
             <choice minOccurs="0">
               <element name="bindingAttachment" type="{http://hl7.org/fhir}Attachment"/>
               <element name="bindingReference" type="{http://hl7.org/fhir}Reference"/>
             </choice>
             <element name="friendly" type="{http://hl7.org/fhir}Contract.Friendly" maxOccurs="unbounded" minOccurs="0"/>
             <element name="legal" type="{http://hl7.org/fhir}Contract.Legal" maxOccurs="unbounded" minOccurs="0"/>
             <element name="rule" type="{http://hl7.org/fhir}Contract.Rule" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Contract

        public Contract()
    • Method Detail

      • getIdentifier

        public Identifier getIdentifier()
        Gets the value of the identifier property.
        Returns:
        possible object is Identifier
      • setIdentifier

        public void setIdentifier​(Identifier value)
        Sets the value of the identifier property.
        Parameters:
        value - allowed object is Identifier
      • getIssued

        public DateTime getIssued()
        Gets the value of the issued property.
        Returns:
        possible object is DateTime
      • setIssued

        public void setIssued​(DateTime value)
        Sets the value of the issued property.
        Parameters:
        value - allowed object is DateTime
      • getApplies

        public Period getApplies()
        Gets the value of the applies property.
        Returns:
        possible object is Period
      • setApplies

        public void setApplies​(Period value)
        Sets the value of the applies property.
        Parameters:
        value - allowed object is Period
      • getSubject

        public java.util.List<Reference> getSubject()
        Gets the value of the subject 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 subject property.

        For example, to add a new item, do as follows:

            getSubject().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getTopic

        public java.util.List<Reference> getTopic()
        Gets the value of the topic 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 topic property.

        For example, to add a new item, do as follows:

            getTopic().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getAuthority

        public java.util.List<Reference> getAuthority()
        Gets the value of the authority 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 authority property.

        For example, to add a new item, do as follows:

            getAuthority().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getDomain

        public java.util.List<Reference> getDomain()
        Gets the value of the domain 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 domain property.

        For example, to add a new item, do as follows:

            getDomain().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getSubType

        public java.util.List<CodeableConcept> getSubType()
        Gets the value of the subType 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 subType property.

        For example, to add a new item, do as follows:

            getSubType().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • getAction

        public java.util.List<CodeableConcept> getAction()
        Gets the value of the action 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 action property.

        For example, to add a new item, do as follows:

            getAction().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • getActionReason

        public java.util.List<CodeableConcept> getActionReason()
        Gets the value of the actionReason 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 actionReason property.

        For example, to add a new item, do as follows:

            getActionReason().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • getAgent

        public java.util.List<ContractAgent> 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 ContractAgent

      • getSigner

        public java.util.List<ContractSigner> getSigner()
        Gets the value of the signer 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 signer property.

        For example, to add a new item, do as follows:

            getSigner().add(newItem);
         

        Objects of the following type(s) are allowed in the list ContractSigner

      • getValuedItem

        public java.util.List<ContractValuedItem> getValuedItem()
        Gets the value of the valuedItem 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 valuedItem property.

        For example, to add a new item, do as follows:

            getValuedItem().add(newItem);
         

        Objects of the following type(s) are allowed in the list ContractValuedItem

      • getTerm

        public java.util.List<ContractTerm> getTerm()
        Gets the value of the term 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 term property.

        For example, to add a new item, do as follows:

            getTerm().add(newItem);
         

        Objects of the following type(s) are allowed in the list ContractTerm

      • getBindingAttachment

        public Attachment getBindingAttachment()
        Gets the value of the bindingAttachment property.
        Returns:
        possible object is Attachment
      • setBindingAttachment

        public void setBindingAttachment​(Attachment value)
        Sets the value of the bindingAttachment property.
        Parameters:
        value - allowed object is Attachment
      • getBindingReference

        public Reference getBindingReference()
        Gets the value of the bindingReference property.
        Returns:
        possible object is Reference
      • setBindingReference

        public void setBindingReference​(Reference value)
        Sets the value of the bindingReference property.
        Parameters:
        value - allowed object is Reference
      • getFriendly

        public java.util.List<ContractFriendly> getFriendly()
        Gets the value of the friendly 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 friendly property.

        For example, to add a new item, do as follows:

            getFriendly().add(newItem);
         

        Objects of the following type(s) are allowed in the list ContractFriendly

      • getLegal

        public java.util.List<ContractLegal> getLegal()
        Gets the value of the legal 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 legal property.

        For example, to add a new item, do as follows:

            getLegal().add(newItem);
         

        Objects of the following type(s) are allowed in the list ContractLegal

      • getRule

        public java.util.List<ContractRule> getRule()
        Gets the value of the rule 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 rule property.

        For example, to add a new item, do as follows:

            getRule().add(newItem);
         

        Objects of the following type(s) are allowed in the list ContractRule

      • withSubject

        public Contract withSubject​(java.util.Collection<Reference> values)
      • withAuthority

        public Contract withAuthority​(java.util.Collection<Reference> values)
      • withDomain

        public Contract withDomain​(java.util.Collection<Reference> 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