@@ -30,36 +30,48 @@ body:
3030 resourceType : Immunization
3131 patient : " {{ %patientRef }}"
3232 status : " {{ %status.code }}"
33- performer :
34- - actor : " {{ %performer }}"
35- function :
36- coding :
37- - " {{ %performerFunction }}"
33+ " {% if %performer.exists() %} " :
34+ performer :
35+ - actor : " {{ %performer }}"
36+ " {% if %performerFunction.exists() %} " :
37+ function :
38+ coding :
39+ - " {{ %performerFunction }}"
3840 vaccineCode :
3941 coding :
4042 - " {{ %vaccineCode }}"
43+ text : " {{ %vaccineCode.display }}"
4144 doseQuantity : " {{ %doseQuantity }}"
4245 encounter : " {{ %encounterRef }}"
43- expirationDate : " {{ %expirationDate }}"
44- fundingSource :
45- coding :
46- - " {{ %fundingSource }}"
47- isSubpotent :
48- " {% if %isSubpotent.code = 'yes' %} " : true
49- " {% else %} " : false
50- lotNumber : " {{ %lotNumber }}"
5146 occurrenceDateTime : " {{ %occurrenceDate }}"
52- primarySource :
53- " {% if %primarySource.code = 'yes' %} " : true
54- " {% else %} " : false
55- route :
56- coding :
57- - " {{ %route }}"
58- site :
59- coding :
60- - " {{ %site }}"
61- note :
62- - text : " {{ %note }}"
47+ " {% merge %} " :
48+ - " {% if %expirationDate.exists() %} " :
49+ expirationDate : " {{ %expirationDate }}"
50+ - " {% if %fundingSource.exists() %} " :
51+ fundingSource :
52+ coding :
53+ - " {{ %fundingSource }}"
54+ - " {% if %isSubpotent.exists() %} " :
55+ isSubpotent :
56+ " {% if %isSubpotent.code = 'yes' %} " : true
57+ " {% else %} " : false
58+ - " {% if %lotNumber.exists() %} " :
59+ lotNumber : " {{ %lotNumber }}"
60+ - " {% if %primarySource.exists() %} " :
61+ primarySource :
62+ " {% if %primarySource.code = 'yes' %} " : true
63+ " {% else %} " : false
64+ - " {% if %route.exists() %} " :
65+ route :
66+ coding :
67+ - " {{ %route }}"
68+ - " {% if %site.exists() %} " :
69+ site :
70+ coding :
71+ - " {{ %site }}"
72+ - " {% if %note.exists() %} " :
73+ note :
74+ - text : " {{ %note }}"
6375 resourceType : Bundle
6476 type : transaction
6577 entry :
0 commit comments