Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KevinMayfield/1168a66e86d1326fae877a2751da8bed to your computer and use it in GitHub Desktop.
Save KevinMayfield/1168a66e86d1326fae877a2751da8bed to your computer and use it in GitHub Desktop.
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>
<system value="http://snomed.info/sct"/>
<code value="310063007"/>
<display value="Obstetrics service i.e. MAIN_SPECIALTY=500"/>
</coding>
</type>
<patient>
<reference value="Patient/1"/>
<display value="Miss Kanfeld"/>
</patient>
<managingOrganization>
<reference value="Organization/3"/>
<display value="Derby Teaching Hospitals"/>
</managingOrganization>
<period>
<start value="2008-03-19T00:00:00+00:00"/>
<end value="2008-03-24T00:00:00+00:00"/>
</period>
</EpisodeOfCare>
Following on from that episode, child health would begin an child health episode with the child.
This would be left open until the child reaches 16?
<EpisodeOfCare xmlns="http://hl7.org/fhir">
<status value="active"/>
<type>
<coding>
<system value="http://snomed.info/sct"/>
<code value="724441000000105"/>
<display value="Child Health i.e. MAIN_SPECIALTY=420"/>
</coding>
</type>
<patient>
<reference value="Patient/1"/>
<display value="Miss Kanfeld"/>
</patient>
<managingOrganization>
<reference value="Organization/2"/>
<display value="Derbyshire Community Health"/>
</managingOrganization>
<period>
<start value="2008-03-22T00:00:00+00:00"/>
</period>
</EpisodeOfCare>
Lastly the GP specialty representation. This includes an extension for Branch site.
This is also open ended and represents ongoing relationship with the Practice
<EpisodeOfCare xmlns="http://hl7.org/fhir">
<extension url="https://fhir.hl7.org.uk/CareConnect-GPC-Location-1">
<valueReference>
<reference value="Location/1"/>
<display value="Wilsthorpe Branch Site"/>
</valueReference>
</extension>
<status value="active"/>
<type>
<coding>
<system value="http://snomed.info/sct"/>
<code value="394814009"/>
<display value="General practice (specialty) i.e. MAIN_SPECIALTY=100"/>
</coding>
</type>
<patient>
<reference value="Patient/1"/>
<display value="Miss Kanfeld"/>
</patient>
<managingOrganization>
<reference value="Organization/1"/>
<display value="Moir Surgery"/>
</managingOrganization>
<period>
<start value="2008-03-19T00:00:00+00:00"/>
</period>
<careManager>
<reference value="Practitioner/1"/>
<display value="Dr Bhatia"/>
</careManager>
</EpisodeOfCare>
@DaveBarnet
Copy link

Kevin, you've used the same patient in all 3 examples . Example 1 is supposed to be about the mother, Example 2 about the child and Example also about the child (?) - so using different patient references might help the understanding of the overall example.

@KevinMayfield
Copy link
Author

View first example as child has been born - specialty may be wrong but they would exist on the Acute PAS.

@KevinMayfield
Copy link
Author

If easier I could replace with a cardiology or emergency specialty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment