-
Notifications
You must be signed in to change notification settings - Fork 182
/
Copy pathReferralNote.liquid
28 lines (26 loc) · 1.13 KB
/
ReferralNote.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"resourceType": "Bundle",
"type": "batch",
"entry": [
{% evaluate patientId using 'Utils/GenerateId' obj: msg.ClinicalDocument.recordTarget.patientRole -%}
{% assign fullPatientId = patientId | prepend: 'Patient/' -%}
{% include 'Header' -%}
{% include 'Section/Problem' -%}
{% include 'Section/AllergiesAndAdverseReaction' -%}
{% include 'Section/Medication' -%}
{% include 'Section/ReasonforReferral' -%}
{% include 'Section/FamilyHistory' -%}
{% include 'Section/Immunization' -%}
{% include 'Section/Procedure' -%}
{% include 'Section/Result' -%}
{% include 'Section/SocialHistory' -%}
{% include 'Section/VitalSign' -%}
{% include 'Section/FunctionalStatus' -%}
{% include 'Section/MedicalEquipment' -%}
{% include 'Section/AdvanceDirective' -%}
{% include 'Section/MentalStatus' -%}
{% include 'Section/Nutrition' -%}
{% assign documentId = msg | to_json_string | generate_uuid -%}
{% include 'Resource/DocumentReference' documentReference: msg ID: documentId -%}
]
}