OVERVIEW:
We are using the R4 API to create Encounters for a patient (or person).
We also use Revenue Cycle as a user interface to create and test these records.
GOAL:
Create an encounter THAT ALSO references a Nurse Unit.
PROBLEM:
Given:
* We have an existing patient
We want to populate the Nurse Unit for this encounter. We don't know how.
We went into Revenue Cycle, found the existing patient, edited an existing encounter, added the Nurse Unit there, used the "GET /encounter" to retrieve that encounter record. We looked at the section that changed. It looked like this:
"location": [
{
"location": {
"reference": "Location/4241126649",
"display": "THE NURSE UNIT"
},
"status": "active"
}
],
Then we pasted that "location" section in the JSON body of the "POST /encounter" request, sent it, and it succeeded (201 Created),
AND we see the newly created encounter in Revenue Cycle
BUT the Nurse Unit is empty and we want it to be set.
Any ideas?