Implementation Guide
23.1.0 - R4 APIs

Publish Box goes here

Resource Profile: Profile - Athena Posting

Official URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-profile Version: 23.1.0
Active as of 2022-03-01 Computable Name: Athena Posting

athena posting profile

This Resource Posting profile is part of the set of resource profiles supported by the API Server used Athena Practice products. HL7 FHIR R4 does not provide a resource to access patient payments,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/r4/$Posting operation using the same parameter syntax as for search with other resources.

Overview

The resource is an extension of the Basic resource and can be accessed via the fhir/r4/$Posting 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 Posting 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.

Source

The BasicPosting resource is derived from the PAYMENTMETHOD, VisitTransactions and PatientProfile tables in athenaPractice. Specific detail can be found in the Mappings tab in the profile detail page.

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from Basic

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..* Basic Resource for non-supported content
... id S 1..1 id Logical id of this artifact
... meta S 0..1 Meta Metadata about the resource
.... lastUpdated 1..1 instant When the resource version last changed
.... Slices for profile 1..* canonical() Profiles this resource claims to conform to
Slice: Unordered, Open by value:uri
..... profile:Athena Posting Profile 1..1 canonical() Profiles this resource claims to conform to
Fixed Value: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-profile
... Slices for extension Content/Rules for all slices
.... batch 1..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch"
..... value[x] 1..1 integer Value of extension
.... extension:Date 0..1 Extension Extension
.... extension:Amount 1..1 Extension Extension
.... extension:AmountApplied 1..1 Extension Extension
.... extension:InsuranceAmount 0..1 Extension Extension
.... payerName 0..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName"
..... value[x] 1..1 string Value of extension
.... extension:PayerId 0..1 Extension Extension
.... extension:PayerType 0..1 Extension Extension
.... extension:PaymentType 0..1 Extension Extension
.... extension:CheckCardNumber 0..1 Extension Extension
.... extension:CheckDate 0..1 Extension Extension
.... extension:CardTypeMID 0..1 Extension Extension
.... extension:AccountNumber 0..1 Extension Extension
.... extension:MoneyOrderType 0..1 Extension Extension
.... extension:InsuranceReference 0..1 Extension Extension
.... extension:DateOfDeposit 0..1 Extension Extension
.... patientVisitId 0..1 (Complex) Patient Visit Id
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId"
..... value[x] 1..1 integer Value of extension
... code S 1..1 CodeableConcept Kind of Resource
... subject 0..1 Reference(Resource) Identifies the focus of this resource
... created 0..1 date When created
... author 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..* Basic Resource for non-supported content
... id SΣ 1..1 id Logical id of this artifact
... meta SΣ 0..1 Meta Metadata about the resource
.... lastUpdated Σ 1..1 instant When the resource version last changed
.... Slices for profile Σ 1..* canonical() Profiles this resource claims to conform to
Slice: Unordered, Open by value:uri
..... profile:Athena Posting Profile Σ 1..1 canonical() Profiles this resource claims to conform to

Fixed Value: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-profile
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
.... batch 1..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch"
..... value[x] 1..1 integer Value of extension
.... extension:Date 0..1 Extension Extension
.... extension:Amount 1..1 Extension Extension
.... extension:AmountApplied 1..1 Extension Extension
.... extension:InsuranceAmount 0..1 Extension Extension
.... payerName 0..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName"
..... value[x] 1..1 string Value of extension
.... extension:PayerId 0..1 Extension Extension
.... extension:PayerType 0..1 Extension Extension
.... extension:PaymentType 0..1 Extension Extension
.... extension:CheckCardNumber 0..1 Extension Extension
.... extension:CheckDate 0..1 Extension Extension
.... extension:CardTypeMID 0..1 Extension Extension
.... extension:AccountNumber 0..1 Extension Extension
.... extension:MoneyOrderType 0..1 Extension Extension
.... extension:InsuranceReference 0..1 Extension Extension
.... extension:DateOfDeposit 0..1 Extension Extension
.... patientVisitId 0..1 (Complex) Patient Visit Id
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId"
..... value[x] 1..1 integer Value of extension
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier External ids for this item
... code ?!SΣ 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.

... subject Σ 0..1 Reference(Resource) Identifies the focus of this resource
... created Σ 0..1 date When created
... author Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Basic.codeexampleBasicResourceTypes
http://hl7.org/fhir/ValueSet/basic-resource-type
from the FHIR Standard
NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..* Basic Resource for non-supported content
... id SΣ 1..1 id Logical id of this artifact
... meta SΣ 0..1 Meta Metadata about the resource
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 1..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... Slices for profile Σ 1..* canonical() Profiles this resource claims to conform to
Slice: Unordered, Open by value:uri
..... profile:Athena Posting Profile Σ 1..1 canonical() Profiles this resource claims to conform to

