This page is part of the Da Vinci Coverage Requirements Discovery (CRD) FHIR IG (v2.2.0-ballot: STU 2.2 Ballot) based on FHIR (HL7® FHIR® Standard) R4. This version is a pre-release. The current official version is 2.1.0. For a full list of available versions, see the Directory of published versions
| Official URL: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksRequest | Version: 2.2.0-ballot | |||
| Standards status: Trial-use | Maturity Level: 4 | Computable Name: CRDHooksRequest | ||
| Other Identifiers: OID:2.16.840.1.113883.4.642.40.18.42.34 | ||||
Defines CRD-specific constraints on the CDS Hooks Request logical model
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | CDSHooksRequest | Elements defined in Ancestors:extension, hook, hookInstance, fhirServer, fhirAuthorization, context, prefetch Request for decision support Constraints: cds-r-1 |
![]() ![]() |
0..1 | CDSHooksExtensions | Extension | |
![]() ![]() |
S | 1..1 | code | Hook event triggering call Binding: CDS Hook Types Value Set (required) |
![]() ![]() |
S | 1..1 | uuid | Unique id for hook invocation When this element is read urn:uuid: is prefixed to the value before validation |
![]() ![]() |
S | 1..1 | url | Location to query for data |
![]() ![]() |
SC | 1..1 | CDSHooksElement | Auth to use in queries Constraints: cds-r-2 |
![]() ![]() ![]() |
0..1 | CDSHooksExtensions | Object that has Named Extension Properties | |
![]() ![]() ![]() |
S | 1..1 | string | Auth token for query header JSON Property Name: access_token |
![]() ![]() ![]() |
S | 1..1 | code | Bearer JSON Property Name: token_type Fixed Value: Bearer |
![]() ![]() ![]() |
S | 1..1 | integer | Seconds token is valid JSON Property Name: expires_in |
![]() ![]() ![]() |
S | 1..1 | string | Granted access scopes |
![]() ![]() ![]() |
S | 1..1 | string | Patient id for access |
![]() ![]() ![]() |
0..1 | id | OAuth 2.0 client identifier of the CDS Service | |
![]() ![]() |
S | 1..1 | CDSHookContext | Context for decision support JSON: If %resource.hook = 'appointment-book'then the type is CDSHookAppointmentBookContextJSON: If %resource.hook = 'encounter-start'then the type is CDSHookEncounterStartContextJSON: If %resource.hook = 'encounter-discharge'then the type is CDSHookEncounterDischargeContextJSON: If %resource.hook = 'patient-view'then the type is CDSHookPatientViewContextJSON: If %resource.hook = 'order-dispatch'then the type is CDSHookOrderDispatchContextJSON: If %resource.hook = 'order-sign'then the type is CDSHookOrderSignContextJSON: If %resource.hook = 'order-select'then the type is CDSHookOrderSelectContext |
![]() ![]() |
S | 0..* | Base | Prefetch info requested by server JSON: Represented as a single JSON Object with named properties using the value of the key child as the key |
![]() ![]() ![]() |
S | 1..1 | code | Key as specfied in server prefetch config |
![]() ![]() ![]() |
S | 1..1 | Resource | Resource(s) matching prefetch criteria Id may or not be present (this is the default for elements but not resources) JSON: This object can be represented as null in the JSON structure (which counts as 'present' for cardinality purposes) |
Documentation for this format | ||||
| Path | Conformance | ValueSet | URI |
| CDSHooksRequest.hook | required | CDSHookTypehttp://hl7.org/fhir/us/davinci-crd/ValueSet/cdsHookTypeFrom this IG |
| Id | Grade | Path(s) | Details | Requirements |
| cds-r-1 | error | CDSHooksRequest | if fhirAuthorization details are provided, a fhirServer SHALL be specified : fhirAuthorization.exists() implies fhirServer.exists() | |
| cds-r-2 | error | CDSHooksRequest.fhirAuthorization | If the granted SMART scopes include patient scopes (i.e. 'patient/'), the patient field SHOULD be populated to identify the FHIR id of that patient. : scope.contains('Patient/') implies patient.exists() |
This structure is derived from CDSHooksRequest
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | CDSHooksRequest | Elements defined in Ancestors:extension, hook, hookInstance, fhirServer, fhirAuthorization, context, prefetch Request for decision support | |
![]() ![]() |
0..1 | CDSHooksExtensions | Extension | |
![]() ![]() |
S | 1..1 | code | Hook event triggering call Binding: CDS Hook Types Value Set (required) |
![]() ![]() |
S | 1..1 | uuid | Unique id for hook invocation |
![]() ![]() |
S | 1..1 | url | Location to query for data |
![]() ![]() |
S | 1..1 | CDSHooksElement | Auth to use in queries |
![]() ![]() ![]() |
S | 1..1 | string | Auth token for query header |
![]() ![]() ![]() |
S | 1..1 | code | Bearer |
![]() ![]() ![]() |
S | 1..1 | integer | Seconds token is valid |
![]() ![]() ![]() |
S | 1..1 | string | Granted access scopes |
![]() ![]() ![]() |
S | 1..1 | string | Patient id for access |
![]() ![]() |
S | 1..1 | CDSHookContext | Context for decision support JSON: If %resource.hook = 'appointment-book'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDHookAppointmentBookContextJSON: If %resource.hook = 'encounter-start'then the type is http://hl7.org/fhir/tools/StructureDefinition/CDSEncounterStartContextJSON: If %resource.hook = 'encounter-discharge'then the type is http://hl7.org/fhir/tools/StructureDefinition/CDSEncounterDischargeContextJSON: If %resource.hook = 'order-dispatch'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDOrderDispatchContextJSON: If %resource.hook = 'order-select'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDHookOrderSignContextJSON: If %resource.hook = 'order-sign'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDHookOrderSignContext |
![]() ![]() |
S | 0..* | Base | Prefetch info requested by server |
![]() ![]() ![]() |
S | 1..1 | code | Key as specfied in server prefetch config |
![]() ![]() ![]() |
S | 1..1 | Resource | Resource(s) matching prefetch criteria |
Documentation for this format | ||||
| Path | Conformance | ValueSet | URI |
| CDSHooksRequest.hook | required | CDSHookTypehttp://hl7.org/fhir/us/davinci-crd/ValueSet/cdsHookTypeFrom this IG |
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | CDSHooksRequest | Elements defined in Ancestors:extension, hook, hookInstance, fhirServer, fhirAuthorization, context, prefetch Request for decision support Constraints: cds-r-1 |
![]() ![]() |
0..1 | CDSHooksExtensions | Extension | |
![]() ![]() |
S | 1..1 | code | Hook event triggering call Binding: CDS Hook Types Value Set (required) |
![]() ![]() |
S | 1..1 | uuid | Unique id for hook invocation When this element is read urn:uuid: is prefixed to the value before validation |
![]() ![]() |
S | 1..1 | url | Location to query for data |
![]() ![]() |
SC | 1..1 | CDSHooksElement | Auth to use in queries Constraints: cds-r-2 |
![]() ![]() ![]() |
0..1 | CDSHooksExtensions | Object that has Named Extension Properties | |
![]() ![]() ![]() |
S | 1..1 | string | Auth token for query header JSON Property Name: access_token |
![]() ![]() ![]() |
S | 1..1 | code | Bearer JSON Property Name: token_type Fixed Value: Bearer |
![]() ![]() ![]() |
S | 1..1 | integer | Seconds token is valid JSON Property Name: expires_in |
![]() ![]() ![]() |
S | 1..1 | string | Granted access scopes |
![]() ![]() ![]() |
S | 1..1 | string | Patient id for access |
![]() ![]() ![]() |
0..1 | id | OAuth 2.0 client identifier of the CDS Service | |
![]() ![]() |
S | 1..1 | CDSHookContext | Context for decision support JSON: If %resource.hook = 'appointment-book'then the type is CDSHookAppointmentBookContextJSON: If %resource.hook = 'encounter-start'then the type is CDSHookEncounterStartContextJSON: If %resource.hook = 'encounter-discharge'then the type is CDSHookEncounterDischargeContextJSON: If %resource.hook = 'patient-view'then the type is CDSHookPatientViewContextJSON: If %resource.hook = 'order-dispatch'then the type is CDSHookOrderDispatchContextJSON: If %resource.hook = 'order-sign'then the type is CDSHookOrderSignContextJSON: If %resource.hook = 'order-select'then the type is CDSHookOrderSelectContext |
![]() ![]() |
S | 0..* | Base | Prefetch info requested by server JSON: Represented as a single JSON Object with named properties using the value of the key child as the key |
![]() ![]() ![]() |
S | 1..1 | code | Key as specfied in server prefetch config |
![]() ![]() ![]() |
S | 1..1 | Resource | Resource(s) matching prefetch criteria Id may or not be present (this is the default for elements but not resources) JSON: This object can be represented as null in the JSON structure (which counts as 'present' for cardinality purposes) |
Documentation for this format | ||||
| Path | Conformance | ValueSet | URI |
| CDSHooksRequest.hook | required | CDSHookTypehttp://hl7.org/fhir/us/davinci-crd/ValueSet/cdsHookTypeFrom this IG |
| Id | Grade | Path(s) | Details | Requirements |
| cds-r-1 | error | CDSHooksRequest | if fhirAuthorization details are provided, a fhirServer SHALL be specified : fhirAuthorization.exists() implies fhirServer.exists() | |
| cds-r-2 | error | CDSHooksRequest.fhirAuthorization | If the granted SMART scopes include patient scopes (i.e. 'patient/'), the patient field SHOULD be populated to identify the FHIR id of that patient. : scope.contains('Patient/') implies patient.exists() |
This structure is derived from CDSHooksRequest
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | CDSHooksRequest | Elements defined in Ancestors:extension, hook, hookInstance, fhirServer, fhirAuthorization, context, prefetch Request for decision support Constraints: cds-r-1 |
![]() ![]() |
0..1 | CDSHooksExtensions | Extension | |
![]() ![]() |
S | 1..1 | code | Hook event triggering call Binding: CDS Hook Types Value Set (required) |
![]() ![]() |
S | 1..1 | uuid | Unique id for hook invocation When this element is read urn:uuid: is prefixed to the value before validation |
![]() ![]() |
S | 1..1 | url | Location to query for data |
![]() ![]() |
SC | 1..1 | CDSHooksElement | Auth to use in queries Constraints: cds-r-2 |
![]() ![]() ![]() |
0..1 | CDSHooksExtensions | Object that has Named Extension Properties | |
![]() ![]() ![]() |
S | 1..1 | string | Auth token for query header JSON Property Name: access_token |
![]() ![]() ![]() |
S | 1..1 | code | Bearer JSON Property Name: token_type Fixed Value: Bearer |
![]() ![]() ![]() |
S | 1..1 | integer | Seconds token is valid JSON Property Name: expires_in |
![]() ![]() ![]() |
S | 1..1 | string | Granted access scopes |
![]() ![]() ![]() |
S | 1..1 | string | Patient id for access |
![]() ![]() ![]() |
0..1 | id | OAuth 2.0 client identifier of the CDS Service | |
![]() ![]() |
S | 1..1 | CDSHookContext | Context for decision support JSON: If %resource.hook = 'appointment-book'then the type is CDSHookAppointmentBookContextJSON: If %resource.hook = 'encounter-start'then the type is CDSHookEncounterStartContextJSON: If %resource.hook = 'encounter-discharge'then the type is CDSHookEncounterDischargeContextJSON: If %resource.hook = 'patient-view'then the type is CDSHookPatientViewContextJSON: If %resource.hook = 'order-dispatch'then the type is CDSHookOrderDispatchContextJSON: If %resource.hook = 'order-sign'then the type is CDSHookOrderSignContextJSON: If %resource.hook = 'order-select'then the type is CDSHookOrderSelectContext |
![]() ![]() |
S | 0..* | Base | Prefetch info requested by server JSON: Represented as a single JSON Object with named properties using the value of the key child as the key |
![]() ![]() ![]() |
S | 1..1 | code | Key as specfied in server prefetch config |
![]() ![]() ![]() |
S | 1..1 | Resource | Resource(s) matching prefetch criteria Id may or not be present (this is the default for elements but not resources) JSON: This object can be represented as null in the JSON structure (which counts as 'present' for cardinality purposes) |
Documentation for this format | ||||
| Path | Conformance | ValueSet | URI |
| CDSHooksRequest.hook | required | CDSHookTypehttp://hl7.org/fhir/us/davinci-crd/ValueSet/cdsHookTypeFrom this IG |
| Id | Grade | Path(s) | Details | Requirements |
| cds-r-1 | error | CDSHooksRequest | if fhirAuthorization details are provided, a fhirServer SHALL be specified : fhirAuthorization.exists() implies fhirServer.exists() | |
| cds-r-2 | error | CDSHooksRequest.fhirAuthorization | If the granted SMART scopes include patient scopes (i.e. 'patient/'), the patient field SHOULD be populated to identify the FHIR id of that patient. : scope.contains('Patient/') implies patient.exists() |
Differential View
This structure is derived from CDSHooksRequest
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | CDSHooksRequest | Elements defined in Ancestors:extension, hook, hookInstance, fhirServer, fhirAuthorization, context, prefetch Request for decision support | |
![]() ![]() |
0..1 | CDSHooksExtensions | Extension | |
![]() ![]() |
S | 1..1 | code | Hook event triggering call Binding: CDS Hook Types Value Set (required) |
![]() ![]() |
S | 1..1 | uuid | Unique id for hook invocation |
![]() ![]() |
S | 1..1 | url | Location to query for data |
![]() ![]() |
S | 1..1 | CDSHooksElement | Auth to use in queries |
![]() ![]() ![]() |
S | 1..1 | string | Auth token for query header |
![]() ![]() ![]() |
S | 1..1 | code | Bearer |
![]() ![]() ![]() |
S | 1..1 | integer | Seconds token is valid |
![]() ![]() ![]() |
S | 1..1 | string | Granted access scopes |
![]() ![]() ![]() |
S | 1..1 | string | Patient id for access |
![]() ![]() |
S | 1..1 | CDSHookContext | Context for decision support JSON: If %resource.hook = 'appointment-book'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDHookAppointmentBookContextJSON: If %resource.hook = 'encounter-start'then the type is http://hl7.org/fhir/tools/StructureDefinition/CDSEncounterStartContextJSON: If %resource.hook = 'encounter-discharge'then the type is http://hl7.org/fhir/tools/StructureDefinition/CDSEncounterDischargeContextJSON: If %resource.hook = 'order-dispatch'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDOrderDispatchContextJSON: If %resource.hook = 'order-select'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDHookOrderSignContextJSON: If %resource.hook = 'order-sign'then the type is http://hl7.org/fhir/us/davnci-crd/StructureDefinition/CRDHookOrderSignContext |
![]() ![]() |
S | 0..* | Base | Prefetch info requested by server |
![]() ![]() ![]() |
S | 1..1 | code | Key as specfied in server prefetch config |
![]() ![]() ![]() |
S | 1..1 | Resource | Resource(s) matching prefetch criteria |
Documentation for this format | ||||
| Path | Conformance | ValueSet | URI |
| CDSHooksRequest.hook | required | CDSHookTypehttp://hl7.org/fhir/us/davinci-crd/ValueSet/cdsHookTypeFrom this IG |
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | CDSHooksRequest | Elements defined in Ancestors:extension, hook, hookInstance, fhirServer, fhirAuthorization, context, prefetch Request for decision support Constraints: cds-r-1 |
![]() ![]() |
0..1 | CDSHooksExtensions | Extension | |
![]() ![]() |
S | 1..1 | code | Hook event triggering call Binding: CDS Hook Types Value Set (required) |
![]() ![]() |
S | 1..1 | uuid | Unique id for hook invocation When this element is read urn:uuid: is prefixed to the value before validation |
![]() ![]() |
S | 1..1 | url | Location to query for data |
![]() ![]() |
SC | 1..1 | CDSHooksElement | Auth to use in queries Constraints: cds-r-2 |
![]() ![]() ![]() |
0..1 | CDSHooksExtensions | Object that has Named Extension Properties | |
![]() ![]() ![]() |
S | 1..1 | string | Auth token for query header JSON Property Name: access_token |
![]() ![]() ![]() |
S | 1..1 | code | Bearer JSON Property Name: token_type Fixed Value: Bearer |
![]() ![]() ![]() |
S | 1..1 | integer | Seconds token is valid JSON Property Name: expires_in |
![]() ![]() ![]() |
S | 1..1 | string | Granted access scopes |
![]() ![]() ![]() |
S | 1..1 | string | Patient id for access |
![]() ![]() ![]() |
0..1 | id | OAuth 2.0 client identifier of the CDS Service | |
![]() ![]() |
S | 1..1 | CDSHookContext | Context for decision support JSON: If %resource.hook = 'appointment-book'then the type is CDSHookAppointmentBookContextJSON: If %resource.hook = 'encounter-start'then the type is CDSHookEncounterStartContextJSON: If %resource.hook = 'encounter-discharge'then the type is CDSHookEncounterDischargeContextJSON: If %resource.hook = 'patient-view'then the type is CDSHookPatientViewContextJSON: If %resource.hook = 'order-dispatch'then the type is CDSHookOrderDispatchContextJSON: If %resource.hook = 'order-sign'then the type is CDSHookOrderSignContextJSON: If %resource.hook = 'order-select'then the type is CDSHookOrderSelectContext |
![]() ![]() |
S | 0..* | Base | Prefetch info requested by server JSON: Represented as a single JSON Object with named properties using the value of the key child as the key |
![]() ![]() ![]() |
S | 1..1 | code | Key as specfied in server prefetch config |
![]() ![]() ![]() |
S | 1..1 | Resource | Resource(s) matching prefetch criteria Id may or not be present (this is the default for elements but not resources) JSON: This object can be represented as null in the JSON structure (which counts as 'present' for cardinality purposes) |
Documentation for this format | ||||
| Path | Conformance | ValueSet | URI |
| CDSHooksRequest.hook | required | CDSHookTypehttp://hl7.org/fhir/us/davinci-crd/ValueSet/cdsHookTypeFrom this IG |
| Id | Grade | Path(s) | Details | Requirements |
| cds-r-1 | error | CDSHooksRequest | if fhirAuthorization details are provided, a fhirServer SHALL be specified : fhirAuthorization.exists() implies fhirServer.exists() | |
| cds-r-2 | error | CDSHooksRequest.fhirAuthorization | If the granted SMART scopes include patient scopes (i.e. 'patient/'), the patient field SHOULD be populated to identify the FHIR id of that patient. : scope.contains('Patient/') implies patient.exists() |
This structure is derived from CDSHooksRequest