-
Notifications
You must be signed in to change notification settings - Fork 180
/
ActivityDefinition.liquid
40 lines (40 loc) · 1.47 KB
/
ActivityDefinition.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
39
40
{% mergeDiff msg -%}
{
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ],
"author" :[
{% for c in msg.contributor %}
{% if c.type == 'author' -%}
{% include 'DataType/ContributorToContactDetail' msg : c -%},
{% endif %}
{% endfor %}
],
"editor" :[
{% for c in msg.contributor %}
{% if c.type == "editor" -%}
{% include 'DataType/ContributorToContactDetail' msg : c -%},
{% endif %}
{% endfor %}
],
"reviewer" :[
{% for c in msg.contributor %}
{% if c.type == "reviewer" -%}
{% include 'DataType/ContributorToContactDetail' msg : c -%},
{% endif %}
{% endfor %}
],
"endorser" :[
{% for c in msg.contributor %}
{% if c.type == "endorser" -%}
{% include 'DataType/ContributorToContactDetail' msg : c -%},
{% endif %}
{% endfor %}
],
"kind" : {% include 'ActivityDefinition/TranslateKindCode' msg : msg.kind -%},
"relatedArtifact" : [ {{ msg.relatedArtifact | to_array | batch_render: 'DataType/RelatedArtifact', 'msg' }} ],
"dosage" : [ {{ msg.dosage | to_array | batch_render: 'DataType/Dosage', 'msg' }} ],
"library" : [ {{ msg.library | to_array | batch_render: 'DataType/ReferenceToCanonical', 'msg' }} ],
"transform" : {% include 'DataType/ReferenceToCanonical' msg: msg.transform -%},
"dynamicValue" : [ {{ msg.dynamicValue | to_array | batch_render: 'ActivityDefinition/ActivityDefinitionDynamicValue', 'msg' }} ],
"contributor" : ""
}
{% endmergeDiff -%}