PackagesCanonicalsLogsProblems
    Packages
    socialcaredataservice.stu3@0.0.3
    https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-RelatedPerson-1
description: Constrained version of CareConnect-RelatedPerson-1 Profile (v1.1.0) to support the CareDataService (CDS).  The CareConnect-CDS-RelatedPerson-1 resource will be used to share information about a person that the Local Authority have recorded aas having a relationship to the patient.
package_name: socialcaredataservice.stu3
derivation: constraint
name: CareConnect-CDS-RelatedPerson-1
type: RelatedPerson
elements:
  id: {mustSupport: true, index: 0}
  identifier:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        nhsNumber:
          match: {system: 'https://fhir.nhs.uk/Id/nhs-number'}
          schema:
            mustSupport: true
            index: 2
            elements:
              use:
                pattern: {type: Code, value: official}
                index: 3
              system:
                pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/nhs-number'}
                index: 4
              value: {index: 5}
            required: [value, system, use]
  patient:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Patient-1']
    index: 6
  relationship:
    mustSupport: false
    index: 7
    elements:
      coding:
        index: 8
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            relationshipType:
              match: {system: 'http://CareDataService/RelatedPerson/relationship-type'}
              schema:
                mustSupport: true
                _required: true
                index: 9
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://CareDataService/RelatedPerson/relationship-type'}
                    index: 10
                  display: {index: 11}
                required: [display, system]
            relationshipFlag:
              match: {system: 'http://CareDataService/RelatedPerson/relationship-flag'}
              schema:
                mustSupport: true
                index: 12
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://CareDataService/RelatedPerson/relationship-flag'}
                    index: 13
                  display: {index: 14}
                required: [display, system]
  name:
    index: 15
    slicing:
      rules: open
      discriminator:
      - {path: use, type: value}
      min: 1
      slices:
        official:
          match: {use: official}
          schema:
            mustSupport: true
            _required: true
            index: 16
            elements:
              use:
                pattern: {type: Code, value: official}
                index: 17
              text: {index: 18}
              family: {mustSupport: true, index: 19}
              given: {mustSupport: true, index: 20}
            required: [text, use]
  telecom: {mustSupport: true, index: 21}
  birthDate: {mustSupport: true, index: 22}
package_version: 0.0.3
class: profile
kind: resource
url: https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-RelatedPerson-1
base: https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-RelatedPerson-1
version: 0.0.1
required: [id, relationship, name]