Skip to content

Instantly share code, notes, and snippets.

@KevinMayfield
Created February 23, 2019 08:46
Show Gist options
  • Save KevinMayfield/0714ee1a5785779eb389414d8285d365 to your computer and use it in GitHub Desktop.
Save KevinMayfield/0714ee1a5785779eb389414d8285d365 to your computer and use it in GitHub Desktop.
<GraphDefinition xmlns="http://hl7.org/fhir">
<id value="3"/>
<url value="http://fhir.nhs.uk/fhir/GraphDefinition/ITK-eDischarge-1"/>
<name value="ITK eDischarge Graph Definition"/>
<status value="draft"/>
<date value="2015-08-04T00:00:00+00:00"/>
<publisher value="Kevin Mayfield"/>
<!-- <profile value="https://fhir.nhs.uk/STU3/MessageDefinition/ITK-eDischarge-MessageDefinition-Instance-1"/> -->
<contact>
<telecom>
<system value="url"/>
<value value="http://fhir.nhs.uk"/>
</telecom>
</contact>
<description value="A Graph Definition for eDischarge MessageDefinition https://fhir.nhs.uk/STU3/MessageDefinition/ITK-eDischarge-MessageDefinition-Instance-1"/>
<start value="Bundle"/>
<link>
<path value="Bundle.entry.resource"/>
<min value="1"/>
<max value="1"/>
<description value="Message Header"/>
<target>
<type value="MessageHeader"/>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-MessageHeader-2"/>
<link>
<path value="MessageHeader.receiver.reference"/>
<min value="0"/>
<max value="1"/>
<description value="Intended 'real-world' recipient for the data"/>
<target>
<type value="Practitioner"/>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"/>
</target>
<target>
<type value="Organization"/>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"/>
</target>
</link>
<link>
<path value="MessageHeader.sender.reference"/>
<min value="1"/>
<max value="1"/>
<description value="Real world sender of the message"/>
<target>
<type value="Practitioner"/>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"/>
</target>
<target>
<type value="Organization"/>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"/>
</target>
</link>
</target>
</link>
<link>
<path value="Bundle.entry.resource"/>
<min value="1"/>
<max value="1"/>
<description value="FHIR Document but this also could be payload"/>
<target>
<type value="Bundle"/>
<link>
<path value="Bundle.entry.resource"/>
<min value="1"/>
<max value="1"/>
<description value="FHIR Document but this also could be payload"/>
<target>
<type value="Composition"/>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-EDIS-Composition-1"/>
<link>
<path value="Composition.subject"/>
<min value="1"/>
<max value="1"/>
<description value="Intended 'real-world' recipient for the data"/>
<target>
<type value="Patient"/>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"/>
</target>
</link>
</target>
</link>
</target>
</link>
</GraphDefinition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment