Class Account
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.BaseResource
-
- org.hl7.fhir.dstu2016may.model.Resource
-
- org.hl7.fhir.dstu2016may.model.DomainResource
-
- org.hl7.fhir.dstu2016may.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.static ca.uhn.fhir.rest.gclient.QuantityClientParamBALANCEFluent Client search parameter constant for balanceprotected 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.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_OWNERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.protected StringTypenameName used for the account when displaying it to humans in reports, etc.static ca.uhn.fhir.rest.gclient.StringClientParamNAMEFluent Client search parameter constant for nameprotected ReferenceownerIndicates the organization, department, etc.static ca.uhn.fhir.rest.gclient.ReferenceClientParamOWNERFluent Client search parameter constant for ownerprotected OrganizationownerTargetThe actual object that is the target of the reference (Indicates the organization, department, etc.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.DateClientParamPERIODFluent Client search parameter constant for periodstatic StringSP_BALANCESearch parameter: balancestatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_NAMESearch parameter: namestatic StringSP_OWNERSearch parameter: ownerstatic StringSP_PATIENTSearch parameter: patientstatic StringSP_PERIODSearch parameter: periodstatic StringSP_STATUSSearch parameter: statusstatic StringSP_SUBJECTSearch parameter: subjectstatic StringSP_TYPESearch parameter: typeprotected Enumeration<Account.AccountStatus>statusIndicates whether the account is presently used/useable or not.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusprotected ReferencesubjectIdentifies the patient, device, practitioner, location or other object the account is associated with.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectprotected 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.static ca.uhn.fhir.rest.gclient.TokenClientParamTYPEFluent Client search parameter constant for type-
Fields inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2016may.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Account()Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2016may.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.dstu2016may.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, 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_BALANCE
public static final String SP_BALANCE
Search parameter: balanceDescription: How much is in account?
Type: quantity
Path: Account.balance
- See Also:
- Constant Field Values
-
BALANCE
public static final ca.uhn.fhir.rest.gclient.QuantityClientParam BALANCE
Fluent Client search parameter constant for balanceDescription: How much is in account?
Type: quantity
Path: Account.balance
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter: patientDescription: What is account tied to?
Type: reference
Path: Account.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: What is account tied to?
Type: reference
Path: Account.subject
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Account:patient".
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: active | inactive
Type: token
Path: Account.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: active | inactive
Type: token
Path: Account.status
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter: subjectDescription: What is account tied to?
Type: reference
Path: Account.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription: What is account tied to?
Type: reference
Path: Account.subject
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Account:subject".
-
SP_NAME
public static final String SP_NAME
Search parameter: nameDescription: Human-readable label
Type: string
Path: Account.name
- See Also:
- Constant Field Values
-
NAME
public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME
Fluent Client search parameter constant for nameDescription: Human-readable label
Type: string
Path: Account.name
-
SP_OWNER
public static final String SP_OWNER
Search parameter: ownerDescription: Who is responsible?
Type: reference
Path: Account.owner
- See Also:
- Constant Field Values
-
OWNER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam OWNER
Fluent Client search parameter constant for ownerDescription: Who is responsible?
Type: reference
Path: Account.owner
-
INCLUDE_OWNER
public static final ca.uhn.fhir.model.api.Include INCLUDE_OWNER
Constant for fluent queries to be used to add include statements. Specifies the path value of "Account:owner".
-
SP_PERIOD
public static final String SP_PERIOD
Search parameter: periodDescription: Transaction window
Type: date
Path: Account.coveragePeriod
- See Also:
- Constant Field Values
-
PERIOD
public static final ca.uhn.fhir.rest.gclient.DateClientParam PERIOD
Fluent Client search parameter constant for periodDescription: Transaction window
Type: date
Path: Account.coveragePeriod
-
SP_TYPE
public static final String SP_TYPE
Search parameter: typeDescription: E.g. patient, expense, depreciation
Type: token
Path: Account.type
- See Also:
- Constant Field Values
-
TYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
Fluent Client search parameter constant for typeDescription: E.g. patient, expense, depreciation
Type: token
Path: Account.type
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: Account number
Type: token
Path: Account.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Account number
Type: token
Path: Account.identifier
-
-
Constructor Detail
-
Account
public Account()
Constructor
-
-
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
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classDomainResource- Returns:
- 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
-
-