Rules / IBR-069
Norwegian organization number must be stated in the correct format for endpoints,, party identification,,, legal entities,,
Norwegian organization number must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).
Fails
<cbc:EndpointID schemeID="0192">12345678</cbc:EndpointID>
Fix
In cbc:EndpointID (and party or legal identifiers) with schemeID 0192, the value must be a Norwegian organisation number: 9 digits with a valid mod-11 check digit. If the party isn't Norwegian, use the scheme that matches its identifier.
Schematron
- Context
cbc:EndpointID[@schemeID = '0192'] | cac:PartyIdentification/cbc:ID[@schemeID = '0192'] | cbc:CompanyID[@schemeID = '0192']- Test
matches(normalize-space(), '^[0-9]{9}$') and u:mod11(normalize-space())
Official text: Norwegian organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).