From 5135f9d33ec78d93bf44ef5a2bd3597cee988cf7 Mon Sep 17 00:00:00 2001 From: "WHQ_NT_DOMAIN\\SP071896" Date: Tue, 28 Sep 2021 00:50:04 -0400 Subject: [PATCH 1/3] Intial commot for Soarian Encounter resource --- content/soarian/r4/base.md | 7 +- content/soarian/r4/base/management.md | 8 + .../soarian/r4/base/management/encounter.md | 135 +++++ layouts/soarian/r4/base/management.html | 5 + layouts/soarian/r4/management.html | 5 + layouts/soarian/r4/sidebar.html | 4 +- .../soarian_r4_examples_encounter.rb | 553 ++++++++++++++++++ lib/resources/r4/soarian_encounter.yaml | 73 +++ 8 files changed, 788 insertions(+), 2 deletions(-) create mode 100644 content/soarian/r4/base/management.md create mode 100644 content/soarian/r4/base/management/encounter.md create mode 100644 layouts/soarian/r4/base/management.html create mode 100644 layouts/soarian/r4/management.html create mode 100644 lib/resources/example_json/soarian_r4_examples_encounter.rb create mode 100644 lib/resources/r4/soarian_encounter.yaml diff --git a/content/soarian/r4/base.md b/content/soarian/r4/base.md index 3ca4d227a..979f102e1 100644 --- a/content/soarian/r4/base.md +++ b/content/soarian/r4/base.md @@ -8,4 +8,9 @@ layout: api ## Individuals <%= render '/soarian/r4/base/individuals.*' %> -* [Patient](/soarian/r4/base/individuals/patient) \ No newline at end of file +* [Patient](/soarian/r4/base/individuals/patient) + +## Management +<%= render '/soarian/r4/base/management.*' %> + +* [Encounter](/soarian/r4/base/management/encounter) diff --git a/content/soarian/r4/base/management.md b/content/soarian/r4/base/management.md new file mode 100644 index 000000000..4a15e7399 --- /dev/null +++ b/content/soarian/r4/base/management.md @@ -0,0 +1,8 @@ +--- +title: Encounters | R4 API +layout: api +--- + +<%= render '/soarian/r4/base/management.*' %> + +* [Encounter](/soarian/r4/base/management/encounter) \ No newline at end of file diff --git a/content/soarian/r4/base/management/encounter.md b/content/soarian/r4/base/management/encounter.md new file mode 100644 index 000000000..0b45fcd1a --- /dev/null +++ b/content/soarian/r4/base/management/encounter.md @@ -0,0 +1,135 @@ +--- +title: Encounter | R4 API +--- + +# Encounter + +* TOC +{:toc} + +## Overview + +The Encounter resource provides admissions or visits during which health care services were provided to a patient. An encounter has a class to distinguish between different health care settings such as inpatient, outpatient, emergency and so on. + +Soarian Clinicals® supports a read-only Application Programming Interface (API). This API accepts`GET` and `POST` based [search](https://www.hl7.org/fhir/http.html#search) interactions. The response represents the most current information about the patient that is charted in Soarian Clinicals® at the time of the query. + +The search results include the following fields if they contain values: + +* [Encounter id](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.id){:target="_blank"} +* [Encounter identifier](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.identifier){:target="_blank"} +* [Status](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.status){:target="_blank"} +* [Class](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.class){:target="_blank"} +* [Type](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.type){:target="_blank"} +* [Subject(Patient only)](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.subject){:target="_blank"} +* [Participant:](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.participant){:target="_blank"} + * [Type](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.participant.type){:target="_blank"} + * [Start/end time of the participation](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.participant.period){:target="_blank"} + * [Individual](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.participant.individual){:target="_blank"} +* [Start/end time of the encounter](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.period){:target="_blank"} +* [Reason for visit](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.reasonCode){:target="_blank"} +* [Hospitalization:](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.hospitalization){:target="_blank"} + * [Discharge disposition](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.hospitalization.dischargeDisposition){:target="_blank"} +* [Location:](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location){:target="_blank"} + * [Location name](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location.location){:target="_blank"} + * [Location status](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location.status){:target="_blank"} + * [Location telecom](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location.telecom){:target="_blank"} + * [Location address](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location.address){:target="_blank"} + * [Location managing organization](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location.managingOrganization){:target="_blank"} + + +## Terminology Bindings + +<%= terminology_table(:soarian_encounter, :r4) %> + +## Search + +Search for Encounter resources that meet the specified query parameters: + + GET /Encounter?:parameters + +_Implementation Notes_ + +* [Encounter.location.location](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location.location) is always returned as a reference to a [contained](https://hl7.org/fhir/r4/references.html#contained) Location resource . + +### Authorization Types + +<%= authorization_types(provider: true, patient: true)%> + +### Parameters + + Name | Required? | Type | Description +---------------|----------------------------------------|---------------------------------------------------------------| + `_id` | This, or `patient` | [`token`](http://hl7.org/fhir/R4/search.html#token) | The logical resource ID associated with the resource + `patient` | This, or `_id` | [`reference`](http://hl7.org/fhir/R4/search.html#reference) | The patient who has the encounter. + `date` | No | [`date`](http://hl7.org/fhir/R4/search.html#date) | Date range into which the encounter falls. Example: `date=gt2014-09-24 or date=lt2015-09-24T12:00:00.000Z` + `_revinclude` | No | [`_revinclude`](http://hl7.org/fhir/R4/search.html#revinclude)| A request to include any Provenance resource in the bundle that refers to an Encounter resource in the search results. Only supported with Provenance. + + Notes + +* The `date` parameter may be provided up to two times, and must use the `eq`, `ge`, `gt`, `le`, or `lt` prefixes. When a value is provided without a prefix, an implied `eq` prefix is used. When provided twice, the lower value must have a `ge` or `gt` prefix and the higher value must have an `le` or `lt` prefix. + + +### Headers + +<%= headers fhir_json: true %> + +### Example Search by Patient + +#### Request + + GET https://fhir-myrecord-sc.cerner.com/r4/0e885770-571b-4c0c-b30f-21df9a058d0d/Encounter?patient=A879904FD2FE4B2D90C89FDA84E1285F + +#### Response + +<%= headers status: 200 %> +<%= json(:SOARIAN_R4_ENCOUNTER_SEARCH_BY_PT_ENTRY) %> + +Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site. + +### Example Search by ID + +#### Request + + GET https://fhir-myrecord-sc.cerner.com/r4/0e885770-571b-4c0c-b30f-21df9a058d0d/Encounter?_id=A879904FD2FE4B2D90C89FDA84E1285F.29019 + +#### Response + +<%= headers status: 200 %> +<%= json(:SOARIAN_R4_ENCOUNTER_SEARCH_BY_ID_ENTRY) %> + +Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site. + +### Errors + +The common [errors](#errors) and [OperationOutcomes](https://www.hl7.org/fhir/r4/operationoutcome.html) may be returned. + +## Retrieve by ID + +List an individual Encounter resource by its ID: + + GET /Encounter/:id + +_Implementation Notes_ + +* [Encounter.location.location](https://hl7.org/fhir/r4/encounter-definitions.html#Encounter.location.location) is always returned as a reference to a [contained](https://hl7.org/fhir/r4/references.html#contained) Location resource. + +## Authorization Types + +<%= authorization_types(provider: true, patient: true)%> + +### Headers + +<%= headers fhir_json: true %> + +### Example + +#### Request + + GET https://fhir-myrecord-sc.cerner.com/r4/0e885770-571b-4c0c-b30f-21df9a058d0d/Encounter/A879904FD2FE4B2D90C89FDA84E1285F.29019 + +#### Response + +<%= headers status: 200 %> +<%= json(:SOARIAN_R4_ENCOUNTER_READ_BY_ID) %> + +Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site. diff --git a/layouts/soarian/r4/base/management.html b/layouts/soarian/r4/base/management.html new file mode 100644 index 000000000..0b0c51d9c --- /dev/null +++ b/layouts/soarian/r4/base/management.html @@ -0,0 +1,5 @@ +

Encounters

+ +

The Encounters resources are used to manage the lifecycle of patient encounters within the healthcare setting.

+ +

Implemented Resources

\ No newline at end of file diff --git a/layouts/soarian/r4/management.html b/layouts/soarian/r4/management.html new file mode 100644 index 000000000..0b0c51d9c --- /dev/null +++ b/layouts/soarian/r4/management.html @@ -0,0 +1,5 @@ +

Encounters

+ +

The Encounters resources are used to manage the lifecycle of patient encounters within the healthcare setting.

+ +

Implemented Resources

\ No newline at end of file diff --git a/layouts/soarian/r4/sidebar.html b/layouts/soarian/r4/sidebar.html index fa276e50e..6522ca371 100644 --- a/layouts/soarian/r4/sidebar.html +++ b/layouts/soarian/r4/sidebar.html @@ -16,7 +16,9 @@

  • Individuals
  • Patient
  • - +
  • Management
  • +
  • Encounter
  • +