This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Custom Encounter Search #978
Closed
Closed
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,10 @@ The following fields are returned if valued: | |
|
||
## Extensions | ||
|
||
* [Account Related Parts] | ||
* [Account Balance] | ||
* [Account State] | ||
1. [Account Related Parts] | ||
2. [Account Balance] | ||
3. [Account State] | ||
4. [Associated Encounter] | ||
|
||
### Custom Extensions | ||
|
||
|
@@ -57,6 +58,7 @@ All URLs for custom extensions are defined as `https://fhir-ehr.cerner.com/r4/St | |
`account-related-parts` | [`Reference`] | A reference to other related Accounts. | ||
`account-balance` | [`Money`] | Represents the account balance. | ||
`account-state` | [`CodeableConcept`] | The status of the Account within the billing or correspondence workflow. | ||
`associated-encounter` | [`Reference`] | The encounter associated with the resource. | ||
|
||
## Search | ||
|
||
|
@@ -82,16 +84,19 @@ _Implementation Notes_ | |
`type` | See notes | [`token`] | The specific type of account. Example: `financial-account` | ||
`patient` | See notes | [`reference`] | The entity that caused the expenses. Example: `Patient/12345` | ||
`-guarantor` | See notes | [`reference`] | The parties responsible for balancing the account. Example: `6330015-6330017` | ||
`-encounter` | See notes | [`reference`] | The id to identify the encounter. Example: `98028029` | ||
`_count` | no | [`number`] | The maximum number of results to return. Defaults to `10`. | ||
|
||
Notes: | ||
|
||
* You may search via: | ||
* `_id` alone | ||
* `-encounter` and `type` set to 'guarantor-balance' | ||
* `patient`, `identifier`, and `type` set to 'statement' | ||
* `-guarantor` and `type` set to 'financial-account' | ||
* When searching via `identifier`, the system must be 'https://fhir.cerner.com/<EHR source id>/statement-number'. You may not search via `identifier` with a system of 'https://fhir.cerner.com/<EHR source id>/account-number'. | ||
* The `-guarantor` search parameter should contain a reference to a RelatedPerson when set. | ||
* The `-encounter` search parameter should contain a Clinical Encounter Id. | ||
|
||
### Headers | ||
|
||
|
@@ -108,6 +113,24 @@ Notes: | |
<%= headers status: 200 %> | ||
<%= json(:r4_account_search) %> | ||
|
||
#### Request - `_id` | ||
|
||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Account?_id=G71248138 | ||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_account_search_guarantor_id) %> | ||
|
||
#### Request - `-encounter` | ||
|
||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Account??encounter=98028029&type=guarantor-balance | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are 2 question marks after /Account There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_account_search_encounter) %> | ||
|
||
#### Request - `patient`, `identifier`, and `type` | ||
|
||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Account?identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|68002&patient=6330017&type=statement | ||
|
@@ -173,4 +196,5 @@ The common [errors] and [OperationOutcomes] may be returned. | |
[Account Related Parts]: #custom-extensions | ||
[Account Balance]: #custom-extensions | ||
[Account State]: #custom-extensions | ||
[Associated Encounter]: #custom-extensions | ||
[Account.subject]: http://hl7.org/fhir/R4/account-definitions.html#Account.subject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs 1 more space to align with the above lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated here: ff9aada#diff-c95b06a9fe9f63e4cd5352c5f6cb27d71a28bcef3c8d6226c833a912332f4556R87