Fixed Value: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-profile
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... batch 1..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch"
..... value[x] 1..1 integer Value of extension
.... extension:Date 0..1 Extension Extension
.... extension:Amount 1..1 Extension Extension
.... extension:AmountApplied 1..1 Extension Extension
.... extension:InsuranceAmount 0..1 Extension Extension
.... payerName 0..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName"
..... value[x] 1..1 string Value of extension
.... extension:PayerId 0..1 Extension Extension
.... extension:PayerType 0..1 Extension Extension
.... extension:PaymentType 0..1 Extension Extension
.... extension:CheckCardNumber 0..1 Extension Extension
.... extension:CheckDate 0..1 Extension Extension
.... extension:CardTypeMID 0..1 Extension Extension
.... extension:AccountNumber 0..1 Extension Extension
.... extension:MoneyOrderType 0..1 Extension Extension
.... extension:InsuranceReference 0..1 Extension Extension
.... extension:DateOfDeposit 0..1 Extension Extension
.... patientVisitId 0..1 (Complex) Patient Visit Id
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId"
..... value[x] 1..1 integer Value of extension
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier External ids for this item
... code ?!SΣ 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.

... subject Σ 0..1 Reference(Resource) Identifies the focus of this resource
... created Σ 0..1 date When created
... author Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Basic.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
from the FHIR Standard
Basic.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
from the FHIR Standard
Basic.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Basic.codeexampleBasicResourceTypes
http://hl7.org/fhir/ValueSet/basic-resource-type
from the FHIR Standard

This structure is derived from Basic

Summary

Mandatory: 7 elements(7 nested mandatory elements)
Must-Support: 3 elements
Fixed: 4 elements

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Basic.meta.profile

Differential View

This structure is derived from Basic

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..* Basic Resource for non-supported content
... id S 1..1 id Logical id of this artifact
... meta S 0..1 Meta Metadata about the resource
.... lastUpdated 1..1 instant When the resource version last changed
.... Slices for profile 1..* canonical() Profiles this resource claims to conform to
Slice: Unordered, Open by value:uri
..... profile:Athena Posting Profile 1..1 canonical() Profiles this resource claims to conform to
Fixed Value: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-profile
... Slices for extension Content/Rules for all slices
.... batch 1..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch"
..... value[x] 1..1 integer Value of extension
.... extension:Date 0..1 Extension Extension
.... extension:Amount 1..1 Extension Extension
.... extension:AmountApplied 1..1 Extension Extension
.... extension:InsuranceAmount 0..1 Extension Extension
.... payerName 0..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName"
..... value[x] 1..1 string Value of extension
.... extension:PayerId 0..1 Extension Extension
.... extension:PayerType 0..1 Extension Extension
.... extension:PaymentType 0..1 Extension Extension
.... extension:CheckCardNumber 0..1 Extension Extension
.... extension:CheckDate 0..1 Extension Extension
.... extension:CardTypeMID 0..1 Extension Extension
.... extension:AccountNumber 0..1 Extension Extension
.... extension:MoneyOrderType 0..1 Extension Extension
.... extension:InsuranceReference 0..1 Extension Extension
.... extension:DateOfDeposit 0..1 Extension Extension
.... patientVisitId 0..1 (Complex) Patient Visit Id
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId"
..... value[x] 1..1 integer Value of extension
... code S 1..1 CodeableConcept Kind of Resource
... subject 0..1 Reference(Resource) Identifies the focus of this resource
... created 0..1 date When created
... author 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..* Basic Resource for non-supported content
... id SΣ 1..1 id Logical id of this artifact
... meta SΣ 0..1 Meta Metadata about the resource
.... lastUpdated Σ 1..1 instant When the resource version last changed
.... Slices for profile Σ 1..* canonical() Profiles this resource claims to conform to
Slice: Unordered, Open by value:uri
..... profile:Athena Posting Profile Σ 1..1 canonical() Profiles this resource claims to conform to

Fixed Value: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-profile
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
.... batch 1..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch"
..... value[x] 1..1 integer Value of extension
.... extension:Date 0..1 Extension Extension
.... extension:Amount 1..1 Extension Extension
.... extension:AmountApplied 1..1 Extension Extension
.... extension:InsuranceAmount 0..1 Extension Extension
.... payerName 0..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName"
..... value[x] 1..1 string Value of extension
.... extension:PayerId 0..1 Extension Extension
.... extension:PayerType 0..1 Extension Extension
.... extension:PaymentType 0..1 Extension Extension
.... extension:CheckCardNumber 0..1 Extension Extension
.... extension:CheckDate 0..1 Extension Extension
.... extension:CardTypeMID 0..1 Extension Extension
.... extension:AccountNumber 0..1 Extension Extension
.... extension:MoneyOrderType 0..1 Extension Extension
.... extension:InsuranceReference 0..1 Extension Extension
.... extension:DateOfDeposit 0..1 Extension Extension
.... patientVisitId 0..1 (Complex) Patient Visit Id
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId"
..... value[x] 1..1 integer Value of extension
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier External ids for this item
... code ?!SΣ 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.

