Package | hl7.fhir.uv.tools |
Type | StructureDefinition |
Id | CDSHookOrderSelectContext |
FHIR Version | R5 |
Source | http://hl7.org/fhir/tools/https://build.fhir.org/ig/FHIR/fhir-tools-ig/StructureDefinition-CDSHookOrderSelectContext.html |
URL | http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext |
Version | 0.6.0-cibuild |
Status | draft |
Date | 2025-07-20T10:49:18+00:00 |
Name | CDSHookOrderSelectContext |
Title | CDS Hook Specific Context for order-select (Logical Definition) |
Realm | uv |
Authority | hl7 |
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 |
Type | http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext |
Kind | logical |
No resources found
StructureDefinition | |
CDSHookContext | CDS Hook Specific Context (Logical Definition) |
CDSHookContext | CDS Hook Specific Context (Logical Definition) |
Note: links and images are rebased to the (stated) source
English
Generated Narrative: StructureDefinition CDSHookOrderSelectContext
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
![]() ![]() | 0..* | CDSHookContext | The context for the order-select hook | |
![]() ![]() ![]() | 1..1 | url | The id of the current user. Must be in the format [ResourceType]/[id]. | |
![]() ![]() ![]() | 1..1 | id | The FHIR Patient.id of the current patient in context | |
![]() ![]() ![]() | 0..1 | id | The FHIR Encounter.id of the current encounter in context | |
![]() ![]() ![]() | C | 0..* | uri | The FHIR ids of the newly selected order(s) Constraints: ord-1 |
![]() ![]() ![]() | 1..1 | Bundle | FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status Id may or not be present (this is the default for elements but not resources) | |
Spanish
Generated Narrative: StructureDefinition CDSHookOrderSelectContext
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
![]() ![]() | 0..* | CDSHookContext | The context for the order-select hook | |
![]() ![]() ![]() | 1..1 | url | The id of the current user. Must be in the format [ResourceType]/[id]. | |
![]() ![]() ![]() | 1..1 | id | The FHIR Patient.id of the current patient in context | |
![]() ![]() ![]() | 0..1 | id | The FHIR Encounter.id of the current encounter in context | |
![]() ![]() ![]() | C | 0..* | uri | The FHIR ids of the newly selected order(s) Constraints: ord-1 |
![]() ![]() ![]() | 1..1 | Bundle | FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status Id may or not be present (this is the default for elements but not resources) | |
{ "resourceType": "StructureDefinition", "id": "CDSHookOrderSelectContext", "text": { "status": "extensions", "div": "<!-- snip (see above) -->" }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/tools/StructureDefinition/json-suppress-resourcetype", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "fhir" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "informative", "_valueCode": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom", "valueCanonical": "http://hl7.org/fhir/tools/ImplementationGuide/hl7.fhir.uv.tools" } ] } } ], "url": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext", "identifier": [ { "system": "urn:ietf:rfc:3986", "value": "urn:oid:2.16.840.1.113883.4.642.40.1.42.2" } ], "version": "0.6.0-cibuild", "name": "CDSHookOrderSelectContext", "title": "CDS Hook Specific Context for order-select (Logical Definition)", "status": "draft", "experimental": true, "date": "2025-07-20T10:49:18+00:00", "publisher": "HL7 International / FHIR Infrastructure", "contact": [ { "telecom": [ { "system": "url", "value": "http://www.hl7.org/Special/committees/fiwg" } ] } ], "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", "jurisdiction": [ { "coding": [ { "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "code": "001" } ] } ], "fhirVersion": "5.0.0", "mapping": [ { "identity": "rim", "uri": "http://hl7.org/v3", "name": "RIM Mapping" } ], "kind": "logical", "abstract": false, "type": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext", "baseDefinition": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookContext", "derivation": "specialization", "snapshot": { "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", "valueString": "0.6.0-cibuild" } ], "element": [ { "id": "CDSHookOrderSelectContext", "path": "CDSHookOrderSelectContext", "short": "The context for the order-select hook", "definition": "The context (hook specific)", "min": 0, "max": "*", "base": { "path": "Base", "min": 0, "max": "*" }, "isModifier": false, "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "id": "CDSHookOrderSelectContext.userId", "path": "CDSHookOrderSelectContext.userId", "short": "The id of the current user. Must be in the format [ResourceType]/[id].", "definition": "For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123.", "min": 1, "max": "1", "base": { "path": "CDSHookOrderSelectContext.userId", "min": 1, "max": "1" }, "type": [ { "code": "url" } ] }, { "id": "CDSHookOrderSelectContext.patientId", "path": "CDSHookOrderSelectContext.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": "CDSHookOrderSelectContext.patientId", "min": 1, "max": "1" }, "type": [ { "code": "id" } ] }, { "id": "CDSHookOrderSelectContext.encounterId", "path": "CDSHookOrderSelectContext.encounterId", "short": "The FHIR Encounter.id of the current encounter in context", "definition": "The FHIR Encounter.id of the current encounter in context", "min": 0, "max": "1", "base": { "path": "CDSHookOrderSelectContext.encounterId", "min": 0, "max": "1" }, "type": [ { "code": "id" } ] }, { "id": "CDSHookOrderSelectContext.selections", "path": "CDSHookOrderSelectContext.selections", "short": "The FHIR ids of the newly selected order(s)", "definition": "The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103", "min": 0, "max": "*", "base": { "path": "CDSHookOrderSelectContext.selections", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "constraint": [ { "key": "ord-1", "severity": "error", "human": "Must be in the format {type}/{id}", "expression": "value.matches('^[\\\\d\\\\w]+\\\\/[\\\\d\\\\w-.]+[%content%]#39;)" } ] }, { "id": "CDSHookOrderSelectContext.draftOrders", "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation", "valueCode": "optional" } ], "path": "CDSHookOrderSelectContext.draftOrders", "short": "FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status", "definition": "FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status", "min": 1, "max": "1", "base": { "path": "CDSHookOrderSelectContext.draftOrders", "min": 1, "max": "1" }, "type": [ { "code": "Bundle" } ] } ] }, "differential": { "element": [ { "id": "CDSHookOrderSelectContext", "path": "CDSHookOrderSelectContext", "short": "The context for the order-select hook" }, { "id": "CDSHookOrderSelectContext.userId", "path": "CDSHookOrderSelectContext.userId", "short": "The id of the current user. Must be in the format [ResourceType]/[id].", "definition": "For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123.", "min": 1, "max": "1", "type": [ { "code": "url" } ] }, { "id": "CDSHookOrderSelectContext.patientId", "path": "CDSHookOrderSelectContext.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": "CDSHookOrderSelectContext.encounterId", "path": "CDSHookOrderSelectContext.encounterId", "short": "The FHIR Encounter.id of the current encounter in context", "definition": "The FHIR Encounter.id of the current encounter in context", "min": 0, "max": "1", "type": [ { "code": "id" } ] }, { "id": "CDSHookOrderSelectContext.selections", "path": "CDSHookOrderSelectContext.selections", "short": "The FHIR ids of the newly selected order(s)", "definition": "The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103", "min": 0, "max": "*", "type": [ { "code": "uri" } ], "constraint": [ { "key": "ord-1", "severity": "error", "human": "Must be in the format {type}/{id}", "expression": "value.matches('^[\\\\d\\\\w]+\\\\/[\\\\d\\\\w-.]+[%content%]#39;)" } ] }, { "id": "CDSHookOrderSelectContext.draftOrders", "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation", "valueCode": "optional" } ], "path": "CDSHookOrderSelectContext.draftOrders", "short": "FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status", "definition": "FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status", "min": 1, "max": "1", "type": [ { "code": "Bundle" } ] } ] } }