Account Profile

This Resource Account profile is part of the set of resource profiles supported by the API Server used athenaPractice 12.3 products. HL7 FHIR DSTU Release 2.0 does not provide a resource to access patient account balances, however this information is essential for practice management. We have created an extension of the Basic resource to support this content which can be accessed via the fhir/$Account operation using the same parameter syntax as for search with other resources. The resource is an extension of the Basic resource and can be accessed via the fhir/$Account operation using the same parameter syntax as for search with other resources.

Scope and Usage

This profile is used to define the content that will be returned by the API Server in response to requests to access Account resources. All elements listed in the differential profile view are supported, which means that the API Server is capable of supplying these fields from the product database when they have been populated via the product or its APIs.

Supported Operations

The operations supported by this resource are listed below.

Read Operation

Read operations for this profile of Basic are issued via the $Account operation. To read the content for a specified Account, an application shall perform an HTTP GET, specifying the identifier of the resource being retrieved.

GET [base]/fhir/$Account?_id=[id]{&_format=[json|xml]&_summary=[true|data]}

Read Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[id]Specifies the identifier of the Account resource to retrieve
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.

Read Operation HTTP Response Codes

Response CodeDescription
200 OKThe requested resource was found and is contained within the body of the HTTP response.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
404 Not FoundThe requested resource does not exist. The body of the HTTP response will contain an OperationOutcome resource that indicates that the resource could not be found.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

Search Operation

Search operations for this profile of Basic are issued via the $Account operation. To search for content for Account resources, an application shall perform an HTTP GET using the search parameters described below.

GET [base]/fhir/$Account?{search parameters}{&_format=[json|xml]&_summary=[true|data]}

Search Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[_count]Specifies the maximum number of search results to return in a single query. Note: The count of results does not limit the number of additional resources returned via the _include parameter. No more than max-results Account resources which match the search criteria will be returned. The API Server has default and maximum limits for the value that can be specified for this parameter. These limits may vary depending upon the client application vendors participation level in the AthenaHealth Partner program. Note: The API Server support the HL7 FHIR Paging capability.
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.
_id (token )The ID of the resource
_lastUpdated (date )The date the resource was last updated.
_lastUpdated-fromnow (quantity )Like _lastUpdated except expressed as a positive or negative offset from the current time in units of time , e.g. _lastUpdated-fromnow=ge7||d for more than seven days in the future or =le-2||mo for less than two months in the past. The unit must be specified.
_security (token )
_tag (token )
code (token )Search by type.

NOTE: All account resources have the code value fixed to account , which makes it of little value as a search parameter.
companyId (token )Company Id of the facility associated with the visit
created (date )Date the account was created
created-fromnow (token )Date the account was created represented as an offset from the current date.
doctorId (token )The id of the physician associated with the visit for this account.
guarantorId (token )The id of the guarantor associated with the visit for this account.
identifier (token )The business identifier of this account.
patientVisitId (token )The id of this visit associated with this account.
subject (reference )The patient associated with this account.
visitDate (date )The visit date for the visit associated with the account.
visitDate-fromnow (quantity )The visit date for the visit associated with the account represented as an offset from now.

Search Operation HTTP Response Codes

Response CodeDescription
200 OKThe query was performed and any results found are contained within the body of the HTTP response. Note: The search API will return 200 OK when the query itself is successful, regardless of whether or not any matching results were found.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

Profile Content

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/account-profile
Name Flags Card. Type Description & Constraints
.. Basic0..*Basic Resource for non-supported content
... meta0..1Meta Metadata about the resource
... implicitRules?! 0..1uri A set of rules under which this content was created
... language0..1code Language of the resource content

Binding: IETF BCP-47 (required )
... textI0..1Narrative Text summary of the resource, for human interpretation
... contained0..*Resource Contained, inline Resources
...account-visitDate0..1dateTime Visit Date
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-visitDate"
.... valueDateTime1..1dateTime Value of extension
...account-billStatus0..1string Bill status
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-billStatus"
.... valueString1..1string Value of extension
...account-description0..1string Description
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-description"
.... valueString1..1string Value of extension
...account-currentCarrier0..1integer Current carrier
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-currentCarrier"
.... valueInteger1..1integer Value of extension
...account-patientVisitId0..1integer Patient Visit Id
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-patientVisitId"
.... valueInteger1..1integer Value of extension
...account-doctorId0..1integer Doctor Id
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-doctorId"
.... valueInteger1..1integer Value of extension
...account-facilityId0..1Reference (Reference)FacilityId
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-facilityId"
.... valueReference1..1Reference (Reference)Value of extension
...account-companyId0..1integer Company Id
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-companyId"
.... valueInteger1..1integer Value of extension
... extension0..1Extension Total Balance
... extension0..1Extension Insurance Balance
... extension0..1Extension Patient Balance
... extension0..1Extension Deposit
...account-financialClassMid0..1integer Financial Class Mid
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-financialClassMid"
.... valueInteger1..1integer Value of extension
...account-guarantorId0..1integer Guarantor Id
.... url1..1uri "http://hl7.org/fhir/StructureDefinition/account-guarantorId"
.... valueInteger1..1integer Value of extension
... modifierExtension?!0..*Extension Extensions that cannot be ignored
... identifier0..*Identifier Business identifier
... code?! 1..1CodeableConcept Kind of Resource

Binding: Basic Resource Types (example )
... subject0..1Reference (Resource )Identifies the focus of this resource
... author0..1Reference (Practitioner | Patient | RelatedPerson )Who created
... created0..1date When created