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>
 
  • Field Details

  • Constructor Details

    • Contract

      public Contract()
  • Method Details

    • 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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

    • getType

      public CodeableConcept getType()
      Gets the value of the type property.
      Returns:
      possible object is CodeableConcept
    • setType

      public void setType(CodeableConcept value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is CodeableConcept
    • getSubType

      public 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 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 ContractAgent

    • getSigner

      public 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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

    • withIdentifier

      public Contract withIdentifier(Identifier value)
    • withIssued

      public Contract withIssued(DateTime value)
    • withApplies

      public Contract withApplies(Period value)
    • withSubject

      public Contract withSubject(Reference... values)
    • withSubject

      public Contract withSubject(Collection<Reference> values)
    • withTopic

      public Contract withTopic(Reference... values)
    • withTopic

      public Contract withTopic(Collection<Reference> values)
    • withAuthority

      public Contract withAuthority(Reference... values)
    • withAuthority

      public Contract withAuthority(Collection<Reference> values)
    • withDomain

      public Contract withDomain(Reference... values)
    • withDomain

      public Contract withDomain(Collection<Reference> values)
    • withType

      public Contract withType(CodeableConcept value)
    • withSubType

      public Contract withSubType(CodeableConcept... values)
    • withSubType

      public Contract withSubType(Collection<CodeableConcept> values)
    • withAction

      public Contract withAction(CodeableConcept... values)
    • withAction

      public Contract withAction(Collection<CodeableConcept> values)
    • withActionReason

      public Contract withActionReason(CodeableConcept... values)
    • withActionReason

      public Contract withActionReason(Collection<CodeableConcept> values)
    • withAgent

      public Contract withAgent(ContractAgent... values)
    • withAgent

      public Contract withAgent(Collection<ContractAgent> values)
    • withSigner

      public Contract withSigner(ContractSigner... values)
    • withSigner

      public Contract withSigner(Collection<ContractSigner> values)
    • withValuedItem

      public Contract withValuedItem(ContractValuedItem... values)
    • withValuedItem

      public Contract withValuedItem(Collection<ContractValuedItem> values)
    • withTerm

      public Contract withTerm(ContractTerm... values)
    • withTerm

      public Contract withTerm(Collection<ContractTerm> values)
    • withBindingAttachment

      public Contract withBindingAttachment(Attachment value)
    • withBindingReference

      public Contract withBindingReference(Reference value)
    • withFriendly

      public Contract withFriendly(ContractFriendly... values)
    • withFriendly

      public Contract withFriendly(Collection<ContractFriendly> values)
    • withLegal

      public Contract withLegal(ContractLegal... values)
    • withLegal

      public Contract withLegal(Collection<ContractLegal> values)
    • withRule

      public Contract withRule(ContractRule... values)
    • withRule

      public Contract withRule(Collection<ContractRule> values)
    • withText

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

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

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

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

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

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

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

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

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

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

      public Contract 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
    • setSubject

      public void setSubject(List<Reference> value)
    • setTopic

      public void setTopic(List<Reference> value)
    • setAuthority

      public void setAuthority(List<Reference> value)
    • setDomain

      public void setDomain(List<Reference> value)
    • setSubType

      public void setSubType(List<CodeableConcept> value)
    • setAction

      public void setAction(List<CodeableConcept> value)
    • setActionReason

      public void setActionReason(List<CodeableConcept> value)
    • setAgent

      public void setAgent(List<ContractAgent> value)
    • setSigner

      public void setSigner(List<ContractSigner> value)
    • setValuedItem

      public void setValuedItem(List<ContractValuedItem> value)
    • setTerm

      public void setTerm(List<ContractTerm> value)
    • setFriendly

      public void setFriendly(List<ContractFriendly> value)
    • setLegal

      public void setLegal(List<ContractLegal> value)
    • setRule

      public void setRule(List<ContractRule> value)