PackagesCanonicalsLogsProblems
    Packages
    dk.ehealth.sundhed.fhir.ig.core@5.0.0
    http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
description: null
package_name: dk.ehealth.sundhed.fhir.ig.core
derivation: constraint
name: ehealth-patient
type: Patient
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        itCompetenceLevel:
          match: {url: null}
          schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-itcompetencelevel', index: 1}
          min: 0
        interpreterRequired:
          match: {url: null}
          schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/patient-interpreterRequired', index: 2}
          min: 0
          max: 1
        generalHealthCondition:
          match: {url: null}
          schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-general-health-condition', index: 3}
          min: 0
        nameAndAddressProtection:
          match: {url: null}
          schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-nameandaddressprotection', index: 4}
          min: 0
          max: 1
  identifier:
    index: 5
    slicing:
      slices:
        cpr:
          match: {}
          schema: {_required: true, index: 5}
          min: 1
  telecom:
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: value, type: value}
      min: null
      slices:
        NemSMS:
          match: {value: NemSMS}
          schema:
            index: 7
            elements:
              system:
                pattern: {type: code, value: other}
                type: code
                index: 8
              value:
                pattern: {type: string, value: NemSMS}
                type: string
                index: 9
              use: {index: 10}
              rank: {index: 11}
            required: [system, value]
        eBoks:
          match: {value: eBoks}
          schema:
            index: 12
            elements:
              system:
                pattern: {type: code, value: other}
                type: code
                index: 13
              value:
                pattern: {type: string, value: eBoks}
                type: string
                index: 14
              use: {index: 15}
              rank: {index: 16}
            required: [system, value]
  gender: {index: 17}
  address:
    index: 18
    slicing:
      rules: open
      discriminator:
      - {path: use, type: value}
      min: null
      slices:
        officialHomeAddress:
          match: {use: home}
          schema:
            index: 19
            extensions:
              municipalityCode: {url: null, index: 20}
              regionalSubDivisionCodes: {url: null, index: 21}
            elements:
              extension:
                index: 20
                slicing:
                  slices:
                    municipalityCode:
                      match: {}
                      schema: {index: 20}
                    regionalSubDivisionCodes:
                      match: {}
                      schema: {index: 21}
              use:
                pattern: {type: code, value: home}
                type: code
                index: 22
            required: [use]
  contact:
    extensions:
      patientContactnote: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote', min: 0, type: Extension, index: 24}
    elements:
      extension:
        index: 23
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            patientContactnote:
              match: {url: null}
              schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote', index: 24}
              min: 0
      address:
        extensions:
          municipalityCodes: {url: 'http://hl7.dk/fhir/core/StructureDefinition/dk-core-municipalityCodes', min: 0, type: Extension, index: 25}
          regionalSubDivisionCodes: {url: 'http://hl7.dk/fhir/core/StructureDefinition/dk-core-RegionalSubDivisionCodes', min: 0, type: Extension, index: 26}
        elements:
          extension:
            type: Extension
            url: http://hl7.dk/fhir/core/StructureDefinition/dk-core-municipalityCodes
            index: 25
            slicing:
              slices:
                municipalityCodes:
                  match: {}
                  schema: {type: Extension, url: 'http://hl7.dk/fhir/core/StructureDefinition/dk-core-municipalityCodes', index: 25}
                  min: 0
                regionalSubDivisionCodes:
                  match: {}
                  schema: {type: Extension, url: 'http://hl7.dk/fhir/core/StructureDefinition/dk-core-RegionalSubDivisionCodes', index: 26}
                  min: 0
  communication:
    elements:
      language:
        elements:
          coding:
            elements:
              system:
                pattern: {type: uri, value: 'urn:ietf:bcp:47'}
                type: uri
                index: 27
  generalPractitioner:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
    index: 28
    slicing:
      slices:
        referencedSORUnit:
          match: {}
          schema:
            type: Reference
            refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
            index: 29
          max: 1
        YderNummer:
          match: {}
          schema:
            index: 30
            elements:
              identifier:
                index: 31
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:oid.1.2.208.176.1.4'}
                    type: uri
                    index: 32
                  value: {index: 33}
                required: [system, value]
            required: [identifier]
package_version: 5.0.0
extensions:
  itCompetenceLevel: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-itcompetencelevel', min: 0, type: Extension, index: 1}
  interpreterRequired: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/patient-interpreterRequired', min: 0, max: 1, type: Extension, index: 2}
  generalHealthCondition: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-general-health-condition', min: 0, type: Extension, index: 3}
  nameAndAddressProtection: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-nameandaddressprotection', min: 0, max: 1, type: Extension, index: 4}
class: profile
kind: resource
url: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient
base: http://hl7.dk/fhir/core/StructureDefinition/dk-core-patient
version: 5.0.0
required: [gender, identifier]