Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"appointment" : [{
"reference" : "Appointment/{{ AppointmentID }}"
}],
3 changes: 3 additions & 0 deletions data/Templates/Hl7v2/Resource/_Encounter.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe
{% endif -%}

],
{%if AppointmentID -%}
{% include 'Reference/Appointment/Reference_in_Encounter' AppointmentID: AppointmentID -%}
{%endif -%}
"period":
{

Expand Down
3 changes: 2 additions & 1 deletion data/Templates/Hl7v2/SIU_S14.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@
{% endif -%}

{% evaluate encounterId using 'ID/Encounter' PV1: pv1Segment, baseId: patientId -%}
{% evaluate appointmentID using 'ID/Appointment' SCH: firstSegments.SCH, baseId: patientId-%}
{% assign fullEncounterId = encounterId | prepend: 'Encounter/' -%}
{% include 'Resource/Encounter' Root_Template: 'SIU_S14', PV1: pv1Segment, PV2: pv2Segment, ID: encounterId, AccountId:accountId -%}
{% include 'Resource/Encounter' Root_Template: 'SIU_S14', PV1: pv1Segment, PV2: pv2Segment, ID: encounterId, AccountId:accountId, AppointmentID:appointmentID -%}
{% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%}
{% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: pv1Segment, PV2: pv2Segment -%}
{% endif -%}
Expand Down