{
  "resourceType": "StructureDefinition",
  "id": "dk-core-crn-identifier",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "http://hl7.org/fhir/dk/core/StructureDefinition/dk-core-crn-identifier",
  "version": "latest",
  "name": "DkCoreCrnIdentifier",
  "title": "Danish Core Civil Registration Number Extension",
  "status": "draft",
  "date": "2019-11-02",
  "publisher": "ehealth.sundhed.dk",
  "description": "This structure holds the danish *civil registration number* (CRN) identifier",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Identifier",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Identifier",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Identifier.use",
        "path": "Identifier.use",
        "fixedCode": "official"
      },
      {
        "id": "Identifier.type.coding.system",
        "path": "Identifier.type.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203"
      },
      {
        "id": "Identifier.type.coding.code",
        "path": "Identifier.type.coding.code",
        "fixedCode": "NNDNK"
      },
      {
        "id": "Identifier.system",
        "path": "Identifier.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.208.176.1.2"
      },
      {
        "id": "Identifier.value",
        "path": "Identifier.value",
        "min": 1,
        "maxLength": 10,
        "constraint": [
          {
            "key": "crn",
            "requirements": "Requirement of danish civil registration numbers",
            "severity": "error",
            "human": "Requirement of danish civil registration numbers",
            "expression": "value.matches('^[0-9]{10}$')",
            "source": "Identifier"
          }
        ],
        "mustSupport": false
      }
    ]
  }
}