Skip to content

Instantly share code, notes, and snippets.

View KevinMayfield's full-sized avatar

Kevin Mayfield KevinMayfield

  • Leeds, West Riding, UK
View GitHub Profile
<Bundle xmlns="http://hl7.org/fhir">
<type value="message"/>
<entry>
<resource>
<MessageHeader xmlns="http://hl7.org/fhir">
<timestamp value="2017-08-04T13:55:50.374+01:00"/>
<event>
<system value="https://fhir.uhs.nhs.uk/message-event-type"/>
<code value="task-completed"/>
</event>
<OrderResponse xmlns="http://hl7.org/fhir">
<id value="56444"/>
<meta>
<versionId value="18"/>
<lastUpdated value="2017-08-07T07:24:09.673-04:00"/>
</meta>
<contained>
<Order xmlns="http://hl7.org/fhir">
<id value="order"/>
<meta>
{
"resourceType": "CapabilityStatement",
"status": "active",
"date": "2017-10-06T13:10:51+01:00",
"publisher": "Not provided",
"kind": "instance",
"software": {
"name": "HAPI FHIR Server",
"version": "3.0.0"
},
<CapabilityStatement xmlns="http://hl7.org/fhir">
<status value="active"/>
<date value="2017-10-06T13:10:51+01:00"/>
<publisher value="Not provided"/>
<kind value="instance"/>
<software>
<name value="HAPI FHIR Server"/>
<version value="3.0.0"/>
</software>
<fhirVersion value="3.0.1"/>
{
"resourceType": "Observation",
"id": "10",
"meta": {
"lastUpdated": "2017-10-06T16:36:29.337+01:00",
"profile": [
"https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1"
]
},
"status": "final",
{
"resourceType": "Observation",
"id": "10",
"meta": {
"lastUpdated": "2017-10-06T16:36:29.337+01:00",
"profile": [
"https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1"
]
},
"status": "final",
{
"resourceType":"Observation",
"meta":{
"versionId":"1",
"lastUpdated":"2016-03-19T19:48:22Z"
},
"text":{
"status":"generated",
"div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">Tobacco smoking status: Current some day smoker</div>"
},
<Bundle xmlns="http://hl7.org/fhir">
<id value="6aa35a88-ad86-481d-ac3e-79eb8b1f82a3"/>
<meta>
<lastUpdated value="2017-10-18T10:02:31.902+00:00"/>
</meta>
<type value="searchset"/>
<total value="1"/>
<link>
<relation value="self"/>
<url value="http://purple.testlab.nhs.uk/careconnect-ri/STU3/PractitionerRole?_format=xml&amp;_pretty=true&amp;practitioner=1"/>
This is indicative of how acute would represent their relationship with a Patient. It does relate 1:1 with HL7v2 messaging (PV1 segment)
This is a maternity episode when the child was born and represents an episode over 5 days.
Have not included Diagnosis/Condition but this would be applicable here.
This would be used for Inpatient and Outpatients (and Emergency if part of the PAS/EPR system),
other parts of the HL7v2 PV1 segment would be covered by FHIR Encounter such as admission, discharge, etc
<EpisodeOfCare xmlns="http://hl7.org/fhir">
<status value="finished"/>
<type>
<coding>
<Observation xmlns="http://hl7.org/fhir">
<id value="178200"/>
<meta>
<lastUpdated value="2017-11-03T12:37:46.920+00:00"/>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1"/>
</meta>
<status value="final"/>
<category>
<coding>
<system value="http://hl7.org/fhir/observation-category"/>