forked from microsoft/FHIR-Converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_RelatedPerson.liquid
38 lines (38 loc) · 1.17 KB
/
_RelatedPerson.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
29
30
31
32
33
34
35
36
37
38
{% capture identifiers -%}
{% if NK1.33.1 and NK1.33.4 -%}
{{NK1.33.1.Value}},{{NK1.33.4.Value}}
{% elsif NK1.12.1 and NK1.12.4 -%}
{{NK1.12.1.Value}},{{NK1.12.4.Value}}
{% elsif NK1 -%}
{{NK1.Value}}
{% elsif PID.21.1 and PID.21.5 -%}
{{PID.21.1.Value}},{{PID.21.5.Value}}
{% elsif PID.6 -%}
{{PID.6.Value}}
{% elsif PRT.5.1 and PRT.5.9 -%}
{{PRT.5.1.Value}},{{PRT.5.9.Value}}
{% elsif PRT -%}
{{PRT.Value}}
{% elsif ROL.4.1 and ROL.4.9 -%}
{{ROL.4.1.Value}},{{ROL.4.9.Value}}
{% elsif ROL -%}
{{ROL.Value}}
{% elsif IAM -%}
{{IAM.Value}}
{% elsif GT1.2 -%}
{{GT1.2.Repeats[0].1.Value}},{{GT1.2.Repeats[0].4.Value}}
{% elsif GT1 -%}
{{GT1.Value}}
{% elsif IN1.49 -%}
{{IN1.49.Repeats[0].1.Value}},{{IN1.49.Repeats[0].4.Value}}
{% elsif IN1 -%}
{{IN1.Value}}
{% elsif IN2.3 -%}
{{IN2.3.1.Value}},{{IN2.3.9.Value}}
{% elsif IN2 -%}
{{IN2.Value}}
{% elsif CON -%}
{{CON.Value}}
{% endif -%}
{% endcapture -%}
{{ identifiers | generate_id_input: 'RelatedPerson', true, baseId | generate_uuid }}