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.
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.
The operations supported by this resource are listed below.
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]}
Parameter | Description |
---|---|
[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. |
Response Code | Description |
---|---|
200 OK | The requested resource was found and is contained within the body of the HTTP response. |
401 Unauthorized | Authorization 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 Found | The 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 Error | The 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 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]}
Parameter | Description |
---|---|
[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 ![]() |
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. |
Response Code | Description |
---|---|
200 OK | The 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 Unauthorized | Authorization 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 Error | The 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. |
The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/account-profile
Name | Flags | Card. | Type | Description & Constraints | |
---|---|---|---|---|---|
![]() ![]() | ∑ | 0..* | Basic | Resource for non-supported content | |
![]() ![]() ![]() | ∑ | 0..1 | Meta | Metadata about the resource | |
![]() ![]() ![]() | ?! ∑ | 0..1 | uri | A set of rules under which this content was created | |
![]() ![]() ![]() | 0..1 | code | Language of the resource content Binding: IETF BCP-47 ![]() | ||
![]() ![]() ![]() | I | 0..1 | Narrative | Text summary of the resource, for human interpretation | |
![]() ![]() ![]() | 0..* | Resource | Contained, inline Resources | ||
![]() ![]() ![]() | 0..1 | dateTime | Visit Date | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-visitDate" | ||
![]() ![]() ![]() ![]() | 1..1 | dateTime | Value of extension | ||
![]() ![]() ![]() | 0..1 | string | Bill status | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-billStatus" | ||
![]() ![]() ![]() ![]() | 1..1 | string | Value of extension | ||
![]() ![]() ![]() | 0..1 | string | Description | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-description" | ||
![]() ![]() ![]() ![]() | 1..1 | string | Value of extension | ||
![]() ![]() ![]() | 0..1 | integer | Current carrier | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-currentCarrier" | ||
![]() ![]() ![]() ![]() | 1..1 | integer | Value of extension | ||
![]() ![]() ![]() | 0..1 | integer | Patient Visit Id | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-patientVisitId" | ||
![]() ![]() ![]() ![]() | 1..1 | integer | Value of extension | ||
![]() ![]() ![]() | 0..1 | integer | Doctor Id | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-doctorId" | ||
![]() ![]() ![]() ![]() | 1..1 | integer | Value of extension | ||
![]() ![]() ![]() | 0..1 | Reference (Reference) | FacilityId | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-facilityId" | ||
![]() ![]() ![]() ![]() | 1..1 | Reference (Reference) | Value of extension | ||
![]() ![]() ![]() | 0..1 | integer | Company Id | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-companyId" | ||
![]() ![]() ![]() ![]() | 1..1 | integer | Value of extension | ||
![]() ![]() ![]() | 0..1 | Extension | Total Balance | ||
![]() ![]() ![]() | 0..1 | Extension | Insurance Balance | ||
![]() ![]() ![]() | 0..1 | Extension | Patient Balance | ||
![]() ![]() ![]() | 0..1 | Extension | Deposit | ||
![]() ![]() ![]() | 0..1 | integer | Financial Class Mid | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-financialClassMid" | ||
![]() ![]() ![]() ![]() | 1..1 | integer | Value of extension | ||
![]() ![]() ![]() | 0..1 | integer | Guarantor Id | ||
![]() ![]() ![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/account-guarantorId" | ||
![]() ![]() ![]() ![]() | 1..1 | integer | Value of extension | ||
![]() ![]() ![]() | ?! | 0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() ![]() | ∑ | 0..* | Identifier | Business identifier | |
![]() ![]() ![]() | ?! ∑ | 1..1 | CodeableConcept | Kind of Resource Binding: Basic Resource Types (example ) | |
![]() ![]() ![]() | ∑ | 0..1 | Reference (Resource ) | Identifies the focus of this resource | |
![]() ![]() ![]() | ∑ | 0..1 | Reference (Practitioner | Patient | RelatedPerson ) | Who created | |
![]() ![]() ![]() | ∑ | 0..1 | date | When created | |