PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.dk.core@2.2.0
    http://hl7.dk/fhir/core/StructureDefinition/dk-core-cpr-identifier
description: This structure holds the danish [CPR](https://cpr.dk/) identifier
package_name: hl7.fhir.dk.core
derivation: constraint
name: DkCoreCprIdentifier
type: Identifier
elements:
  use:
    pattern: {type: Code, value: official}
    index: 0
  system:
    pattern: {type: Uri, value: 'urn:oid:1.2.208.176.1.2'}
    index: 1
  value:
    maxLength: 10
    constraint:
      ele-1: {human: All FHIR elements must have a @value or children, source: 'https://cpr.dk/cpr-systemet/opbygning-af-cpr-nummeret/#:~:text=5%20%2D%206%20position%20angiver%20personens,i%20personnummeret%20angiver%20personens%20k%C3%B8n.', severity: error, expression: hasValue() or (children().count() > id.count()), requirements: Requirement of danish civil registration numbers}
      cpr: {human: Requirement of danish civil registration numbers, source: 'http://hl7.dk/fhir/core/StructureDefinition/dk-core-cpr-identifier', severity: error, expression: 'value.matches(''^((((0[1-9]|1[0-9]|2[0-9]|3[0-1])(01|03|05|07|08|10|12))|((0[1-9]|1[0-9]|2[0-9]|30)(04|06|09|11))|((0[1-9]|1[0-9]|2[0-9])(02)))[0-9]{6})$'')'}
    mustSupport: false
    index: 2
package_version: 2.2.0
class: complex-type
kind: complex-type
url: http://hl7.dk/fhir/core/StructureDefinition/dk-core-cpr-identifier
base: http://hl7.org/fhir/StructureDefinition/Identifier
version: 2.2.0
required: [value, system]