... subject Σ 0..1 Reference(Resource) Identifies the focus of this resource
... created Σ 0..1 date When created
... author Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Basic.codeexampleBasicResourceTypes
http://hl7.org/fhir/ValueSet/basic-resource-type
from the FHIR Standard

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Basic 0..* Basic Resource for non-supported content
... id SΣ 1..1 id Logical id of this artifact
... meta SΣ 0..1 Meta Metadata about the resource
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 1..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... Slices for profile Σ 1..* canonical() Profiles this resource claims to conform to
Slice: Unordered, Open by value:uri
..... profile:Athena Posting Profile Σ 1..1 canonical() Profiles this resource claims to conform to

Fixed Value: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-profile
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... batch 1..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-batch"
..... value[x] 1..1 integer Value of extension
.... extension:Date 0..1 Extension Extension
.... extension:Amount 1..1 Extension Extension
.... extension:AmountApplied 1..1 Extension Extension
.... extension:InsuranceAmount 0..1 Extension Extension
.... payerName 0..1 (Complex) Extension
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-payerName"
..... value[x] 1..1 string Value of extension
.... extension:PayerId 0..1 Extension Extension
.... extension:PayerType 0..1 Extension Extension
.... extension:PaymentType 0..1 Extension Extension
.... extension:CheckCardNumber 0..1 Extension Extension
.... extension:CheckDate 0..1 Extension Extension
.... extension:CardTypeMID 0..1 Extension Extension
.... extension:AccountNumber 0..1 Extension Extension
.... extension:MoneyOrderType 0..1 Extension Extension
.... extension:InsuranceReference 0..1 Extension Extension
.... extension:DateOfDeposit 0..1 Extension Extension
.... patientVisitId 0..1 (Complex) Patient Visit Id
URL: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-posting-extension-patientVisitId"
..... value[x] 1..1 integer Value of extension
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier External ids for this item
... code ?!SΣ 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.

... subject Σ 0..1 Reference(Resource) Identifies the focus of this resource
... created Σ 0..1 date When created
... author Σ 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Basic.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
from the FHIR Standard
Basic.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
from the FHIR Standard
Basic.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Basic.codeexampleBasicResourceTypes
http://hl7.org/fhir/ValueSet/basic-resource-type
from the FHIR Standard

This structure is derived from Basic

Summary

Mandatory: 7 elements(7 nested mandatory elements)
Must-Support: 3 elements
Fixed: 4 elements

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Basic.meta.profile

 

Other representations of profile: CSV, Excel, Schematron

Notes:

Supported Interactions

The interactions supported by this resource are listed below.

read

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

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

Where:

parameter Description
[base] Specifies the base URL of the FHIR Server, e.g., https://apsandbox.fhirapi.athenahealth.com/demoAPIServer
[id] Specifies the identifier of the Posting 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.
[_summary] Filters the output to include only summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides slightly improved API response times.
HTTP Response Codes

The following HTTP response codes are returned by this API call:

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.

create

Create operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To create a new Posting resource, an application must perform an HTTP POST, specifying the content of the resource in the body of the request

Post payment to billing account for the patient referenced by patient parameter below.

POST [base]/fhir/r4/$PostPayment?{_format=[json|xml]}

Where:

[_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.
HTTP Response Codes

The following HTTP response codes are returned by above API call:

201 Created The resource was created at the location specified in the HTTP Location header. Note: Unsupported fields will be accepted in a request but will not be persisted to the database. Some fields may be mapped to database specific codes which closely but not perfectly match the input. See the HL7 FHIR specification for more detail on server permitted changes.
400 Bad Request The resource could not be parsed, or failed basic validation rules. The body of the HTTP response will contain an OperationOutcome resource that provide more detail about the reason for the failure.
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.
422 Unprocessable Entity The proposed resource violated server business rules. For example, a required field may be missing or a field may contain a value that is not supported by the API Server. The body of the HTTP response will contain an OperationOutcome resource that provide more detail about the reason for the failure.
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.

delete

Delete operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To remove a Posting resource, an application must perform an HTTP DELETE, specifying the id of the Posting resource to be removed, Patient Visit Id and a TicketNo.

DELETE [base]/fhir/r4/$deletePayment?{_format=[json|xml]}

Where:

[_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.
HTTP Response Codes

The following HTTP response codes are returned by this API call:

200 OK The requested resource is deleted.
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 Parameters

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

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

Where:

Name Description
[base] Specifies the base URL of the FHIR Server, e.g., https://apsandbox.fhirapi.athenahealth.com/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 Posting 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.
[_summary] Filters the output to include only narrative elements (_summary=text), summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides improved API response times, especially when returning larger result sets.
_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 Posting resources have the code value fixed to invoice, which makes it of little value as a search parameter.
batch (token) The payment batch associated with the payment.
created (date) Date the payment was created
created-fromnow (token) Date the payment was created represented as an offset from the current date.
identifier (token) The business identifier of this payment.
patientVisitId (token) The id of this visit associated with this payment.
payer (string) The name of the payer associated with this payment.
subject (reference) The patient associated with this payment.
HTTP Response Codes

The following HTTP response codes are returned by this API call:

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.