Value of 'ram:ReasonCode[not (@listID)]' is not allowed.
A non-empty value of ram:ReasonCode when the element has no @listID attribute does not appear in the code list used by this rule. The XPath expression also permits an empty value.
The reason code identifies the reason for the charge. For the element checked here without @listID, a non-empty value must come from the specified code list.
The non-empty value in the charge’s ram:ReasonCode is not in the corresponding code list. This rule applies to ram:ReasonCode without @listID and also permits an empty value.
- Find
ram:ReasonCodefor the charge and check whether the element has no@listIDattribute. - Check whether the non-empty value is included in the code list specified for this rule.
- Generate the invoice again and validate it once more.
Technical details
The rule context selects ram:ReasonCode without @listID. The test permits an empty $codeValue18; otherwise, the value must occur as @value in codedb/cl[@id=18]/enumeration.
The rule checks ram:ReasonCode without @listID for a document-level charge in the settlement.
rule/@context)assert/@test)