{
"description": "CRD-specific constraints on the order-sign CDS Hook context",
"_filename": "StructureDefinition-CRDOrderSignContext.json",
"package_name": "hl7.fhir.us.davinci-crd.r4",
"date": "2025-08-06T17:27:13+00:00",
"derivation": "constraint",
"publisher": "HL7 International / Financial Management",
"fhirVersion": "4.0.1",
"jurisdiction": [ {
"coding": [ {
"code": "US",
"system": "urn:iso:std:iso:3166"
} ]
} ],
"name": "CRDOrderSignContext",
"mapping": [ {
"uri": "http://hl7.org/v3",
"name": "RIM Mapping",
"identity": "rim"
} ],
"abstract": false,
"type": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSignContext",
"experimental": "true",
"resourceType": "StructureDefinition",
"title": "CRD CDS Hooks Specific Context for order-sign (Logical Definition)",
"package_version": "2.2.0-ballot",
"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"
} ]
}
} ],
"snapshot": {
"element": [ {
"id": "CDSHookOrderSignContext",
"max": "*",
"min": 0,
"base": {
"max": "*",
"min": 0,
"path": "Base"
},
"path": "CDSHookOrderSignContext",
"short": "The context for the order-sign hook",
"definition": "The context (hook specific)",
"isModifier": false
}, {
"id": "CDSHookOrderSignContext.userId",
"max": "1",
"min": 1,
"base": {
"max": "1",
"min": 1,
"path": "CDSHookOrderSignContext.userId"
},
"path": "CDSHookOrderSignContext.userId",
"type": [ {
"code": "url"
} ],
"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."
}, {
"id": "CDSHookOrderSignContext.patientId",
"max": "1",
"min": 1,
"base": {
"max": "1",
"min": 1,
"path": "CDSHookOrderSignContext.patientId"
},
"path": "CDSHookOrderSignContext.patientId",
"type": [ {
"code": "id"
} ],
"short": "The FHIR Patient.id of the current patient in context",
"definition": "The FHIR Patient.id of the current patient in context"
}, {
"id": "CDSHookOrderSignContext.encounterId",
"max": "1",
"min": 0,
"base": {
"max": "1",
"min": 0,
"path": "CDSHookOrderSignContext.encounterId"
},
"path": "CDSHookOrderSignContext.encounterId",
"type": [ {
"code": "id"
} ],
"short": "The FHIR Encounter.id of the current encounter in context",
"definition": "The FHIR Encounter.id of the current encounter in context"
}, {
"path": "CDSHookOrderSignContext.draftOrders",
"min": 1,
"definition": "A container for a collection of resources.",
"short": "Contains a collection of resources",
"mapping": [ {
"map": "Entity. Role, or Act",
"identity": "rim"
}, {
"map": "N/A",
"identity": "v2"
}, {
"map": "N/A",
"identity": "rim"
}, {
"map": "ClinicalDocument, if bundle.type = document",
"identity": "cda"
} ],
"type": [ {
"code": "Bundle",
"profile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-bundle-request" ]
} ],
"extension": [ {
"url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation",
"valueCode": "optional"
} ],
"max": "1",
"id": "CDSHookOrderSignContext.draftOrders",
"base": {
"max": "1",
"min": 1,
"path": "CDSHookOrderSignContext.draftOrders"
}
} ],
"extension": [ {
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
"valueString": "0.8.0"
} ]
},
"status": "draft",
"id": "98440d99-65d2-4f12-8c61-3b6c8e884bcc",
"kind": "logical",
"url": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDOrderSignContext",
"identifier": [ {
"value": "urn:oid:2.16.840.1.113883.4.642.40.18.42.37",
"system": "urn:ietf:rfc:3986"
} ],
"version": "2.2.0-ballot",
"differential": {
"element": [ {
"id": "CDSHookOrderSignContext",
"path": "CDSHookOrderSignContext"
}, {
"id": "CDSHookOrderSignContext.draftOrders",
"path": "CDSHookOrderSignContext.draftOrders",
"type": [ {
"code": "Bundle",
"profile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-bundle-request" ]
} ]
} ]
},
"contact": [ {
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/fm",
"system": "url"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSignContext"
}