Package | hl7.fhir.us.davinci-crd |
Resource Type | StructureDefinition |
Id | CRDOrderSelectContext |
FHIR Version | R4 |
Source | http://hl7.org/fhir/us/davinci-crd/https://build.fhir.org/ig/HL7/davinci-crd/StructureDefinition-CRDOrderSelectContext.html |
URL | http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDOrderSelectContext |
Version | 2.2.0-ballot |
Status | draft |
Date | 2025-07-30T21:58:39+00:00 |
Name | CRDOrderSelectContext |
Title | CRD CDS Hooks Specific Context for order-select (Logical Definition) |
Realm | us |
Authority | hl7 |
Description | CRD-specific constraints on the order-select CDS Hook context |
Type | http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext |
Kind | logical |
No resources found
StructureDefinition | |
CDSHookOrderSelectContext | CDS Hook Specific Context for order-select (Logical Definition) |
profile-bundle-request | CRD Bundle of Request Resources |
Note: links and images are rebased to the (stated) source
Generated Narrative: StructureDefinition CRDOrderSelectContext
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
![]() ![]() | 0..* | CDSHookOrderSelectContext | Elements defined in Ancestors:userId, patientId, encounterId, selections, draftOrders The context for the order-select hook | |
![]() ![]() ![]() | 1..1 | CRDRequestBundle | Contains a collection of resources | |
{ "resourceType": "StructureDefinition", "id": "CRDOrderSelectContext", "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": "fm" }, { "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/us/davinci-crd/ImplementationGuide/davinci-crd" } ] } } ], "url": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDOrderSelectContext", "identifier": [ { "system": "urn:ietf:rfc:3986", "value": "urn:oid:2.16.840.1.113883.4.642.40.18.42.39" } ], "version": "2.2.0-ballot", "name": "CRDOrderSelectContext", "title": "CRD CDS Hooks Specific Context for order-select (Logical Definition)", "status": "draft", "experimental": true, "date": "2025-07-30T21:58:39+00:00", "publisher": "HL7 International / Financial Management", "contact": [ { "telecom": [ { "system": "url", "value": "http://www.hl7.org/Special/committees/fm" } ] } ], "description": "CRD-specific constraints on the order-select CDS Hook context", "jurisdiction": [ { "coding": [ { "system": "urn:iso:std:iso:3166", "code": "US" } ] } ], "fhirVersion": "4.0.1", "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/CDSHookOrderSelectContext", "derivation": "constraint", "snapshot": { "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", "valueString": "0.7.1" } ], "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;)", "source": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext" } ] }, { "id": "CDSHookOrderSelectContext.draftOrders", "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation", "valueCode": "optional" } ], "path": "CDSHookOrderSelectContext.draftOrders", "short": "Contains a collection of resources", "definition": "A container for a collection of resources.", "min": 1, "max": "1", "base": { "path": "CDSHookOrderSelectContext.draftOrders", "min": 1, "max": "1" }, "type": [ { "code": "Bundle", "profile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-bundle-request" ] } ], "mapping": [ { "identity": "rim", "map": "Entity. Role, or Act" }, { "identity": "v2", "map": "N/A" }, { "identity": "rim", "map": "N/A" }, { "identity": "cda", "map": "ClinicalDocument, if bundle.type = document" } ] } ] }, "differential": { "element": [ { "id": "CDSHookOrderSelectContext", "path": "CDSHookOrderSelectContext" }, { "id": "CDSHookOrderSelectContext.draftOrders", "path": "CDSHookOrderSelectContext.draftOrders", "type": [ { "code": "Bundle", "profile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-bundle-request" ] } ] } ] } }