DocumentReference

POST {{host}}/fhir/DocumentReference

Request Body

{"resourceType"=>"DocumentReference", "id"=>"{{fhir_document_reference_id}}", "meta"=>{"lastUpdated"=>"2013-07-01T13:11:33Z"}, "text"=>{"status"=>"generated", "div"=>"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n\t\t\t\t\t\t<a href=\"http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32\">Document: urn:oid:129.6.58.92.88336</a>undefined, created 24/12/2005\n\t\t\t\t\t</div>"}, "masterIdentifier"=>{"system"=>"urn:ietf:rfc:3986", "value"=>"urn:oid:129.6.58.92.88336"}, "status"=>"current", "type"=>{"coding"=>[{"system"=>"http://ihe.net/connectathon/classCodes", "code"=>"History and Physical", "display"=>"History and Physical"}]}, "category"=>[{"coding"=>[{"system"=>"http://loinc.org", "code"=>"47039-3", "display"=>"Inpatient Admission history and physical note"}]}], "subject"=>{"reference"=>"Patient/{{patient_id}}"}, "date"=>"2013-07-01T23:11:33+10:00", "author"=>[{"reference"=>"Practitioner/{{fhir_practitioner_id}}"}, {"reference"=>"Practitioner/{{fhir_practitioner_id}}"}], "description"=>"Physical", "securityLabel"=>[{"coding"=>[{"system"=>"http://terminology.hl7.org/CodeSystem/v3-Confidentiality", "code"=>"N", "display"=>"normal"}]}], "content"=>[{"attachment"=>{"contentType"=>"text/plain", "language"=>"en-US", "url"=>"http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32", "title"=>"Physical", "creation"=>"2005-12-24"}, "format"=>{"system"=>"urn:oid:1.3.6.1.4.1.19376.1.2.3", "code"=>"urn:ihe:pcc:handp:2008"}}], "context"=>{"period"=>{"start"=>"2004-12-23T08:00:00+10:00", "end"=>"2004-12-23T08:01:00+10:00"}, "practiceSetting"=>{"coding"=>[{"system"=>"http://ihe.net/connectathon/practiceSettingCodes", "code"=>"General Medicine", "display"=>"General Medicine"}]}}}

HEADERS

KeyDatatypeRequiredDescription
content-typestring
x-consumer-idstring