MessageHeader
POST {{host}}/fhir/MessageHeader
Request Body
{"resourceType"=>"MessageHeader", "id"=>"{{fhir_message_header_id}}", "text"=>{"status"=>"generated", "div"=>"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>Update Person resource for Peter James CHALMERS (Jim), MRN: 12345 (Acme Healthcare)</p>\n </div>"}, "eventCoding"=>{"system"=>"http://example.org/fhir/message-events", "code"=>"admin-notify"}, "destination"=>[{"name"=>"Acme Message Gateway", "target"=>{"reference"=>"Device/{{fhir_device_id}}"}, "endpoint"=>"llp:10.11.12.14:5432", "receiver"=>{"reference"=>"Practitioner/{{fhir_practitioner_id}}"}}], "sender"=>{"reference"=>"Practitioner/{{fhir_practitioner_id}}"}, "enterer"=>{"reference"=>"Practitioner/{{fhir_practitioner_id}}"}, "author"=>{"reference"=>"Practitioner/{{fhir_practitioner_id}}"}, "responsible"=>{"reference"=>"Practitioner/{{fhir_practitioner_id}}"}, "source"=>{"name"=>"Acme Central Patient Registry", "software"=>"FooBar Patient Manager", "version"=>"3.1.45.AABB", "contact"=>{"system"=>"phone", "value"=>"+1 (555) 123 4567"}, "endpoint"=>"llp:10.11.12.13:5432"}, "reason"=>{"coding"=>[{"system"=>"http://terminology.hl7.org/CodeSystem/message-reasons-encounter", "code"=>"admit"}]}, "response"=>{"identifier"=>"5015fe84-8e76-4526-89d8-44b322e8d4fb", "code"=>"ok"}, "focus"=>[{"reference"=>"Patient/{{fhir_patient_id}}"}], "definition"=>"http:////acme.com/ehr/fhir/messagedefinition/patientrequest"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
content-type | string | ||
prefer | string |