Rules / IBR-SR-46
Payment means text must occur maximum once
Payment means text (ibt-082) must occur maximum once.
Fails
<cac:PaymentMeans>
…<@name>…</@name>
…<@name>…</@name>
</cac:PaymentMeans>
Fix
Keep one cbc:PaymentMeansCode/@name 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/@name) <=1)
Official text: Payment means text (ibt-082) MUST occur maximum once