Genericode document type
Rules for the genericode document type.
Severity | Rule |
---|---|
error | The document must be a code list document. |
error | The gc:CodeList/annotation element must be present. |
error | Additional metadata for the code list must be present. |
Additional code list metadata
Rules for additional code list metadata.
Severity | Rule |
---|---|
error | A description for the code list must be present. |
error | Version history for the code list must be present. |
error | The language of the code list must be present. |
error | The license for the code list must be present. |
error | The description for the code list must not be empty. |
error | Version history for the code list must not be empty. |
error | The language for the code list must not be empty. |
error | The license must be provided as a hyperlink. |
error | When source is provided it must be a hyperlink. |
Identification
Rules for identification information.
Severity | Rule |
---|---|
error | The version must comply to the Semantic versioning specification. |
error | ShortName must not be empty. |
error | ShortName must only contain lowercase letters. |
error | Special characters are not permitted in the ShortName field. |
error | CanonicalURI must be provided with a UUID. |
error | CanonicalVersionURI must be provided with a UUID. |
error | The name of the owner of the code list must not be empty. |
error | The UUIDs associated with CanonicalURI and CanonicalVersionURI must not be identical. |
error | The Agency/LongName element must be present in Identification. |
error | The LongName field must be the only field under Agency. |
Columns
Rules for columns.
Severity | Rule |
---|---|
error | The value of Column/@Id and Column/ShortName must be identical. |
Values
Rules for values.
Severity | Rule |
---|---|
error | A code must not contain separators that are not spaces. |
error | A code must not contain two consecutive spaces. |
error | A code must not contain control characters. |
error | A code must not start with space. |
error | A code must not end with space. |
warning | A code is found to begin with a character that is not in the recommended set [a-zA-Z0-9æøå鯨ÅÉ=<>]. |
warning | A code is found to end with a character that is not in the recommended set [a-zA-Z0-9æøå鯨ÅÉ)-]. |
warning | A code was found to contain discouraged characters. Recommended characters include: digits (0-9), lower and uppercase letters (a-z, æ, ø, å, é), Greek letters (Ω, α, β), mathematical symbols (+, <, >, =), punctuation marks (-_()%&',./:§) and spaces. |
error | virkningFra must be a valid date in the format YYYY-MM-DD. |
error | When provided, virkningTil must be a valid date in the format YYYY-MM-DD. |
error | The date specified for virkningTil must be the same as or later than the date specified for virkningFra. |
error | The field virkningFra must not be empty. |
error | The number of row values must equal the number of declared columns. |
error | The number and order of the values in a row must be the same as the number and order of the columns. |