SupplyRequest
POST {{host}}/fhir/SupplyRequest
Request Body
{"resourceType"=>"SupplyRequest", "id"=>"{{supply_request_id}}", "text"=>{"status"=>"generated", "div"=>"<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource "simpleorder" </p></div><p><b>identifier</b>: id: Order10284</p><p><b>status</b>: active</p><p><b>category</b>: Central Stock Resupply <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ([not stated]#central)</span></p><p><b>priority</b>: asap</p><p><b>item</b>: Blood collect tubes blue cap <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ([not stated]#BlueTubes)</span></p><p><b>quantity</b>: 10</p><p><b>occurrence</b>: 2016-12-31</p><p><b>authoredOn</b>: 2016-12-31</p><p><b>requester</b>: <span>: Henry Seven</span></p><p><b>supplier</b>: <span>: Vendor1</span></p><p><b>reasonCode</b>: Refill due to low stock <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ([not stated]#stock_low)</span></p><p><b>deliverFrom</b>: <span>: Location 1</span></p><p><b>deliverTo</b>: <span>: GoodHealth Clinic Receiving</span></p></div>"}, "identifier"=>[{"value"=>"Order10284"}], "status"=>"active", "category"=>{"coding"=>[{"code"=>"central", "display"=>"Central Stock Resupply"}]}, "priority"=>"asap", "itemCodeableConcept"=>{"coding"=>[{"code"=>"BlueTubes", "display"=>"Blood collect tubes blue cap"}]}, "quantity"=>{"value"=>10}, "occurrenceDateTime"=>"2016-12-31", "authoredOn"=>"2016-12-31", "requester"=>{"display"=>"Henry Seven"}, "supplier"=>[{"display"=>"Vendor1"}], "reasonCode"=>[{"coding"=>[{"code"=>"stock_low", "display"=>"Refill due to low stock"}]}], "deliverFrom"=>{"display"=>"Location 1"}, "deliverTo"=>{"reference"=>"Patient/{{patient_id}}"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
content-type | string | ||
x-consumer-id | string |