PackagesCanonicalsLogsProblems
    Packages
    fhir.r4.wales.psom@1.0.0-rc2
    https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PSOM-Task
description: Defines how a Task is used to ask for a Questionnaire to be completed. Each Task represents one PROMs Tool within a Collection Event.\r\n\r\nThis profile is based on the UKCore-Task and is heavily influenced by the [SDCTaskQuestionnaire](http://hl7.org/fhir/uv/sdc/STU3/StructureDefinition-sdc-task.profile.json.html).
package_name: fhir.r4.wales.psom
derivation: constraint
name: DataStandardsWalesPSOMTask
type: Task
elements:
  code:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: complete-questionnaire, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
    type: CodeableConcept
    index: 0
  focus: {index: 1}
  executionPeriod:
    elements:
      start: {short: PROMs Issued Date, index: 2}
      end: {short: PROMs Completion Date & Time, index: 3}
  location:
    type: Reference
    short: Event Location Code
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Location']
    index: 4
  reasonCode:
    short: PROMs Trigger Event Type
    binding: {strength: extensible, valueSet: 'https://fhir.nhs.wales/ValueSet/DataStandardsWales-PSOM-TriggerEventType'}
    index: 5
  input:
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: null
      slices:
        promsTriggerEventDate:
          match:
            type:
              coding:
              - {code: MPRPX013X, system: 'https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType'}
          schema:
            index: 7
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: MPRPX013X, system: 'https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType'}
                type: CodeableConcept
                index: 8
              value:
                short: PROMs Trigger Event Date
                choices: [valueDateTime]
                index: 10
              valueDateTime: {type: dateTime, short: PROMs Trigger Event Date, choiceOf: value, index: 11}
        promsLaterality:
          match:
            type:
              coding:
              - {code: MDEPX004X, system: 'https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType'}
          schema:
            index: 12
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: MDEPX004X, system: 'https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType'}
                type: CodeableConcept
                index: 13
              value:
                short: PROMs Laterality
                choices: [valueCodeableConcept]
                index: 15
              valueCodeableConcept: {type: CodeableConcept, short: PROMs Laterality, choiceOf: value, index: 16}
        questionnaire:
          match:
            type:
              coding:
              - {code: questionnaire, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            index: 17
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: questionnaire, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                type: CodeableConcept
                index: 18
              value:
                short: (Local) PROMs Tool
                choices: [valueCanonical]
                index: 20
              valueCanonical: {type: canonical, short: (Local) PROMs Tool, choiceOf: value, index: 21}
        responseEndpoint:
          match:
            type:
              coding:
              - {code: response-endpoint, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            index: 22
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: response-endpoint, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                type: CodeableConcept
                index: 23
              value:
                choices: [valueUrl]
                index: 25
              valueUrl: {type: url, choiceOf: value, index: 26}
  output:
    index: 27
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: null
      slices:
        response:
          match:
            type:
              coding:
              - {code: questionnaire-response, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            index: 28
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: questionnaire-response, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                type: CodeableConcept
                index: 29
              value:
                choices: [valueReference]
                index: 31
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PSOM-QuestionnaireResponse']
                index: 32
package_version: 1.0.0-rc2
class: profile
kind: resource
url: https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PSOM-Task
base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task
version: null
required: [code, reasonCode]