Package org.hl7.fhir.dstu2.model
Class Account
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.AccountStatusstatic classAccount.AccountStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected PeriodactivePeriodIndicates the period of time over which the account is allowed.protected MoneybalanceRepresents the sum of all credits less all debits associated with the account.protected PeriodcoveragePeriodIdentifies the period of time the account applies to; e.g.protected CodingcurrencyIdentifies the currency to which transactions must be converted when crediting or debiting the account.protected StringTypedescriptionProvides additional information about what the account tracks and how it is used.protected List<Identifier>identifierUnique identifier used to reference the account.protected StringTypenameName used for the account when displaying it to humans in reports, etc.protected ReferenceownerIndicates the organization, department, etc.protected OrganizationownerTargetThe actual object that is the target of the reference (Indicates the organization, department, etc.static StringSP_BALANCEstatic StringSP_IDENTIFIERstatic StringSP_NAMEstatic StringSP_OWNERstatic StringSP_PATIENTstatic StringSP_PERIODstatic StringSP_STATUSstatic StringSP_SUBJECTstatic StringSP_TYPEprotected Enumeration<Account.AccountStatus>statusIndicates whether the account is presently used/useable or not.protected ReferencesubjectIdentifies the patient, device, practitioner, location or other object the account is associated with.protected ResourcesubjectTargetThe actual object that is the target of the reference (Identifies the patient, device, practitioner, location or other object the account is associated with.)protected CodeableConcepttypeCategorizes the account for reporting and searching purposes.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Account()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
Unique identifier used to reference the account. May or may not be intended for human use (e.g. credit card number).
-
name
protected StringType name
Name used for the account when displaying it to humans in reports, etc.
-
type
protected CodeableConcept type
Categorizes the account for reporting and searching purposes.
-
status
protected Enumeration<Account.AccountStatus> status
Indicates whether the account is presently used/useable or not.
-
activePeriod
protected Period activePeriod
Indicates the period of time over which the account is allowed.
-
currency
protected Coding currency
Identifies the currency to which transactions must be converted when crediting or debiting the account.
-
balance
protected Money balance
Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.
-
coveragePeriod
protected Period coveragePeriod
Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.
-
subject
protected Reference subject
Identifies the patient, device, practitioner, location or other object the account is associated with.
-
subjectTarget
protected Resource subjectTarget
The actual object that is the target of the reference (Identifies the patient, device, practitioner, location or other object the account is associated with.)
-
owner
protected Reference owner
Indicates the organization, department, etc. with responsibility for the account.
-
ownerTarget
protected Organization ownerTarget
The actual object that is the target of the reference (Indicates the organization, department, etc. with responsibility for the account.)
-
description
protected StringType description
Provides additional information about what the account tracks and how it is used.
-
SP_OWNER
public static final String SP_OWNER
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_PERIOD
public static final String SP_PERIOD
- See Also:
- Constant Field Values
-
SP_BALANCE
public static final String SP_BALANCE
- 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_NAME
public static final String SP_NAME
- See Also:
- Constant Field Values
-
SP_TYPE
public static final String SP_TYPE
- See Also:
- Constant Field Values
-
SP_STATUS
public static final String SP_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Account
public Account()
-
-
Method Detail
-
getIdentifier
public List<Identifier> 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
public Identifier 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
public Account addIdentifier(Identifier t)
-
getNameElement
public StringType 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
public Account setNameElement(StringType value)
- 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
public CodeableConcept getType()
- Returns:
type(Categorizes the account for reporting and searching purposes.)
-
hasType
public boolean hasType()
-
setType
public Account setType(CodeableConcept value)
- Parameters:
value-type(Categorizes the account for reporting and searching purposes.)
-
getStatusElement
public Enumeration<Account.AccountStatus> 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
public Account setStatusElement(Enumeration<Account.AccountStatus> value)
- 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
public Account.AccountStatus getStatus()
- Returns:
- Indicates whether the account is presently used/useable or not.
-
setStatus
public Account setStatus(Account.AccountStatus value)
- Parameters:
value- Indicates whether the account is presently used/useable or not.
-
getActivePeriod
public Period 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
public Period 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
public Account setCoveragePeriod(Period value)
- Parameters:
value-coveragePeriod(Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.)
-
getSubject
public Reference 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
public Resource getSubjectTarget()
- Returns:
subjectThe 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
public Account setSubjectTarget(Resource value)
- Parameters:
value-subjectThe 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
public Organization getOwnerTarget()
- Returns:
ownerThe 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
public Account setOwnerTarget(Organization value)
- Parameters:
value-ownerThe 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
public StringType 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
public Account setDescriptionElement(StringType value)
- 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
public String 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:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Account copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-