Rules / IBR-SR-27
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 one cbc:PaymentMeansCode in cac:PaymentMeans and delete the extras. 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