Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add appointment reference in encounter #499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
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