Rules / IBR-CL-19
IBR-CL-19 error
Coded allowance reasons must belong to the UNCL 5189 code list
Coded allowance reasons (ibt-098), (ibt-140) must belong to the UNCL 5189 code list.
Fails
<cbc:AllowanceChargeReasonCode>XYZ</cbc:AllowanceChargeReasonCode>
Fix
Use a value from the code list the rule names. Codes are case-sensitive and must not have spaces around them.
Schematron
- Context
cac:AllowanceCharge[cbc:ChargeIndicator = false()]/cbc:AllowanceChargeReasonCode- Test
((not(contains(normalize-space(.), ' ')) and contains(' 41 42 60 62 63 64 65 66 67 68 70 71 88 95 100 102 103 104 105 ', concat(' ', normalize-space(.), ' '))))
Official text: Coded allowance reasons (ibt-098), (ibt-140) MUST belong to the UNCL 5189 code list