Skip to content

Instantly share code, notes, and snippets.

@jdjkelly
Created October 6, 2025 02:40
Show Gist options
  • Save jdjkelly/e40fb207c3a807792c97e1bfa73abb1b to your computer and use it in GitHub Desktop.
Save jdjkelly/e40fb207c3a807792c97e1bfa73abb1b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<realmCode code="US"/>
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>
<templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01"/>
<id root="2.16.840.1.113883.19.5.99999.1" extension="TEST-DOC-001"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<title>Continuity of Care Document - Test Patient</title>
<effectiveTime value="20241005120000-0500"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<languageCode code="en-US"/>
<recordTarget>
<patientRole>
<id root="2.16.840.1.113883.19.5.99999.2" extension="TEST-PAT-001"/>
<addr use="HP">
<streetAddressLine>123 Test Street</streetAddressLine>
<city>Boston</city>
<state>MA</state>
<postalCode>02101</postalCode>
<country>US</country>
</addr>
<telecom value="tel:+1(617)555-0100" use="HP"/>
<telecom value="mailto:[email protected]" use="HP"/>
<patient>
<name use="L">
<given>Jane</given>
<family>Doe</family>
</name>
<administrativeGenderCode code="F" codeSystem="2.16.840.1.113883.5.1" displayName="Female"/>
<birthTime value="19850315"/>
</patient>
</patientRole>
</recordTarget>
<author>
<time value="20241005120000-0500"/>
<assignedAuthor>
<id root="2.16.840.1.113883.19.5.99999.3" extension="TEST-DOC-001"/>
<addr>
<streetAddressLine>456 Hospital Ave</streetAddressLine>
<city>Boston</city>
<state>MA</state>
<postalCode>02115</postalCode>
</addr>
<telecom value="tel:+1(617)555-0200" use="WP"/>
<assignedPerson>
<name>
<prefix>Dr.</prefix>
<given>John</given>
<family>Smith</family>
</name>
</assignedPerson>
</assignedAuthor>
</author>
<custodian>
<assignedCustodian>
<representedCustodianOrganization>
<id root="2.16.840.1.113883.19.5.99999.4"/>
<name>Flexpa Test Medical Center</name>
<telecom value="tel:+1(617)555-0300" use="WP"/>
<addr>
<streetAddressLine>789 Medical Plaza</streetAddressLine>
<city>Boston</city>
<state>MA</state>
<postalCode>02115</postalCode>
</addr>
</representedCustodianOrganization>
</assignedCustodian>
</custodian>
<component>
<structuredBody>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.22.2.6.1" extension="2015-08-01"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" displayName="Allergies and Adverse Reactions"/>
<title>Allergies and Adverse Reactions</title>
<text>
<table border="1">
<thead>
<tr>
<th>Allergen</th>
<th>Reaction</th>
<th>Severity</th>
</tr>
</thead>
<tbody>
<tr>
<td>Penicillin</td>
<td>Hives</td>
<td>Moderate</td>
</tr>
</tbody>
</table>
</text>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.22.2.1.1" extension="2014-06-09"/>
<code code="10160-0" codeSystem="2.16.840.1.113883.6.1" displayName="History of Medication Use"/>
<title>Medications</title>
<text>
<table border="1">
<thead>
<tr>
<th>Medication</th>
<th>Dosage</th>
<th>Frequency</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lisinopril 10mg</td>
<td>10 mg</td>
<td>Once daily</td>
</tr>
</tbody>
</table>
</text>
</section>
</component>
<component>
<section>
<templateId root="2.16.840.1.113883.10.20.22.2.5.1" extension="2015-08-01"/>
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" displayName="Problem List"/>
<title>Problem List</title>
<text>
<table border="1">
<thead>
<tr>
<th>Problem</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hypertension</td>
<td>Active</td>
</tr>
</tbody>
</table>
</text>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>
<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<realmCode code="US"/>
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>
<templateId root="2.16.840.1.113883.10.20.22.1.8" extension="2015-08-01"/>
<id root="2.16.840.1.113883.19.5.99999.1" extension="TEST-DOC-002"/>
<code code="18842-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Discharge Summary"/>
<title>Hospital Discharge Summary - Test Patient</title>
<effectiveTime value="20241001090000-0500"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<languageCode code="en-US"/>
<recordTarget>
<patientRole>
<id root="2.16.840.1.113883.19.5.99999.2" extension="TEST-PAT-001"/>
<addr use="HP">
<streetAddressLine>123 Test Street</streetAddressLine>
<city>Boston</city>
<state>MA</state>
<postalCode>02101</postalCode>
<country>US</country>
</addr>
<telecom value="tel:+1(617)555-0100" use="HP"/>
<patient>
<name use="L">
<given>Jane</given>
<family>Doe</family>
</name>
<administrativeGenderCode code="F" codeSystem="2.16.840.1.113883.5.1" displayName="Female"/>
<birthTime value="19850315"/>
</patient>
</patientRole>
</recordTarget>
<author>
<time value="20241001090000-0500"/>
<assignedAuthor>
<id root="2.16.840.1.113883.19.5.99999.3" extension="TEST-DOC-002"/>
<assignedPerson>
<name>
<prefix>Dr.</prefix>
<given>Sarah</given>
<family>Johnson</family>
</name>
</assignedPerson>
</assignedAuthor>
</author>
<custodian>
<assignedCustodian>
<representedCustodianOrganization>
<id root="2.16.840.1.113883.19.5.99999.4"/>
<name>Flexpa Test Medical Center</name>
</representedCustodianOrganization>
</assignedCustodian>
</custodian>
<component>
<structuredBody>
<component>
<section>
<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" displayName="History of Present Illness"/>
<title>History of Present Illness</title>
<text>
Patient admitted with chest pain. EKG and cardiac enzymes were within normal limits.
Discharged home on aspirin therapy with cardiology follow-up scheduled.
</text>
</section>
</component>
<component>
<section>
<code code="8648-8" codeSystem="2.16.840.1.113883.6.1" displayName="Hospital Course"/>
<title>Hospital Course</title>
<text>
Patient was monitored in observation unit for 24 hours. Serial troponins remained negative.
Stress test was negative for ischemia. Patient remained hemodynamically stable throughout stay.
</text>
</section>
</component>
<component>
<section>
<code code="10183-2" codeSystem="2.16.840.1.113883.6.1" displayName="Discharge Diagnosis"/>
<title>Discharge Diagnosis</title>
<text>
Non-cardiac chest pain
</text>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment