FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.cds-hooks-library
Resource TypeStructureDefinition
IdStructureDefinition-CDSHookOrderDispatchContext.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/HL7/cds-hooks-library/StructureDefinition-CDSHookOrderDispatchContext.html
URLhttp://cds-hooks.hl7.org/hooks/StructureDefinition/CDSHookOrderDispatchContext
Version2.0.0-cibuild
Statusdraft
Date2026-04-22T14:59:47+00:00
NameCDSHookOrderDispatchContext
TitleCDS Hooks Specific Context for order-dispatch (Logical Definition)
Realmuv
Authorityhl7
DescriptionThis structure is defined to allow the FHIR Validator to validate a CDSHooks order-dispatch context.
Typehttp://cds-hooks.hl7.org/hooks/StructureDefinition/CDSHookOrderDispatchContext
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

StructureDefinition
hl7.fhir.uv.tools#currentCDSHookContextCDS Hook Specific Context (Logical Definition)

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition CDSHookOrderDispatchContext

NameFlagsCard.TypeDescription & Constraintsdoco
.. CDSHookOrderDispatchContext 0..*CDSHookContextThe context for the order-dispatch hook
... patientId 1..1idThe FHIR Patient.id of the current patient in context
... dispatchedOrders 1..*stringArray of FHIR references
Id may or not be present (this is the default for elements but not resources)
... performer C1..1stringWho orders are dispatched to in form [ResourceType]/[ResourceId]
Constraints: ord-1
... fulfillmentTasks 0..*stringArray of Task resources
Id may or not be present (this is the default for elements but not resources)

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "CDSHookOrderDispatchContext",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/json-suppress-resourcetype",
      "valueBoolean": true
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "cds"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "informative",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://cds-hooks.hl7.org/hooks/ImplementationGuide/hl7.fhir.uv.cds-hooks-library"
          }
        ]
      }
    }
  ],
  "url": "http://cds-hooks.hl7.org/hooks/StructureDefinition/CDSHookOrderDispatchContext",
  "version": "2.0.0-cibuild",
  "name": "CDSHookOrderDispatchContext",
  "title": "CDS Hooks Specific Context for order-dispatch (Logical Definition)",
  "status": "draft",
  "experimental": true,
  "date": "2026-04-22T14:59:47+00:00",
  "publisher": "Clinical Decision Support WG",
  "contact": [
    {
      "name": "Clinical Decision Support WG",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/dss/index.cfm"
        },
        {
          "system": "email",
          "value": "cds@lists.HL7.org"
        }
      ]
    }
  ],
  "description": "This structure is defined to allow the FHIR Validator to validate a CDSHooks order-dispatch context.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "http://cds-hooks.hl7.org/hooks/StructureDefinition/CDSHookOrderDispatchContext",
  "baseDefinition": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookContext",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "1.1.0"
      }
    ],
    "element": [
      {
        "id": "CDSHookOrderDispatchContext",
        "path": "CDSHookOrderDispatchContext",
        "short": "The context for the order-dispatch hook",
        "definition": "This structure is defined to allow the FHIR Validator to validate a CDSHooks order-dispatch context.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "CDSHookOrderDispatchContext.patientId",
        "path": "CDSHookOrderDispatchContext.patientId",
        "short": "The FHIR Patient.id of the current patient in context",
        "definition": "The FHIR Patient.id of the current patient in context",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CDSHookOrderDispatchContext.patientId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ]
      },
      {
        "id": "CDSHookOrderDispatchContext.dispatchedOrders",
        "extension": [
          {
            "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation",
            "valueCode": "optional"
          }
        ],
        "path": "CDSHookOrderDispatchContext.dispatchedOrders",
        "short": "Array of FHIR references",
        "definition": "Collection of the FHIR local references for the Request resource(s) for which fulfillment is sought E.g. `ServiceRequest/123`",
        "min": 1,
        "max": "*",
        "base": {
          "path": "CDSHookOrderDispatchContext.dispatchedOrders",
          "min": 1,
          "max": "*"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CDSHookOrderDispatchContext.performer",
        "path": "CDSHookOrderDispatchContext.performer",
        "short": "Who orders are dispatched to in form [ResourceType]/[ResourceId]",
        "definition": "The FHIR local reference for the Practitioner, PractitionerRole, Organization, CareTeam, etc. who is being asked to execute the order. E.g. `Practitioner/456`",
        "min": 1,
        "max": "1",
        "base": {
          "path": "CDSHookOrderDispatchContext.performer",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ord-1",
            "severity": "error",
            "human": "Must be in the format {type}/{id}",
            "expression": "$this.matches('^[\\\\d\\\\w]+\\\\/[\\\\d\\\\w-.]+[%content%]#39;)",
            "source": "http://cds-hooks.hl7.org/hooks/StructureDefinition/CDSHookOrderDispatchContext"
          }
        ]
      },
      {
        "id": "CDSHookOrderDispatchContext.fulfillmentTasks",
        "extension": [
          {
            "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation",
            "valueCode": "optional"
          }
        ],
        "path": "CDSHookOrderDispatchContext.fulfillmentTasks",
        "short": "Array of Task resources",
        "definition": "Collection of Task resources",
        "min": 0,
        "max": "*",
        "base": {
          "path": "CDSHookOrderDispatchContext.fulfillmentTasks",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "CDSHookOrderDispatchContext",
        "path": "CDSHookOrderDispatchContext",
        "short": "The context for the order-dispatch hook",
        "definition": "This structure is defined to allow the FHIR Validator to validate a CDSHooks order-dispatch context."
      },
      {
        "id": "CDSHookOrderDispatchContext.patientId",
        "path": "CDSHookOrderDispatchContext.patientId",
        "short": "The FHIR Patient.id of the current patient in context",
        "definition": "The FHIR Patient.id of the current patient in context",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ]
      },
      {
        "id": "CDSHookOrderDispatchContext.dispatchedOrders",
        "extension": [
          {
            "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation",
            "valueCode": "optional"
          }
        ],
        "path": "CDSHookOrderDispatchContext.dispatchedOrders",
        "short": "Array of FHIR references",
        "definition": "Collection of the FHIR local references for the Request resource(s) for which fulfillment is sought E.g. `ServiceRequest/123`",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CDSHookOrderDispatchContext.performer",
        "path": "CDSHookOrderDispatchContext.performer",
        "short": "Who orders are dispatched to in form [ResourceType]/[ResourceId]",
        "definition": "The FHIR local reference for the Practitioner, PractitionerRole, Organization, CareTeam, etc. who is being asked to execute the order. E.g. `Practitioner/456`",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ord-1",
            "severity": "error",
            "human": "Must be in the format {type}/{id}",
            "expression": "$this.matches('^[\\\\d\\\\w]+\\\\/[\\\\d\\\\w-.]+[%content%]#39;)",
            "source": "http://cds-hooks.hl7.org/hooks/StructureDefinition/CDSHookOrderDispatchContext"
          }
        ]
      },
      {
        "id": "CDSHookOrderDispatchContext.fulfillmentTasks",
        "extension": [
          {
            "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation",
            "valueCode": "optional"
          }
        ],
        "path": "CDSHookOrderDispatchContext.fulfillmentTasks",
        "short": "Array of Task resources",
        "definition": "Collection of Task resources",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}