Class Contract

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

public class Contract extends DomainResource
A formal agreement between parties regarding the conduct of business, exchange of information or other matters.
See Also:
Serialized Form
  • Field Details

    • identifier

      Unique identifier for this Contract.
    • issued

      protected DateTimeType issued
      When this Contract was issued.
    • applies

      protected Period applies
      Relevant time or time-period when this Contract is applicable.
    • subject

      protected List<Reference> subject
      Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services.
    • subjectTarget

      The actual objects that are the target of the reference (Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services.)
    • authority

      protected List<Reference> authority
      A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.
    • authorityTarget

      The actual objects that are the target of the reference (A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.)
    • domain

      protected List<Reference> domain
      Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.
    • domainTarget

      The actual objects that are the target of the reference (Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.)
    • type

      protected CodeableConcept type
      Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc.
    • subType

      More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent.
    • action

      Action stipulated by this Contract.
    • actionReason

      Reason for action stipulated by this Contract.
    • actor

      List of Contract actors.
    • valuedItem

      Contract Valued Item List.
    • signer

      Party signing this Contract.
    • term

      One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups.
    • binding

      protected Type binding
      Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the "source of truth" and which would be the basis for legal action related to enforcement of this Contract.
    • friendly

      The "patient friendly language" versionof the Contract in whole or in parts. "Patient friendly language" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement.
    • rule

      List of Computable Policy Rule Language Representations of this Contract.
    • SP_ACTOR

      public static final String SP_ACTOR
      See Also:
      Constant Field Values
    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      See Also:
      Constant Field Values
    • SP_SUBJECT

      public static final String SP_SUBJECT
      See Also:
      Constant Field Values
    • SP_PATIENT

      public static final String SP_PATIENT
      See Also:
      Constant Field Values
    • SP_SIGNER

      public static final String SP_SIGNER
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (Unique identifier for this Contract.)
    • hasIdentifier

      public boolean hasIdentifier()
    • setIdentifier

      public Contract setIdentifier​(Identifier value)
      Parameters:
      value - identifier (Unique identifier for this Contract.)
    • getIssuedElement

      Returns:
      issued (When this Contract was issued.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
    • hasIssuedElement

      public boolean hasIssuedElement()
    • hasIssued

      public boolean hasIssued()
    • setIssuedElement

      Parameters:
      value - issued (When this Contract was issued.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
    • getIssued

      public Date getIssued()
      Returns:
      When this Contract was issued.
    • setIssued

      public Contract setIssued​(Date value)
      Parameters:
      value - When this Contract was issued.
    • getApplies

      public Period getApplies()
      Returns:
      applies (Relevant time or time-period when this Contract is applicable.)
    • hasApplies

      public boolean hasApplies()
    • setApplies

      public Contract setApplies​(Period value)
      Parameters:
      value - applies (Relevant time or time-period when this Contract is applicable.)
    • getSubject

      Returns:
      subject (Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services.)
    • hasSubject

      public boolean hasSubject()
    • addSubject

      Returns:
      subject (Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services.)
    • addSubject

      public Contract addSubject​(Reference t)
    • getSubjectTarget

      Returns:
      subject (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Who and/or what this Contract is about: typically a Patient, Organization, or valued items such as goods and services.)
    • getAuthority

      Returns:
      authority (A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.)
    • hasAuthority

      public boolean hasAuthority()
    • addAuthority

      Returns:
      authority (A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.)
    • addAuthority

    • getAuthorityTarget

      Returns:
      authority (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.)
    • addAuthorityTarget

      Returns:
      authority (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.)
    • getDomain

      Returns:
      domain (Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.)
    • hasDomain

      public boolean hasDomain()
    • addDomain

      public Reference addDomain()
      Returns:
      domain (Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.)
    • addDomain

      public Contract addDomain​(Reference t)
    • getDomainTarget

      Returns:
      domain (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.)
    • addDomainTarget

      Returns:
      domain (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.)
    • getType

      Returns:
      type (Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc.)
    • hasType

      public boolean hasType()
    • setType

      public Contract setType​(CodeableConcept value)
      Parameters:
      value - type (Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc.)
    • getSubType

      Returns:
      subType (More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent.)
    • hasSubType

      public boolean hasSubType()
    • addSubType

      Returns:
      subType (More specific type or specialization of an overarching or more general contract such as auto insurance, home owner insurance, prenupial agreement, Advanced-Directive, or privacy consent.)
    • addSubType

    • getAction

      Returns:
      action (Action stipulated by this Contract.)
    • hasAction

      public boolean hasAction()
    • addAction

      Returns:
      action (Action stipulated by this Contract.)
    • addAction

    • getActionReason

      Returns:
      actionReason (Reason for action stipulated by this Contract.)
    • hasActionReason

      public boolean hasActionReason()
    • addActionReason

      Returns:
      actionReason (Reason for action stipulated by this Contract.)
    • addActionReason

    • getActor

      Returns:
      actor (List of Contract actors.)
    • hasActor

      public boolean hasActor()
    • addActor

      Returns:
      actor (List of Contract actors.)
    • addActor

    • getValuedItem

      Returns:
      valuedItem (Contract Valued Item List.)
    • hasValuedItem

      public boolean hasValuedItem()
    • addValuedItem

      Returns:
      valuedItem (Contract Valued Item List.)
    • addValuedItem

    • getSigner

      Returns:
      signer (Party signing this Contract.)
    • hasSigner

      public boolean hasSigner()
    • addSigner

      Returns:
      signer (Party signing this Contract.)
    • addSigner

    • getTerm

      Returns:
      term (One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups.)
    • hasTerm

      public boolean hasTerm()
    • addTerm

      Returns:
      term (One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups.)
    • addTerm

    • getBinding

      public Type getBinding()
      Returns:
      binding (Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the "source of truth" and which would be the basis for legal action related to enforcement of this Contract.)
    • getBindingAttachment

      public Attachment getBindingAttachment() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      binding (Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the "source of truth" and which would be the basis for legal action related to enforcement of this Contract.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasBindingAttachment

      public boolean hasBindingAttachment()
    • getBindingReference

      public Reference getBindingReference() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      binding (Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the "source of truth" and which would be the basis for legal action related to enforcement of this Contract.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasBindingReference

      public boolean hasBindingReference()
    • hasBinding

      public boolean hasBinding()
    • setBinding

      public Contract setBinding​(Type value)
      Parameters:
      value - binding (Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the "source of truth" and which would be the basis for legal action related to enforcement of this Contract.)
    • getFriendly

      Returns:
      friendly (The "patient friendly language" versionof the Contract in whole or in parts. "Patient friendly language" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement.)
    • hasFriendly

      public boolean hasFriendly()
    • addFriendly

      Returns:
      friendly (The "patient friendly language" versionof the Contract in whole or in parts. "Patient friendly language" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement.)
    • addFriendly

    • getLegal

      Returns:
      legal (List of Legal expressions or representations of this Contract.)
    • hasLegal

      public boolean hasLegal()
    • addLegal

      Returns:
      legal (List of Legal expressions or representations of this Contract.)
    • addLegal

    • getRule

      Returns:
      rule (List of Computable Policy Rule Language Representations of this Contract.)
    • hasRule

      public boolean hasRule()
    • addRule

      Returns:
      rule (List of Computable Policy Rule Language Representations of this Contract.)
    • addRule

    • listChildren

      protected void listChildren​(List<Property> childrenList)
      Overrides:
      listChildren in class DomainResource
    • setProperty

      public void setProperty​(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild​(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      public Contract copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

      protected Contract typedCopy()
    • equalsDeep

      public boolean equalsDeep​(Base other)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow​(Base other)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource