PackagesCanonicalsLogsProblems
    Packages
    ehelse.fhir.no.grunndata.test@2.3.1
    http://ehelse.no/fhir/StructureDefinition/gd-RelatedPerson
description: A related person registered in the norwegian master Person index (FREG). In the case where the RelatedPerson itself is not a person registered in FREG (foreign citizen) the name, nationality, birthDate and gender is returned in the RelatedPerson instance. In all other cases only the RelatedPerson.identifier containing FNR or DNR is returned.
package_name: ehelse.fhir.no.grunndata.test
derivation: constraint
name: GdRelatedPerson
type: RelatedPerson
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        citizenship:
          match: {url: null}
          schema:
            short: The nationality of the person
            type: Extension
            mustSupport: true
            url: http://hl7.no/fhir/StructureDefinition/no-basis-person-citizenship
            index: 1
            extensions:
              code:
                url: null
                binding: {strength: required, valueSet: 'urn:iso:std:iso:3166'}
                index: 2
            elements:
              extension:
                binding: {strength: required, valueSet: 'urn:iso:std:iso:3166'}
                index: 2
                slicing:
                  slices:
                    code:
                      match: {}
                      schema:
                        binding: {strength: required, valueSet: 'urn:iso:std:iso:3166'}
                        index: 2
  identifier:
    mustSupport: true
    index: 3
    slicing:
      slices:
        FNR:
          match: {}
          schema: {mustSupport: true, index: 4}
        DNR:
          match: {}
          schema: {mustSupport: true, index: 5}
  patient:
    type: Reference
    mustSupport: true
    refers: ['http://ehelse.no/fhir/StructureDefinition/gd-Person', 'http://hl7.no/fhir/StructureDefinition/no-basis-Patient', 'http://hl7.no/fhir/StructureDefinition/no-basis-Person', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Person']
    index: 6
    elements:
      reference: {mustSupport: true, index: 7}
      identifier: {mustSupport: true, index: 8}
  relationship:
    mustSupport: true
    index: 9
    slicing:
      slices:
        maritalStatus:
          match: {}
          schema:
            mustSupport: true
            index: 10
            extensions:
              fregMarital: {url: 'http://ehelse.no/fhir/StructureDefinition/gd-marital-status', type: Extension, index: 12}
            elements:
              extension:
                index: 11
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    fregMarital:
                      match: {url: null}
                      schema: {type: Extension, url: 'http://ehelse.no/fhir/StructureDefinition/gd-marital-status', index: 12}
        familyRelation:
          match: {}
          schema:
            mustSupport: true
            index: 13
            extensions:
              fregFamily:
                url: http://ehelse.no/fhir/StructureDefinition/gd-family-relation
                type: Extension
                index: 15
                extensions:
                  roleOfRelatedPersonInstance: {url: null, index: 16}
                elements:
                  extension:
                    index: 16
                    slicing:
                      slices:
                        roleOfRelatedPersonInstance:
                          match: {}
                          schema: {index: 16}
            elements:
              extension:
                index: 14
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    fregFamily:
                      match: {url: null}
                      schema:
                        type: Extension
                        url: http://ehelse.no/fhir/StructureDefinition/gd-family-relation
                        index: 15
                        extensions:
                          roleOfRelatedPersonInstance: {url: null, index: 16}
                        elements:
                          extension:
                            index: 16
                            slicing:
                              slices:
                                roleOfRelatedPersonInstance:
                                  match: {}
                                  schema: {index: 16}
        parental:
          match: {}
          schema:
            mustSupport: true
            index: 17
            extensions:
              fregParental: {url: 'http://ehelse.no/fhir/StructureDefinition/gd-parental', type: Extension, index: 19}
            elements:
              extension:
                index: 18
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    fregParental:
                      match: {url: null}
                      schema: {type: Extension, url: 'http://ehelse.no/fhir/StructureDefinition/gd-parental', index: 19}
        guardianship:
          match: {}
          schema:
            short: guardianship registered in FREG
            mustSupport: true
            binding: {strength: required, valueSet: 'http://ehelse.no/fhir/ValueSet/gd-person-guardiantype'}
            index: 20
            extensions:
              guardianship: {url: 'http://ehelse.no/fhir/StructureDefinition/gd-guardianship', max: 1, type: Extension, short: Informasjon om Vergemaal eller fremtidsfullmakt fra FREG., index: 22}
            elements:
              extension:
                index: 21
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    guardianship:
                      match: {url: null}
                      schema: {type: Extension, short: Informasjon om Vergemaal eller fremtidsfullmakt fra FREG., url: 'http://ehelse.no/fhir/StructureDefinition/gd-guardianship', index: 22}
                      max: 1
              coding:
                short: Vergemaaltype fra FREG
                index: 23
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://ehelse.no/fhir/CodeSystem/gd-person-guardiantype'}
                    index: 24
  name:
    mustSupport: true
    index: 25
    extensions:
      middlename: {url: null, mustSupport: true, index: 26}
    elements:
      extension:
        mustSupport: true
        index: 26
        slicing:
          slices:
            middlename:
              match: {}
              schema: {mustSupport: true, index: 26}
      family: {mustSupport: true, index: 27}
      given: {mustSupport: true, index: 28}
  gender: {mustSupport: true, index: 29}
  birthDate: {mustSupport: true, index: 30}
package_version: 2.3.1
extensions:
  citizenship:
    url: http://hl7.no/fhir/StructureDefinition/no-basis-person-citizenship
    short: The nationality of the person
    type: Extension
    mustSupport: true
    index: 1
    extensions:
      code:
        url: null
        binding: {strength: required, valueSet: 'urn:iso:std:iso:3166'}
        index: 2
    elements:
      extension:
        binding: {strength: required, valueSet: 'urn:iso:std:iso:3166'}
        index: 2
        slicing:
          slices:
            code:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'urn:iso:std:iso:3166'}
                index: 2
class: profile
kind: resource
url: http://ehelse.no/fhir/StructureDefinition/gd-RelatedPerson
base: http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson
version: 2.2.1