Rules / IBR-SR-33
IBR-SR-33 error
Supporting document description must occur maximum once
Supporting document description (ibt-123) must occur maximum once.
Fails
<cac:AdditionalDocumentReference>
<cbc:DocumentDescription>…</cbc:DocumentDescription>
<cbc:DocumentDescription>…</cbc:DocumentDescription>
</cac:AdditionalDocumentReference>
Fix
Keep a single cbc:DocumentDescription here and delete the duplicates. If both values matter, one of them belongs in a different field.
Schematron
- Context
cac:AdditionalDocumentReference- Test
(count(cbc:DocumentDescription) <= 1)
Official text: Supporting document description (ibt-123) MUST occur maximum once