Rules / IBR-SR-27
IBR-SR-27 error
Payment means text must occur maximum once
Payment means text (ibt-081) must occur maximum once.
Fails
<cac:PaymentMeans>
<cbc:PaymentMeansCode>…</cbc:PaymentMeansCode>
<cbc:PaymentMeansCode>…</cbc:PaymentMeansCode>
</cac:PaymentMeans>
Fix
Keep a single cbc:PaymentMeansCode here and delete the duplicates. If both values matter, one of them belongs in a different field.
Schematron
- Context
cac:PaymentMeans- Test
(count(cbc:PaymentMeansCode) <= 1)
Official text: Payment means text (ibt-081) MUST occur maximum once