Conditional Post

POST {{host}}/fhir/Observation

Request Body

{"resourceType"=>"Observation", "id"=>"{{fhir_observation_id}}", "text"=>{"status"=>"generated", "div"=>"<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: f001</p><p><b>identifier</b>: 6323 (OFFICIAL)</p><p><b>status</b>: final</p><p><b>code</b>: Glucose [Moles/volume] in Blood <span>(Details : {LOINC code '15074-8' = 'Glucose [Moles/volume] in Blood', given as 'Glucose [Moles/volume] in Blood'})</span></p><p><b>subject</b>: <a>P. van de Heuvel</a></p><p><b>effective</b>: 02/04/2013 9:30:10 AM --&gt; (ongoing)</p><p><b>issued</b>: 03/04/2013 3:30:10 PM</p><p><b>performer</b>: <a>A. Langeveld</a></p><p><b>value</b>: 6.3 mmol/l<span> (Details: UCUM code mmol/L = 'mmol/L')</span></p><p><b>interpretation</b>: High <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation code 'H' = 'High', given as 'High'})</span></p><h3>ReferenceRanges</h3><table><tr><td>-</td><td><b>Low</b></td><td><b>High</b></td></tr><tr><td>*</td><td>3.1 mmol/l<span> (Details: UCUM code mmol/L = 'mmol/L')</span></td><td>6.2 mmol/l<span> (Details: UCUM code mmol/L = 'mmol/L')</span></td></tr></table></div>"}, "identifier"=>[{"use"=>"official", "system"=>"http://www.bmc.nl/zorgportal/identifiers/observations", "value"=>"6323"}], "status"=>"final", "code"=>{"coding"=>[{"system"=>"http://loinc.org", "code"=>"10001-6", "display"=>"Glucose [Moles/volume] in Blood"}]}, "subject"=>{"reference"=>"Patient/{{patient_id}}"}, "effectivePeriod"=>{"start"=>"2025-01-02T09:30:10+01:00"}, "issued"=>"2013-04-03T15:30:10+01:00", "performer"=>[{"identifier"=>{"system"=>"http://performer", "value"=>"0009"}, "display"=>"A. Langeveld"}], "valuePeriod"=>{"start"=>"2013-04-02T09:30:10+01:00"}, "interpretation"=>[{"coding"=>[{"system"=>"http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", "code"=>"H", "display"=>"High"}]}], "referenceRange"=>[{"low"=>{"value"=>3.1, "unit"=>"mmol/l", "system"=>"http://unitsofmeasure.org", "code"=>"mmol/L"}, "high"=>{"value"=>6.2, "unit"=>"mmol/l", "system"=>"http://unitsofmeasure.org", "code"=>"mmol/L"}}]}

HEADERS

KeyDatatypeRequiredDescription
content-typestring
If-None-Existstring