PackagesCanonicalsLogsProblems
    Packages
    rs/bonsai.first.test.r4@0.1.3
    http://electronichealth.se/fhir/StructureDefinition/NLLPerson
description: null
package_name: rs/bonsai.first.test.r4
derivation: constraint
name: NLLPerson
type: Person
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        nllConfidentiality:
          match: {url: null}
          schema: {short: 'Indicates that the person has confidential information, e.g. name and address', type: Extension, mustSupport: true, meaningWhenMissing: If element is missing the person DOES NOT have confidential information., url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPersonConfidentiality', index: 1}
          min: 0
  identifier:
    mustSupport: true
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        pnr:
          match: {system: 'http://electronichealth.se/identifier/personnummer'}
          schema:
            short: Swedish personal identity number
            mustSupport: true
            index: 3
            elements:
              system:
                pattern: {type: uri, value: 'http://electronichealth.se/identifier/personnummer'}
                mustSupport: true
                type: uri
                index: 4
              value:
                short: Swedish personal identity number
                maxLength: 12
                constraint:
                  swe-id-rule: {human: A personal identity number must have 12 digits, source: Person, severity: error, expression: '$this.matches(''^\\d{12}$'')'}
                mustSupport: true
                index: 5
            required: [system, value]
  name:
    mustSupport: true
    index: 6
    elements:
      text: {maxLength: 60, mustSupport: true, index: 7}
      family: {maxLength: 60, mustSupport: true, index: 8}
      given:
        mustSupport: true
        index: 9
        extensions:
          nllNameQualifier:
            url: http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier
            min: 0
            short: CL
            type: Extension
            mustSupport: true
            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/name-part-qualifier'}
            index: 11
        elements:
          extension:
            index: 10
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                nllNameQualifier:
                  match: {url: null}
                  schema:
                    short: CL
                    type: Extension
                    mustSupport: true
                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/name-part-qualifier'}
                    url: http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier
                    index: 11
                  min: 0
  address:
    mustSupport: true
    index: 12
    extensions:
      nllMunicipalityCode:
        url: http://electronichealth.se/fhir/StructureDefinition/NLLMunicipalityCode
        min: 0
        short: Municipality code (sv. kommunkod)
        type: Extension
        mustSupport: true
        binding: {strength: required, valueSet: 'http://scb.se'}
        index: 14
      nllRegionCode:
        url: http://electronichealth.se/fhir/StructureDefinition/NLLRegionCode
        min: 0
        short: 'Region code (sv: region/länskod)'
        type: Extension
        mustSupport: true
        binding: {strength: required, valueSet: 'http://scb.se'}
        index: 15
    elements:
      extension:
        index: 13
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            nllMunicipalityCode:
              match: {url: null}
              schema:
                short: Municipality code (sv. kommunkod)
                type: Extension
                mustSupport: true
                binding: {strength: required, valueSet: 'http://scb.se'}
                url: http://electronichealth.se/fhir/StructureDefinition/NLLMunicipalityCode
                index: 14
              min: 0
            nllRegionCode:
              match: {url: null}
              schema:
                short: 'Region code (sv: region/länskod)'
                type: Extension
                mustSupport: true
                binding: {strength: required, valueSet: 'http://scb.se'}
                url: http://electronichealth.se/fhir/StructureDefinition/NLLRegionCode
                index: 15
              min: 0
  active: {mustSupport: true, meaningWhenMissing: This person exists in FOLK, index: 16}
package_version: 0.1.3
extensions:
  nllConfidentiality: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPersonConfidentiality', min: 0, short: 'Indicates that the person has confidential information, e.g. name and address', type: Extension, mustSupport: true, meaningWhenMissing: If element is missing the person DOES NOT have confidential information., index: 1}
class: profile
kind: resource
url: http://electronichealth.se/fhir/StructureDefinition/NLLPerson
base: http://hl7.org/fhir/StructureDefinition/Person
version: 0.0.1