15. The doctor writes a medication order
POST https://api-{{tenant-id}}.developer.commure.com/api/v1/r4/MedicationRequest/
The pratitioner requests a new medication for the patient. The client application will create a MedicationRequest
resource with a reference to the Patient
resource in the subject
field and a reference to the Pratitioner
in the requester
field.
Request Body
{"resourceType"=>"MedicationRequest", "identifier"=>[{"system"=>"wtv", "value"=>"medication-request-id"}], "status"=>"active", "intent"=>"order", "medicationCodeableConcept"=>{"coding"=>[{"system"=>"http://www.nlm.nih.gov/research/umls/rxnorm", "code"=>"861467", "display"=>"Loratadine 5 MG Chewable Tablet"}], "text"=>"Loratadine 5 MG Chewable Tablet"}, "requester"=>{"reference"=>"Practitioner/{{practitioner-id}}"}, "subject"=>{"reference"=>"Patient/{{patient-id}}"}, "authoredOn"=>"2015-04-08T02:11:28-04:00", "dosageInstruction"=>[{"sequence"=>1, "timing"=>{"repeat"=>{"frequency"=>1, "period"=>4, "periodUnit"=>"h"}}, "asNeededBoolean"=>false, "doseAndRate"=>[{"type"=>{"coding"=>[{"system"=>"http://terminology.hl7.org/CodeSystem/dose-rate-type", "code"=>"ordered", "display"=>"Ordered"}]}, "doseQuantity"=>{"value"=>1}}]}]}
RESPONSES
status: Created
{"resourceType":"MedicationRequest","id":"c87a94d2-f603-4ff7-b2ac-1e267c9051a2","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":"069e3112-d11d-4f69-a0b6-55d71d35f18a","lastUpdated":"2020-11-02T12:26:00.674878+00:00"},"identifier":[{"system":"wtv","value":"medication-request-id"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"861467","display":"Loratadine 5 MG Chewable Tablet"}],"text":"Loratadine 5 MG Chewable Tablet"},"subject":{"reference":"Patient/1c207762-db80-49db-aff5-4a9b81837d68"},"authoredOn":"2015-04-08T02:11:28-04:00","requester":{"reference":"Practitioner/cbe538c4-6784-4903-bad5-bfc3f6a56ce9"},"dosageInstruction":[{"sequence":1,"timing":{"repeat":{"frequency":1,"period":4,"periodUnit":"h"}},"asNeededBoolean":false,"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1}}]}]}