14. The doctor schedules a new appointment

POST https://api-{{tenant-id}}.developer.commure.com/api/v1/r4/ServiceRequest/

The practitioner requests a new appointment with the patient. The client application will create a ServiceRequest resource with a reference to the Patient resource in the subject field, a reference to the Pratitioner in the requester field and a reference to the Encounter in the encounter field.

Request Body

{"resourceType"=>"ServiceRequest", "status"=>"active", "intent"=>"original-order", "code"=>{"coding"=>[{"system"=>"http://loinc.org", "code"=>"58410-2", "display"=>"Complete blood count (hemogram) panel - Blood by Automated count"}]}, "subject"=>{"reference"=>"Patient/{{patient-id}}", "display"=>"P. van den Heuvel"}, "encounter"=>{"reference"=>"Encounter/{{encounter-id}}"}, "requester"=>{"reference"=>"Practitioner/{{practitioner-id}}", "display"=>"E.van den Broek"}, "note"=>[{"text"=>"patient almost fainted during procedure"}]}

RESPONSES

status: Created

{"resourceType":"ServiceRequest","id":"e975db61-fce2-4915-99c4-af09cdf8e351","meta":{"extension":[{"extension":[{"url":"clientname","valueString":"dashboard"},{"url":"person","valueReference":{"reference":"Person/bea178a0-6ea4-4b47-99af-e4021bba8f99"}}],"url":"https://commure.com/fhir/provenance/StructureDefinition/creator-structure-map"}],"versionId":"ede967f9-963c-4935-83a8-fd1dd7f4199e","lastUpdated":"2020-11-02T12:25:33.419174+00:00"},"status":"active","intent":"original-order","code":{"coding":[{"system":"http://loinc.org","code":"58410-2","display":"Complete blood count (hemogram) panel - Blood by Automated count"}]},"subject":{"reference":"Patient/1c207762-db80-49db-aff5-4a9b81837d68","display":"P. van den Heuvel"},"encounter":{"reference":"Encounter/c28ea11f-04df-4628-a849-fb91bd2ac581"},"requester":{"reference":"Practitioner/cbe538c4-6784-4903-bad5-bfc3f6a56ce9","display":"E.van den Broek"},"note":[{"text":"patient almost fainted during procedure"}]}