-
Notifications
You must be signed in to change notification settings - Fork 183
/
Copy pathClaim.liquid
68 lines (67 loc) · 2.38 KB
/
Claim.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% mergeDiff msg -%}
{
"contained" : [ {{msg.contained | to_array | batch_render : 'Resource', 'msg'}} ],
"use" : {% include 'Claim/TranslateUseCode' msg : msg.use -%},
{% if msg.provider == null -%}
"provider" : {{msg.organization | to_json_string | default : '""'}},
{% endif -%}
"payee" :
{% mergeDiff msg.payee %}
{
"resourceType" : ""
}
{% endmergeDiff %},
"supportingInfo" : {{msg.information | to_json_string | default : '""'}},
"item" : [
{% for i in msg.item %}
{% mergeDiff i %}
{
"careTeamSequence" : {{i.careTeamLinkId | to_json_string | default : '""'}},
"diagnosisSequence" : {{i.diagnosisLinkId | to_json_string | default : '""'}},
"procedureSequence" : {{i.procedureLinkId | to_json_string | default : '""'}},
"informationSequence" : {{i.informationLinkId | to_json_string | default : '""'}},
"productOrService" : {{i.service | to_json_string | default : '""'}},
"diagnosisCodeableConcept" : {{i.locationCodeableConcept | to_json_string | default : '""'}},
"careTeamLinkId" : "",
"diagnosisLinkId" : "",
"procedureLinkId" : "",
"informationLinkId" : "",
"service": "",
"locationCodeableConcept" : "",
"unitPrice" : {% include 'DataType/Money' msg: i.unitPrice -%},
"net" : {% include 'DataType/Money' msg: i.net -%},
"detail" : [
{% for d in i.detail %}
{% mergeDiff d %}
{
"productOrService" : {{d.service | to_json_string | default : '""'}},
"unitPrice" : {% include 'DataType/Money' msg: d.unitPrice -%},
"net" : {% include 'DataType/Money' msg: d.net -%},
"service": "",
"subDetail" : [
{% for s in d.subDetail %}
{% mergeDiff s %}
{
"productOrService" : {{s.service | to_json_string | default : '""'}},
"unitPrice" : {% include 'DataType/Money' msg: s.unitPrice -%},
"net" : {% include 'DataType/Money' msg: s.net -%},
"service": ""
}
{% endmergeDiff %},
{% endfor %}
]
}
{% endmergeDiff %},
{% endfor %}
]
}
{% endmergeDiff %},
{% endfor %}
],
"total" : {% include 'DataType/Money' msg: msg.total -%},
"hospitalization" : "",
"employmentImpacted" : "",
"information" : "",
"organization" : ""
}
{% endmergeDiff -%}