PackagesCanonicalsLogsProblems
    Packages
    NHSD.Assets.STU3@1.0.0
    https://fhir.nhs.uk/STU3/StructureDefinition/EOL-Preferences-QuestionnaireResponse-1
description: End of Life Preferences Status Questionnaire Response
package_name: NHSD.Assets.STU3
derivation: constraint
name: EOL-Preferences-QuestionnaireResponse-1
type: QuestionnaireResponse
elements:
  questionnaire: {index: 8}
  parent: {index: 7}
  item:
    index: 16
    slicing:
      rules: closed
      discriminator:
      - {path: text, type: value}
      min: null
      slices:
        preferredPlaceOfDeathCoded:
          match: {text: Preferred Place Of Death Coded}
          schema:
            short: Patients preferred place of death as a SNOMED CT code
            index: 17
            elements:
              linkId:
                pattern: {type: String, value: preferredPlaceOfDeathCoded}
                index: 18
              definition: {index: 19}
              text:
                pattern: {type: String, value: Preferred Place Of Death Coded}
                index: 20
              subject: {index: 21}
              answer:
                index: 22
                elements:
                  valueCoding:
                    type: Coding
                    index: 23
                    slicing:
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            type: Coding
                            _required: true
                            index: 23
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                                index: 24
                              version: {index: 25}
                              code: {index: 26}
                              display: {index: 27}
                              userSelected: {index: 28}
                            required: [display, system, code]
                  item: {index: 29}
                required: [valueCoding]
              item: {index: 30}
            required: [text, answer]
        preferredPlaceOfDeathText:
          match: {text: Preferred Place Of Death Text}
          schema:
            short: Patients preferred place of death as a textual value
            index: 31
            elements:
              linkId:
                pattern: {type: String, value: preferredPlaceOfDeathText}
                index: 32
              definition: {index: 33}
              text:
                short: A text value used to identify a preferred place of death
                pattern: {type: String, value: Preferred Place Of Death Text}
                index: 34
              subject: {index: 35}
              answer:
                index: 36
                elements:
                  valueString:
                    type: string
                    index: 37
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, _required: true, index: 37}
                          min: 1
                  item: {index: 38}
                required: [valueString]
              item: {index: 39}
            required: [text, answer]
        preferredPlaceOfDeathNotes:
          match: {text: Preferred Place Of Death Notes}
          schema:
            index: 40
            elements:
              linkId:
                pattern: {type: String, value: preferredPlaceOfDeathNotes}
                index: 41
              definition: {index: 42}
              text:
                pattern: {type: String, value: Preferred Place Of Death Notes}
                index: 43
              subject: {index: 44}
              answer:
                index: 45
                elements:
                  valueString:
                    type: string
                    index: 46
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, _required: true, index: 46}
                          min: 1
                  item: {index: 47}
                required: [valueString]
              item: {index: 48}
            required: [text, answer]
        preferencesAndWishes:
          match: {text: Preferences and Wishes}
          schema:
            short: Patients preferences and wishes
            index: 49
            elements:
              linkId:
                pattern: {type: String, value: preferencesAndWishes}
                index: 50
              definition: {index: 51}
              text:
                pattern: {type: String, value: Preferences and Wishes}
                index: 52
              subject: {index: 53}
              answer:
                index: 54
                elements:
                  valueString:
                    type: string
                    index: 55
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, _required: true, index: 55}
                          min: 1
                  item: {index: 56}
                required: [valueString]
              item: {index: 57}
            required: [text, answer]
        domesticAccessAndInformation:
          match: {text: Domestic Access and Information}
          schema:
            short: Any domestic and access information provided
            index: 58
            elements:
              linkId:
                pattern: {type: String, value: domesticAccessAndInformation}
                index: 59
              definition: {index: 60}
              text:
                pattern: {type: String, value: Domestic Access and Information}
                index: 61
              subject: {index: 62}
              answer:
                index: 63
                elements:
                  valueString:
                    type: string
                    index: 64
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, _required: true, index: 64}
                          min: 1
                  item: {index: 65}
                required: [valueString]
              item: {index: 66}
            required: [text, answer]
  source: {index: 15}
  author:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1']
    index: 13
    elements:
      reference: {index: 14}
    required: [reference]
  status:
    pattern: {type: Code, value: completed}
    index: 9
  identifier:
    elements:
      use: {index: 0}
      type: {index: 1}
      system: {index: 2}
      value: {index: 3}
      period: {index: 4}
      assigner: {index: 5}
    required: [value, system]
  context: {index: 11}
  basedOn: {index: 6}
  authored: {index: 12}
  subject:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/EOL-Patient-1']
    index: 10
package_version: 1.0.0
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/EOL-Preferences-QuestionnaireResponse-1
base: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
version: 1.0.0
required: [author, authored, subject]