PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.sdc.r4b@3.0.0
    http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-task
description: Defines how Task is used to ask for a Questionnaire to be completed
package_name: hl7.fhir.uv.sdc.r4b
derivation: constraint
name: SDCTaskQuestionnaire
type: Task
elements:
  reasonCode: {mustSupport: true, index: 8}
  authoredOn: {mustSupport: true, index: 5}
  output:
    mustSupport: true
    index: 20
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        response:
          match:
            type:
              coding:
              - {code: questionnaire-response, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            mustSupport: true
            index: 21
            elements:
              type:
                type: CodeableConcept
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: questionnaire-response, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                index: 22
              value:
                short: url
                mustSupport: true
                choices: [valueReference]
                index: 24
              valueReference:
                short: url
                refers: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse']
                type: Reference
                mustSupport: true
                choiceOf: value
                index: 25
            required: [valueReference, value, type]
  for: {short: Patient or other Questionnaire is for, mustSupport: true, index: 4}
  requester: {mustSupport: true, index: 6}
  status: {type: code, mustSupport: true, index: 0}
  code:
    type: CodeableConcept
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/sdc/ValueSet/task-code'}
    mustSupport: true
    index: 2
  intent: {mustSupport: true, index: 1}
  focus:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-servicerequest']
    index: 3
  input:
    mustSupport: true
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        questionnaire:
          match:
            type:
              coding:
              - {code: questionnaire, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            mustSupport: true
            index: 10
            elements:
              type:
                type: CodeableConcept
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: questionnaire, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                index: 11
              value:
                short: url
                mustSupport: true
                choices: [valueCanonical]
                index: 13
              valueCanonical: {type: canonical, short: url, mustSupport: true, choiceOf: value, index: 14}
            required: [valueCanonical, value, type]
        responseEndpoint:
          match:
            type:
              coding:
              - {code: response-endpoint, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            mustSupport: true
            array: true
            index: 15
            elements:
              type:
                type: CodeableConcept
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: response-endpoint, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                index: 16
              value:
                short: url
                mustSupport: true
                choices: [valueUrl]
                index: 18
              valueUrl: {type: url, short: url, mustSupport: true, choiceOf: value, index: 19}
            required: [value, type, valueUrl]
  owner: {short: Who should complete questionnaire, mustSupport: true, index: 7}
package_version: 3.0.0
class: profile
kind: resource
url: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-task
base: http://hl7.org/fhir/StructureDefinition/Task
version: 3.0.0
required: [authoredOn, requester, status, code]