PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.nppr.r5@0.1.0-alpha
    http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPerson
description: Profile for representing basic data about an individual, comparable to data in the population registry (folkbokföring).
package_name: se.electronichealth.fhir.nppr.r5
derivation: constraint
name: NPPRPerson
type: Person
elements:
  address:
    type: Address
    mustSupport: true
    index: 19
    extensions:
      officialAddressType: {url: null, min: 1, _required: true, index: 21}
    elements:
      extension:
        index: 20
        slicing:
          slices:
            officialAddressType:
              match: {}
              schema: {_required: true, index: 21}
              min: 1
    required: [extension]
  meta:
    mustSupport: true
    index: 0
    elements:
      security:
        mustSupport: true
        index: 1
        elements:
          code: {mustSupport: true, index: 2}
  name:
    type: HumanName
    mustSupport: true
    index: 12
    elements:
      family: {index: 13}
      given:
        index: 14
        extensions:
          nameQualifier: {url: null, index: 15}
        elements:
          extension:
            index: 15
            slicing:
              slices:
                nameQualifier:
                  match: {}
                  schema: {index: 15}
    required: [given, family]
  birthDate: {mustSupport: true, index: 18}
  link:
    mustSupport: true
    index: 26
    elements:
      target:
        type: Reference
        mustSupport: true
        refers: ['http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPatient', 'http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPractitioner', 'http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRRelatedPerson']
        index: 27
  identifier:
    mustSupport: true
    index: 3
    elements:
      system: {mustSupport: true, index: 4}
      value: {mustSupport: true, index: 5}
    required: [value, system]
    slicing:
      rules: open
      ordered: false
      description: Slice on Identifier based on the system value
      discriminator:
      - {path: system, type: value}
      min: 1
      max: 1
      slices:
        coordinationNumber:
          match: {system: 'http://electronichealth.se/identifier/samordningsnummer'}
          schema:
            mustSupport: true
            index: 6
            elements:
              system:
                pattern: {type: Uri, value: 'http://electronichealth.se/identifier/samordningsnummer'}
                index: 7
              value: {mustSupport: true, index: 8}
            required: [value]
        personalIdentityNumber:
          match: {system: 'http://electronichealth.se/identifier/personnummer'}
          schema:
            mustSupport: true
            index: 9
            elements:
              system:
                pattern: {type: Uri, value: 'http://electronichealth.se/identifier/personnummer'}
                index: 10
              value: {mustSupport: true, index: 11}
            required: [value]
  telecom:
    type: ContactPoint
    constraint:
      nppr-telecom-phone-1: {human: 'If telecom.system = #phone, value should follow format +46123456789', source: 'http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPerson', severity: warning, expression: 'value.matches(''^\\+[1-9][0-9]+$'') or system != ''phone'''}
      nppr-telecom-url-1: {human: 'If telecom.system = #url, value should follow valid format. Example: https://example.com', source: 'http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPerson', severity: warning, expression: 'value.matches(''(https?|ftp)://(-\\.)?([^\\s/?\\.#-]+\\.?)+(/[^\\s]*)?$'') or system != ''url'''}
      nppr-telecom-email-1: {human: 'If telecom.system = #email, value should follow valid format Example: test@test.com', source: 'http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPerson', severity: warning, expression: 'value.matches(''^[\\w.-]{1,64}@(?!.{254})[\\w.-]+\\.[A-Za-z]{2,4}$'') or system != ''email'''}
    mustSupport: true
    index: 16
  gender:
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NPPR/ValueSet/nppr-administrative-gender'}
    mustSupport: true
    index: 17
  maritalStatus:
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NPPR/ValueSet/nppr-marital-status'}
    mustSupport: true
    index: 22
    elements:
      coding:
        mustSupport: true
        index: 23
        elements:
          system: {mustSupport: true, index: 24}
          code: {mustSupport: true, index: 25}
        required: [system, code]
    required: [coding]
package_version: 0.1.0-alpha
class: profile
kind: resource
url: http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRPerson
base: http://hl7.org/fhir/StructureDefinition/Person
version: '0.1'
required: [maritalStatus, gender, name, identifier, birthDate]