This Encounter profile is part of the set of resource profiles supported by the API Server used with the athenaPractice 12.3 and athenaFlow 9.12 products. It further describes read and search capabilities of these products. Note: The create and update operations are NOT supported for this resource.
This is the recorded interaction between a patient and a healthcare provider for the purpose of receiving healthcare services or a health assessment.
This profile is used to define the content that will be returned by the API Server in response to requests to access Encounter 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.
Each physician interaction with a patient in athenaPractice or athenaFlow results in a chart document, thus the Encounter resource is derived from the DOCUMENT table in athenaPractice and athenaFlow. Specific detail can be found in the Mappings section in the profile detail page.
The operations supported by this resource are listed below.
Read operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To read a Encounter, an application shall perform an HTTP GET, specifying the identifier of the resources being retrieved.
GET [base]/fhir/Encounter/[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 Encounter 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. |
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 are executed as specified in the HL7 FHIR RESTful API implementation definition. To search for Encounter resources, an application shall perform an HTTP GET, specifying the query parameters associated with the resource.
GET [base]/fhir/Encounter?{search-parameters}{&_count=[max-results]&_format=[json|xml]&_summary=[true|text|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 Encounter 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 ) | |
_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 ) | |
appointment (reference ) | The appointment that scheduled this encounter |
condition (reference ) | Reason the encounter takes place (resource) |
date (date ) | A date within the period the Encounter lasted |
date-fromnow (quantity ) | Like date except expressed as a positive or negative offset from the current time in units of time , e.g. date-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. |
identifier (token ) | Identifier(s) by which this encounter is known |
indication (reference ) | Reason the encounter takes place (resource) |
location (reference ) | Location the encounter takes place |
patient (reference ) | The patient present at the encounter |
reason (token ) | Reason the encounter takes place (code) |
status (token ) | planned | arrived | in-progress | onleave | finished | cancelled |
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/encounter-profile
An interaction during which services are provided to the patient
Name | Flags | Card. | Type | Description & Constraints | |
---|---|---|---|---|---|
Encounter | 0..* | Encounter | An interaction during which services are provided to the patient | ||
meta | ∑ | 0..1 | Meta | Metadata about the resource | |
implicitRules | ?! ∑ | 0..1 | uri | A set of rules under which this content was created | |
language | 0..1 | code | Language of the resource content Binding: IETF BCP-47 (required ) | ||
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation | |
contained | 0..* | Resource | Contained, inline Resources | ||
extension | 0..1 | ?? [UriType[http://hl7.org/fhir/StructureDefinition/encounter-summary]] | Extensionhttp://hl7.org/fhir/StructureDefinition/encounter-summary | ||
extension | 0..* | Extension | Additional Content defined by implementations | ||
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/encounter-summary" | ||
valueString | 1..1 | string | Value of extension | ||
extension | 0..1 | ?? [UriType[http://hl7.org/fhir/StructureDefinition/encounter-description]] | Extensionhttp://hl7.org/fhir/StructureDefinition/encounter-description | ||
extension | 0..* | Extension | Additional Content defined by implementations | ||
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/encounter-description" | ||
valueString | 1..1 | string | Value of extension | ||
extension | 0..1 | ?? [UriType[http://hl7.org/fhir/StructureDefinition/encounter-authenticator]] | Extensionhttp://hl7.org/fhir/StructureDefinition/encounter-authenticator | ||
extension | 0..* | Extension | Additional Content defined by implementations | ||
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/encounter-authenticator" | ||
valueReference | 1..1 | Reference (Practitioner ) | Value of extension | ||
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | |
identifier | S ∑ | 0..* | Identifier | Identifier(s) by which this encounter is known | |
status | ?! S∑ | 1..1 | code | planned | arrived | in-progress | onleave | finished | cancelled Binding: EncounterState (required ) | |
statusHistory | 0..* | BackboneElement | List of past encounter statuses | ||
extension | 0..* | Extension | Additional Content defined by implementations | ||
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | |
status | 1..1 | code | planned | arrived | in-progress | onleave | finished | cancelled Binding: EncounterState (required ) | ||
period | 1..1 | Period | The time that the episode was in the specified status | ||
class | S ∑ | 0..1 | code | inpatient | outpatient | ambulatory | emergency + Binding: EncounterClass (required ) | |
type | S ∑ | 0..* | CodeableConcept | Specific type of encounter Binding: EncounterType (example ) | |
priority | 0..1 | CodeableConcept | Indicates the urgency of the encounter Binding: Encounter Priority (example ) | ||
patient | S ∑ | 0..1 | Reference (Patient ) | The patient present at the encounter | |
episodeOfCare | ∑ | 0..* | Reference (EpisodeOfCare ) | Episode(s) of care that this encounter should be recorded against | |
incomingReferral | 0..* | Reference (ReferralRequest ) | The ReferralRequest that initiated this encounter | ||
participant | ∑ | 0..* | BackboneElement | List of participants involved in the encounter | |
extension | 0..* | Extension | Additional Content defined by implementations | ||
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | |
type | ∑ | 0..* | CodeableConcept | Role of participant in encounter Binding: ParticipantType (extensible ) | |
period | 0..1 | Period | Period of time during the encounter participant was present | ||
individual | ∑ | 0..1 | Reference (Practitioner | RelatedPerson ) | Persons involved in the encounter other than the patient | |
appointment | ∑ | 0..1 | Reference (Appointment ) | The appointment that scheduled this encounter | |
period | 0..1 | Period | The start and end time of the encounter | ||
length | ∑ I | 0..1 | Duration | Quantity of time the encounter lasted (less time absent) qty-3: If a code for the unit is present, the system SHALL also be present drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. | |
reason | ∑ | 0..* | CodeableConcept | Reason the encounter takes place (code) Binding: Encounter Reason Codes (example ) | |
indication | 0..* | Reference (Condition | Procedure ) | Reason the encounter takes place (resource) | ||
hospitalization | 0..1 | BackboneElement | Details about the admission to a healthcare service | ||
extension | 0..* | Extension | Additional Content defined by implementations | ||
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | |
preAdmissionIdentifier | 0..1 | Identifier | Pre-admission identifier | ||
origin | 0..1 | Reference (Location ) | The location from which the patient came before admission | ||
admitSource | 0..1 | CodeableConcept | From where patient was admitted (physician referral, transfer) Binding: AdmitSource (preferred ) | ||
admittingDiagnosis | 0..* | Reference (Condition ) | The admitting diagnosis as reported by admitting practitioner | ||
reAdmission | 0..1 | CodeableConcept | The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission Binding: (unbound) (example ) | ||
dietPreference | 0..* | CodeableConcept | Diet preferences reported by the patient Binding: Diet (example ) | ||
specialCourtesy | 0..* | CodeableConcept | Special courtesies (VIP, board member) Binding: SpecialCourtesy (preferred ) | ||
specialArrangement | 0..* | CodeableConcept | Wheelchair, translator, stretcher, etc. Binding: SpecialArrangements (preferred ) | ||
destination | 0..1 | Reference (Location ) | Location to which the patient is discharged | ||
dischargeDisposition | 0..1 | CodeableConcept | Category or kind of location after discharge Binding: DischargeDisposition (preferred ) | ||
dischargeDiagnosis | 0..* | Reference (Condition ) | The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete | ||
location | 0..* | BackboneElement | List of locations where the patient has been | ||
extension | 0..* | Extension | Additional Content defined by implementations | ||
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | |
location | 1..1 | Reference (Location ) | Location the encounter takes place | ||
status | 0..1 | code | planned | active | reserved | completed Binding: EncounterLocationStatus (required ) | ||
period | 0..1 | Period | Time period during which the patient was present at the location | ||
serviceProvider | 0..1 | Reference (Organization ) | The custodian organization of this Encounter record | ||
partOf | 0..1 | Reference (Encounter ) | Another Encounter this encounter is part of | ||
The mappings in this section represent the how data stored within athenaPractice is served through the product's APIs. athenaPractice and athenaFlow share a common schema for patient clinical data and only one is shown when these are the same. Use of this information is subject to the API Server Terms and Conditions .
Encounter Profile | ||
Encounter | Encounter-Profile | FHIR_ENCOUNTERVIEW |
├ id | MakeId(%ID%) | |
├ extension | SUMMARY | |
│ └ valueString | %SUMMARY% | |
├ extension | DESCRIPTION | |
│ └ valueString | %DESCRIPTION% | |
├ extension | AUNTHENTICATOR | |
│ └ valueReference | MakeReference("USR",%PUBUSER%,"Practitioner") | |
├ identifier | MakeIdentifier("RI",getSiteSystem("EncounterId"),%VID%) | |
├ status | MapCode(%STATUS%,"ENCOUNTERSTATUS") | |
├ type | MakeConcept(%TYPE%,"http://hl7.org/fhir/ValueSet/encounter-type", %DESCRIPTION%) | |
├ priority | MapConcept(%PRIORITY%,"ENCOUNTERPRIORITY") | |
├ patient | MakeReference("PATIENTPROFILE",%PID%,"Patient") | |
├ participant | MakeEncounterParticipantList("USR",%PARTICIPANTS%,"Practitioner") | |
├ appointment | MakeReference("APPOINTMENTS",%APPTID%,"Appointment") | |
├ period | MakeEMRPeriod(%STARTDATE%) | |
├ reason | MakeTextConcept(%REASON%) | |
└ indication | MakeReferenceList("PROBLEM",%PROBLEMID%,"Condition") | |
└ location | MakeReference("LOCREG",%DOCLOCATIONID%,"Location") |
The mappings in this section represent the how data stored within athenaFlow is served through the product's APIs. Use of this information is subject to the API Server Terms and Conditions .
Encounter Profile | ||
Encounter | Encounter-Profile | FHIR_ENCOUNTERVIEW |
├ id | MakeId(%ID%) | |
├ extension | SUMMARY | |
│ └ valueString | %SUMMARY% | |
├ extension | DESCRIPTION | |
│ └ valueString | %DESCRIPTION% | |
├ extension | AUNTHENTICATOR | |
│ └ valueReference | MakeReference("USR",%PUBUSER%,"Practitioner") | |
├ identifier | MakeIdentifier("RI",getSiteSystem("EncounterId"),%VID%) | |
├ status | MapCode(%STATUS%,"ENCOUNTERSTATUS") | |
├ type | MakeConcept(%TYPE%,"http://hl7.org/fhir/ValueSet/encounter-type", %DESCRIPTION%) | |
├ priority | MapConcept(%PRIORITY%,"ENCOUNTERPRIORITY") | |
├ patient | MakeReference("PERSON",%PID%,"Patient") | |
├ participant | MakeEncounterParticipantList("USR",%PARTICIPANTS%,"Practitioner") | |
├ appointment | MakeReference("APPT",%APPTID%,"Appointment") | |
├ period | MakeEMRPeriod(%STARTDATE%) | |
├ reason | MakeTextConcept(%REASON%) | |
└ indication | MakeReferenceList("PROBLEM",%PROBLEMID%,"Condition") | |
└ location | MakeReference("LOCREG",%DOCLOCATIONID%,"Location") |