3c. Hypothetical update between history requests

PATCH https://api-{{tenant-id}}.developer.commure.com/api/v1/r4/MedicationRequest/{{medication-request-id}}

We are going to simulate the update of the MedicationRequest resource by external system. The frontend client application updates with the value stat the prority field of the MedicationRequest resource.

Request Body

{"0"=>{"op"=>"add", "path"=>"/priority", "value"=>"stat"}}

RESPONSES

status: OK

{"resourceType":"MedicationDispense","id":"a7a1f2a3-58bc-4c15-8023-392d56725714","meta":{"extension":[{"extension":[{"url":"clientname","valueString":"data_uploader"},{"url":"person","valueReference":{"reference":"Person/bea178a0-6ea4-4b47-99af-e4021bba8f99"}}],"url":"https://commure.com/fhir/provenance/StructureDefinition/creator-structure-map"}],"versionId":"5d8f6937-9b19-4173-b711-dadf676252d2","lastUpdated":"2020-10-23T21:41:11.338344+00:00"},"status":"in-progress","medicationCodeableConcept":{"coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"665078","display":"Loratadine 5 MG Chewable Tablet"}],"text":"Loratadine 5 MG Chewable Tablet"},"subject":{"reference":"patient"},"authorizingPrescription":[{"reference":"MedicationRequest/30d709a4-d497-4480-bbb3-fcea2abcc5f0"}],"whenPrepared":"2019-06-01","dosageInstruction":[{"sequence":1,"text":"Twice Daily.","asNeededBoolean":true}]}