Class Contract
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.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 extensionsJava 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 Summary
Fields Modifier and Type Field Description protected java.util.List<CodeableConcept>actionprotected java.util.List<CodeableConcept>actionReasonprotected java.util.List<ContractAgent>agentprotected Periodappliesprotected java.util.List<Reference>authorityprotected AttachmentbindingAttachmentprotected ReferencebindingReferenceprotected java.util.List<Reference>domainprotected java.util.List<ContractFriendly>friendlyprotected Identifieridentifierprotected DateTimeissuedprotected java.util.List<ContractLegal>legalprotected java.util.List<ContractRule>ruleprotected java.util.List<ContractSigner>signerprotected java.util.List<Reference>subjectprotected java.util.List<CodeableConcept>subTypeprotected java.util.List<ContractTerm>termprotected java.util.List<Reference>topicprotected CodeableConcepttypeprotected java.util.List<ContractValuedItem>valuedItem-
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 Contract()
-
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)java.util.List<CodeableConcept>getAction()Gets the value of the action property.java.util.List<CodeableConcept>getActionReason()Gets the value of the actionReason property.java.util.List<ContractAgent>getAgent()Gets the value of the agent property.PeriodgetApplies()Gets the value of the applies property.java.util.List<Reference>getAuthority()Gets the value of the authority property.AttachmentgetBindingAttachment()Gets the value of the bindingAttachment property.ReferencegetBindingReference()Gets the value of the bindingReference property.java.util.List<Reference>getDomain()Gets the value of the domain property.java.util.List<ContractFriendly>getFriendly()Gets the value of the friendly property.IdentifiergetIdentifier()Gets the value of the identifier property.DateTimegetIssued()Gets the value of the issued property.java.util.List<ContractLegal>getLegal()Gets the value of the legal property.java.util.List<ContractRule>getRule()Gets the value of the rule property.java.util.List<ContractSigner>getSigner()Gets the value of the signer property.java.util.List<Reference>getSubject()Gets the value of the subject property.java.util.List<CodeableConcept>getSubType()Gets the value of the subType property.java.util.List<ContractTerm>getTerm()Gets the value of the term property.java.util.List<Reference>getTopic()Gets the value of the topic property.CodeableConceptgetType()Gets the value of the type property.java.util.List<ContractValuedItem>getValuedItem()Gets the value of the valuedItem property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetApplies(Period value)Sets the value of the applies property.voidsetBindingAttachment(Attachment value)Sets the value of the bindingAttachment property.voidsetBindingReference(Reference value)Sets the value of the bindingReference property.voidsetIdentifier(Identifier value)Sets the value of the identifier property.voidsetIssued(DateTime value)Sets the value of the issued property.voidsetType(CodeableConcept value)Sets the value of the type property.java.lang.StringtoString()ContractwithAction(java.util.Collection<CodeableConcept> values)ContractwithAction(CodeableConcept... values)ContractwithActionReason(java.util.Collection<CodeableConcept> values)ContractwithActionReason(CodeableConcept... values)ContractwithAgent(java.util.Collection<ContractAgent> values)ContractwithAgent(ContractAgent... values)ContractwithApplies(Period value)ContractwithAuthority(java.util.Collection<Reference> values)ContractwithAuthority(Reference... values)ContractwithBindingAttachment(Attachment value)ContractwithBindingReference(Reference value)ContractwithContained(java.util.Collection<ResourceContainer> values)ContractwithContained(ResourceContainer... values)ContractwithDomain(java.util.Collection<Reference> values)ContractwithDomain(Reference... values)ContractwithExtension(java.util.Collection<Extension> values)ContractwithExtension(Extension... values)ContractwithFriendly(java.util.Collection<ContractFriendly> values)ContractwithFriendly(ContractFriendly... values)ContractwithId(Id value)ContractwithIdentifier(Identifier value)ContractwithImplicitRules(Uri value)ContractwithIssued(DateTime value)ContractwithLanguage(Code value)ContractwithLegal(java.util.Collection<ContractLegal> values)ContractwithLegal(ContractLegal... values)ContractwithMeta(Meta value)ContractwithModifierExtension(java.util.Collection<Extension> values)ContractwithModifierExtension(Extension... values)ContractwithRule(java.util.Collection<ContractRule> values)ContractwithRule(ContractRule... values)ContractwithSigner(java.util.Collection<ContractSigner> values)ContractwithSigner(ContractSigner... values)ContractwithSubject(java.util.Collection<Reference> values)ContractwithSubject(Reference... values)ContractwithSubType(java.util.Collection<CodeableConcept> values)ContractwithSubType(CodeableConcept... values)ContractwithTerm(java.util.Collection<ContractTerm> values)ContractwithTerm(ContractTerm... values)ContractwithText(Narrative value)ContractwithTopic(java.util.Collection<Reference> values)ContractwithTopic(Reference... values)ContractwithType(CodeableConcept value)ContractwithValuedItem(java.util.Collection<ContractValuedItem> values)ContractwithValuedItem(ContractValuedItem... values)-
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
-
identifier
protected Identifier identifier
-
issued
protected DateTime issued
-
applies
protected Period applies
-
subject
protected java.util.List<Reference> subject
-
topic
protected java.util.List<Reference> topic
-
authority
protected java.util.List<Reference> authority
-
domain
protected java.util.List<Reference> domain
-
type
protected CodeableConcept type
-
subType
protected java.util.List<CodeableConcept> subType
-
action
protected java.util.List<CodeableConcept> action
-
actionReason
protected java.util.List<CodeableConcept> actionReason
-
agent
protected java.util.List<ContractAgent> agent
-
signer
protected java.util.List<ContractSigner> signer
-
valuedItem
protected java.util.List<ContractValuedItem> valuedItem
-
term
protected java.util.List<ContractTerm> term
-
bindingAttachment
protected Attachment bindingAttachment
-
bindingReference
protected Reference bindingReference
-
friendly
protected java.util.List<ContractFriendly> friendly
-
legal
protected java.util.List<ContractLegal> legal
-
rule
protected java.util.List<ContractRule> rule
-
-
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 isIdentifier
-
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 isDateTime
-
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 isPeriod
-
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
setmethod 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
setmethod 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
setmethod 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
setmethod 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 isCodeableConcept
-
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
setmethod 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
setmethod 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
setmethod 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
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
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
setmethod 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
setmethod 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
setmethod 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 isAttachment
-
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 isReference
-
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
setmethod 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
setmethod 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
setmethod 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)
-
withType
public Contract withType(CodeableConcept value)
-
withSubType
public Contract withSubType(CodeableConcept... values)
-
withSubType
public Contract withSubType(java.util.Collection<CodeableConcept> values)
-
withAction
public Contract withAction(CodeableConcept... values)
-
withAction
public Contract withAction(java.util.Collection<CodeableConcept> values)
-
withActionReason
public Contract withActionReason(CodeableConcept... values)
-
withActionReason
public Contract withActionReason(java.util.Collection<CodeableConcept> values)
-
withAgent
public Contract withAgent(ContractAgent... values)
-
withAgent
public Contract withAgent(java.util.Collection<ContractAgent> values)
-
withSigner
public Contract withSigner(ContractSigner... values)
-
withSigner
public Contract withSigner(java.util.Collection<ContractSigner> values)
-
withValuedItem
public Contract withValuedItem(ContractValuedItem... values)
-
withValuedItem
public Contract withValuedItem(java.util.Collection<ContractValuedItem> values)
-
withTerm
public Contract withTerm(ContractTerm... values)
-
withTerm
public Contract withTerm(java.util.Collection<ContractTerm> values)
-
withBindingAttachment
public Contract withBindingAttachment(Attachment value)
-
withFriendly
public Contract withFriendly(ContractFriendly... values)
-
withFriendly
public Contract withFriendly(java.util.Collection<ContractFriendly> values)
-
withLegal
public Contract withLegal(ContractLegal... values)
-
withLegal
public Contract withLegal(java.util.Collection<ContractLegal> values)
-
withRule
public Contract withRule(ContractRule... values)
-
withRule
public Contract withRule(java.util.Collection<ContractRule> values)
-
withText
public Contract withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Contract withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Contract withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Contract withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Contract withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Contract withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Contract withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Contract withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Contract withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Contract withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Contract 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
-
-