PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci@cdex-2.1.0
    http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-data-request
description: This Task profile is used to solicit information from a system. The Data Consumer uses it when direct query transactions are not an option, and the transaction may require human intervention. It represents both the data request and the returned \"data request\".  Data requests are supplied as codes, free-text, or FHIR Restful queries. It can also support requests for more detailed missing data using Questionnaire, CQL, and QuestionnaireResponse as supported by Da Vinci DTR.\n\nIt constrains the following elements to be *mandatory* (min=1):\n\n- A `Task.status` with a required binding to HRex [Task Status ValueSet](http://hl7.org/fhir/us/davinci-hrex/STU1.1/ValueSet-hrex-task-status.html) (this element is a mandatory Task element). For guidance when the provider is not able to complete the Task, refer to the [When The Task Cannot Be Completed section](task-based-approach.html#when-the-task-cannot-be-completed).\n- A `Task.intent` fixed to \"order\" (this element is a mandatory Task element)\n- A `Task.code` of \"data-request-query\", \"data-request-code\", or \"data-request-questionnaire\" communicating that the Data Consumer is requesting data using a FHIR RESTful query, a code (or free text), or a data request questionnaire.\n  - If the code is \"data-request-query\", the provider system returns data(s) identified by the FHIR RESTful query in the \"query\" input parameter.\n  - If the code is \"data-request-code\", the provider system returns data(s) identified by the LOINC code in the \"code\" input parameter.\n  - If the code is \"data-request-questionnaire\", the provider system uses [Documentation Templates and Rules (DTR)](https://hl7.org/fhir/us/davinci-dtr/STU2.1/index.html) to complete the Questionnaire referenced in the \"questionnaire\" input parameter.\n- A `Task.for` element representing the member (i.e.,patient) for whom the data is being requested\n- A `Task.authoredOn` to communicate the date and time this task was created\n- A `Task.requester` element communicating who is requesting the data\n- A `Task.owner` element representing the Provider who is being asked to provide the data\n\nIt constrains following elements to be [*must support*](task-based-conformance.html#cdex-must-support-definition) (min=0):\n\n- A `Task.identifier` element representing the unique data request identifier\n- A `Task.basedOn` element to communicate the order (ServiceRequest, CommunicationRequest, etc.) that authorizes the data request\n- A `Task.statusReason.text` to communicate the reason for the status (for example, if the Task is rejected or failed)\n- A `Task.businessStatus.text` element representing the progress in retrieving the data (for example, \"waiting on internal review\").\n- A `Task.for.reference.identifier` element representing a patient business identifier like a Member ID\n- A `Task.requester.reference.identifier` element representing the Data Consumer business identifier\n- A `Task.owner.reference.identifier` element representing the Provider business identifier\n- A `Task.reasonCode.text` to communicate why the data is being requested\n- A `Task.reasonReference.reference.identifier` for the claim, pre-auth or coverage business identifier*\n- A \"query\" `Task.input` element to communicate to the provider what information is needed using a FHIR RESTful query.*\n- A \"code\" `Task.input` element to communicate to the provider what information is needed using a LOINC code.*\n  - For the \"code\" `Task.input` element, an extensible LOINC® Document types value set to communicate the specific information being requested\n- A `Task.input` element representing a flag to indicate whether the requested data requires a signature\n- A \"data\" `Task.output` element referring to FHIR resource(s) representing the result(s) of the data request.\n\nIt defines the following elements to be *optional*:\n- A `meta.tag` element representing work-queue hints. Refer to the [Work Queues](task-based-approach.html#work-queues) section For more information about work-queue hint codes.\n- A \"questionnaire\" `Task.input` element to communicate to the provider a URL of a data request [FHIR Questionnaire](http://hl7.org/fhir/questionnaire.html) that conforms to the [DTR Standard Questionnaire Profile](http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire) or the [DTR Questionnaire for Adaptive Form Profile](http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt).*\n  - A questionnaireDisplay extension to communicate the display name of the Questionnaire\n- A `Task.input` element representing the purpose of use for the requested data using an extensible [CDex Purpose of Use Value Set](ValueSet-cdex-POU.html)\n- A \"response\" `Task.output` element which is a local reference to the [FHIR QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html) resulting from the data request Questionnaire. The QuestionnaireResponse conforms to the [CDex SDC QuestionnaireResponse Profile](StructureDefinition-cdex-sdc-questionnaireresponse.html) or the [SDC Adaptive Questionnaire Response Profile](http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse-adapt).\n\nIt prohibits the following elements (max=0):\n- `Task.focus`\n\n\\* Either a \"query\", \"code\", or \"questionnaire\" `Task.input` element is required
package_name: hl7.fhir.us.davinci
derivation: constraint
name: CDexTaskDataRequest
type: Task
elements:
  meta:
    index: 0
    elements:
      tag:
        index: 1
        elements:
          system: {index: 2}
          code: {index: 3}
        required: [system, code]
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: value}
          min: null
          slices:
            work-queue:
              match: {}
              schema:
                short: Work Queue Tag
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-cdex/ValueSet/cdex-work-queue'}
                index: 4
  reasonCode:
    mustSupport: true
    index: 25
    elements:
      text: {mustSupport: true, index: 26}
    required: [text]
  statusReason:
    mustSupport: true
    index: 8
    elements:
      text: {mustSupport: true, index: 9}
    required: [text]
  authoredOn: {mustSupport: true, index: 20}
  output:
    mustSupport: true
    index: 56
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: null
      slices:
        data:
          match:
            type:
              coding:
              - {code: data-value, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
          schema:
            short: Requested data
            mustSupport: true
            index: 57
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: data-value, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
                index: 58
              value:
                short: data reference
                mustSupport: true
                choices: [valueReference]
                index: 60
              valueReference: {type: Reference, short: data reference, mustSupport: true, choiceOf: value, index: 61}
        response:
          match:
            type:
              coding:
              - {code: questionnaire-response, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            index: 62
            elements:
              type:
                type: CodeableConcept
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: questionnaire-response, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                index: 63
              value:
                short: Reference to the QuestionnaireResponse
                choices: [valueReference]
                index: 65
              valueReference:
                type: Reference
                short: Reference to the QuestionnaireResponse
                choiceOf: value
                refers: ['http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-sdc-questionnaireresponse', 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse-adapt']
                index: 66
            required: [valueReference, value]
  businessStatus:
    short: For example, 'waiting on internal review'
    mustSupport: true
    index: 10
    elements:
      text: {mustSupport: true, index: 11}
    required: [text]
  for:
    type: Reference
    short: Member (i.e., patient) being queried
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|3.1.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|6.1.0', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|7.0.0']
    index: 18
    elements:
      identifier: {short: Patient Member ID, mustSupport: true, index: 19}
  requester:
    type: Reference
    short: Who is asking for data
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|3.1.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|6.1.0', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|7.0.0', 'http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-organization']
    index: 21
    elements:
      identifier: {short: Data Consumer ID, mustSupport: true, index: 22}
  status:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-hrex/ValueSet/hrex-task-status'}
    mustSupport: true
    index: 7
  code:
    short: data-request-query | data-request-code | data-request-questionnaire
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-cdex/ValueSet/cdex-data-request-task-code'}
    mustSupport: true
    index: 13
    elements:
      coding:
        mustSupport: true
        index: 14
        elements:
          system:
            pattern: {type: Uri, value: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
            mustSupport: true
            index: 15
          code: {mustSupport: true, index: 16}
        required: [code]
    required: [coding]
  identifier: {mustSupport: true, index: 5}
  intent:
    pattern: {type: Code, value: order}
    mustSupport: true
    index: 12
  focus: {short: What task is acting on, index: 17}
  input:
    mustSupport: true
    index: 29
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: 1
      slices:
        query:
          match:
            type:
              coding:
              - {code: data-query, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
          schema:
            short: Requested query
            mustSupport: true
            index: 30
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: data-query, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
                index: 31
              value:
                short: query value
                mustSupport: true
                choices: [valueString]
                index: 33
              valueString: {type: string, short: query value, mustSupport: true, choiceOf: value, index: 34}
        code:
          match:
            type:
              coding:
              - {code: data-code, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
          schema:
            short: Requested data code
            mustSupport: true
            index: 35
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: data-code, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
                index: 36
              value:
                short: query value
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 38
              valueCodeableConcept: {type: CodeableConcept, short: query value, mustSupport: true, choiceOf: value, index: 39}
            required: [value, valueCodeableConcept]
        questionnaire:
          match:
            type:
              coding:
              - {code: questionnaire, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
          schema:
            short: Data Request questionnaire
            index: 40
            elements:
              type:
                type: CodeableConcept
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: questionnaire, system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/temp'}
                index: 41
              value:
                short: URL
                choices: [valueCanonical]
                index: 43
              valueCanonical: {type: canonical, short: URL, choiceOf: value, index: 44}
              value[x]:
                extensions:
                  questionnaireDisplay: {url: 'http://hl7.org/fhir/StructureDefinition/display', min: 0, max: 1, type: Extension, index: 45}
                elements:
                  extension:
                    type: Extension
                    url: http://hl7.org/fhir/StructureDefinition/display
                    index: 45
                    slicing:
                      slices:
                        questionnaireDisplay:
                          match: {}
                          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/display', index: 45}
                          min: 0
                          max: 1
            required: [valueCanonical, value, type]
        signature:
          match:
            type:
              coding:
              - {code: signature-flag, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
          schema:
            short: Signature flag
            mustSupport: true
            index: 46
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: signature-flag, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
                index: 47
              value:
                short: Signature flag value
                mustSupport: true
                choices: [valueBoolean]
                index: 49
              valueBoolean: {type: boolean, short: Signature flag value, mustSupport: true, choiceOf: value, index: 50}
        POU:
          match:
            type:
              coding:
              - {code: purpose-of-use, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
          schema:
            short: Purpose of use code
            index: 51
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: purpose-of-use, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
                index: 52
              value:
                short: Purpose of use value
                choices: [valueCodeableConcept]
                index: 54
              valueCodeableConcept: {type: CodeableConcept, short: Purpose of use value, choiceOf: value, index: 55}
  basedOn: {short: Authorization for data request, mustSupport: true, index: 6}
  owner:
    type: Reference
    short: Who is being asked for data
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|3.1.1', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|6.1.0', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|7.0.0', 'http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-organization']
    index: 23
    elements:
      identifier: {short: Provider ID, mustSupport: true, index: 24}
  reasonReference:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Claim', 'http://hl7.org/fhir/StructureDefinition/Coverage', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-coverage|6.1.0', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-coverage|7.0.0']
    index: 27
    elements:
      identifier: {short: Coverage or Claim ID, mustSupport: true, index: 28}
package_version: cdex-2.1.0
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-data-request
base: http://hl7.org/fhir/StructureDefinition/Task
version: 2.1.0
required: [owner, authoredOn, requester, for, input, code]