VRBL-APR-FR-1p0-19

Basic Info

Rule For the given Response Code, the Status Reason Code must exist within the Response Group.
Context /ubl:ApplicationResponse/cac:DocumentResponse/cac:Response
Pattern vrbl-ar-fr-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:Status/cbc:StatusReasonCode

Implementation

(
	not(contains($VRBL-CL-APR-FR-1p0-ResponseCode-RequiredReason, concat(' ', substring-after(cbc:ResponseCode, $VRBL-FR-Prefix), ' ')))
)
or
(
	boolean(cac:Status/cbc:StatusReasonCode)
)