PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.tools.r5@0.4.0
    http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext
description: 'This structure is defined to allow the FHIR Validator to validate a CDSHooks order-select context. TODO: This content will be moved to the CDS Hooks specification in the future'
package_name: hl7.fhir.uv.tools.r5
derivation: specialization
name: CDSHookOrderSelectContext
type: http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext
elements:
  userId: {type: url, short: 'The id of the current user. Must be in the format [ResourceType]/[id].', index: 0}
  patientId: {type: id, short: The FHIR Patient.id of the current patient in context, index: 1}
  encounterId: {type: id, short: The FHIR Encounter.id of the current encounter in context, index: 2}
  selections:
    type: uri
    short: The FHIR ids of the newly selected order(s)
    constraint:
      ord-1: {human: 'Must be in the format {type}/{id}', severity: error, expression: 'value.matches(''^[\\d\\w]+\\/[\\d\\w-.]+$'')'}
    array: true
    index: 3
  draftOrders: {type: Bundle, short: 'FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status', index: 4}
package_version: 0.4.0
class: logical
kind: logical
url: http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext
base: http://hl7.org/fhir/tools/StructureDefinition/CDSHookContext
version: 0.4.0
required: [userId, patientId, draftOrders]