Class Account

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 Account extends DomainResource
A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centres, etc.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (Unique identifier used to reference the account. May or may not be intended for human use (e.g. credit card number).)
    • hasIdentifier

      public boolean hasIdentifier()
    • addIdentifier

      Returns:
      identifier (Unique identifier used to reference the account. May or may not be intended for human use (e.g. credit card number).)
    • addIdentifier

    • getNameElement

      Returns:
      name (Name used for the account when displaying it to humans in reports, etc.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
    • hasNameElement

      public boolean hasNameElement()
    • hasName

      public boolean hasName()
    • setNameElement

      Parameters:
      value - name (Name used for the account when displaying it to humans in reports, etc.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
    • getName

      public String getName()
      Returns:
      Name used for the account when displaying it to humans in reports, etc.
    • setName

      public Account setName(String value)
      Parameters:
      value - Name used for the account when displaying it to humans in reports, etc.
    • getType

      Returns:
      type (Categorizes the account for reporting and searching purposes.)
    • hasType

      public boolean hasType()
    • setType

      Parameters:
      value - type (Categorizes the account for reporting and searching purposes.)
    • getStatusElement

      Returns:
      status (Indicates whether the account is presently used/useable or not.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • hasStatusElement

      public boolean hasStatusElement()
    • hasStatus

      public boolean hasStatus()
    • setStatusElement

      Parameters:
      value - status (Indicates whether the account is presently used/useable or not.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • getStatus

      Returns:
      Indicates whether the account is presently used/useable or not.
    • setStatus

      Parameters:
      value - Indicates whether the account is presently used/useable or not.
    • getActivePeriod

      Returns:
      activePeriod (Indicates the period of time over which the account is allowed.)
    • hasActivePeriod

      public boolean hasActivePeriod()
    • setActivePeriod

      public Account setActivePeriod(Period value)
      Parameters:
      value - activePeriod (Indicates the period of time over which the account is allowed.)
    • getCurrency

      public Coding getCurrency()
      Returns:
      currency (Identifies the currency to which transactions must be converted when crediting or debiting the account.)
    • hasCurrency

      public boolean hasCurrency()
    • setCurrency

      public Account setCurrency(Coding value)
      Parameters:
      value - currency (Identifies the currency to which transactions must be converted when crediting or debiting the account.)
    • getBalance

      public Money getBalance()
      Returns:
      balance (Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.)
    • hasBalance

      public boolean hasBalance()
    • setBalance

      public Account setBalance(Money value)
      Parameters:
      value - balance (Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.)
    • getCoveragePeriod

      Returns:
      coveragePeriod (Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.)
    • hasCoveragePeriod

      public boolean hasCoveragePeriod()
    • setCoveragePeriod

      Parameters:
      value - coveragePeriod (Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.)
    • getSubject

      Returns:
      subject (Identifies the patient, device, practitioner, location or other object the account is associated with.)
    • hasSubject

      public boolean hasSubject()
    • setSubject

      public Account setSubject(Reference value)
      Parameters:
      value - subject (Identifies the patient, device, practitioner, location or other object the account is associated with.)
    • getSubjectTarget

      Returns:
      subject The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the patient, device, practitioner, location or other object the account is associated with.)
    • setSubjectTarget

      Parameters:
      value - subject The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the patient, device, practitioner, location or other object the account is associated with.)
    • getOwner

      public Reference getOwner()
      Returns:
      owner (Indicates the organization, department, etc. with responsibility for the account.)
    • hasOwner

      public boolean hasOwner()
    • setOwner

      public Account setOwner(Reference value)
      Parameters:
      value - owner (Indicates the organization, department, etc. with responsibility for the account.)
    • getOwnerTarget

      Returns:
      owner The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Indicates the organization, department, etc. with responsibility for the account.)
    • setOwnerTarget

      Parameters:
      value - owner The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Indicates the organization, department, etc. with responsibility for the account.)
    • getDescriptionElement

      Returns:
      description (Provides additional information about what the account tracks and how it is used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
    • hasDescriptionElement

      public boolean hasDescriptionElement()
    • hasDescription

      public boolean hasDescription()
    • setDescriptionElement

      Parameters:
      value - description (Provides additional information about what the account tracks and how it is used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
    • getDescription

      Returns:
      Provides additional information about what the account tracks and how it is used.
    • setDescription

      public Account setDescription(String value)
      Parameters:
      value - Provides additional information about what the account tracks and how it is used.
    • 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 Account copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

      protected Account 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