QI-Core Implementation Guide
7.0.2 - STU 7

QI-Core Implementation Guide - Downloaded Version 7.0.2 See the Directory of published versions

## Resource Profile: QICore DeviceRequest

Official URL: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest | Version: 7.0.2
Standards status: Trial-use | Maturity Level: 4 | Computable Name: QICoreDeviceRequest

Profile of DeviceRequest for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.

"Must Have", "QI Elements" and "primary code path" are defined in the QI-Core Must Support section.
QI Elements:

- status: (QI) draft | active | on-hold | revoked | completed | entered-in-error | unknown
- modifierExtension(doNotPerform): (QI) Extension
- authoredOn: (QI) When recorded
- intent: (QI) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
- code[x]: (QI) Device requested
- code[x].extension(codeOptions): (QI) Url of a value set of candidate devices
- subject: (QI) Focus of request
- identifier: (QI) External Request identifier

Primary code path: code
(PCPath) This element is the primary code path for this resource CQL Retrieve
Usage

The FHIR R4 and the QI-Core DeviceRequest profile describes the request to use of a device by a patient. The device may be any pertinent device specified in the Device resource. Examples of devices that may be requested include a wheelchair, hearing aids, or an insulin pump. The request may lead to the dispensing of the device to the patient or for use by the patient. Orders or recommendations for use of a device for a patient use the ServiceRequest resource.

The following example illustrates the use of DeviceRequest:

    define "Device Indicating Frailty":
      [DeviceRequest: "Frailty Device"] FrailtyDeviceOrder
        where FrailtyDeviceOrder.status in { 'active', 'on-hold', 'completed' }
          and FrailtyDeviceOrder.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }
          and FrailtyDeviceOrder.doNotPerform is not true

The DeviceRequest profile defines the conformance expectations for a DeviceRequest, regardless of whether it is a positive or negative statement. The DeviceRequested and DeviceProhibited profiles derive from DeviceRequest and represent the positive and negative statements for a device request.

To create an expression indicating existence of a request for a device use the profile QICoreDeviceRequested; to specifically request information that a DeviceRequest intentionally did not occur for a medical, patient or system reason, use the profile QICoreDeviceProhibited.

See the patterns page for implementation and usage patterns.

### Examples

General DeviceRequest Example

Usages:

- Derived from this Profile: QICore Device Prohibited and QICore DeviceRequested
- Refer to this Profile: QICore Claim
- Examples for this Profile: DeviceRequest/example

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DeviceRequest | C | 0..* | DeviceRequest | Medical device request Constraints: drq-3
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:doNotPerform | ?! | 0..1 | boolean | (QI) Extension URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform
identifier | Σ | 0..* | Identifier | (QI) External Request identifier
status | ?!Σ | 0..1 | code | (QI) draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): Codes representing the status of the request.
intent | ?!Σ | 1..1 | code | (QI) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option Binding: RequestIntent (required): The kind of diagnostic request.
Slices for code[x] | Σ C | 1..1 |  | (QI) Device requested Slice: Unordered, Closed by type:$this Binding: FHIRDeviceTypes (preferred)
codeReference |  |  | Reference(QICore Device) |
codeCodeableConcept |  |  | CodeableConcept |
code[x]:codeReference | Σ | 0..1 | Reference(QICore Device) | Device requested
code[x]:codeCodeableConcept | Σ | 0..1 | CodeableConcept | Device requested Binding: FHIRDeviceTypes (example): Codes for devices that can be requested.
Slices for extension |  |  |  | Content/Rules for all slices
extension:codeOptions | C | 0..1 | canonical(ValueSet) | (QI) Url of a value set of candidate devices URL: http://hl7.org/fhir/StructureDefinition/codeOptions
subject | Σ | 1..1 | Reference(QICore Patient) | (QI) Focus of request
authoredOn | Σ | 0..1 | dateTime | (QI) When recorded
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
DeviceRequest.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
DeviceRequest.intent | Base | required | RequestIntent | 📍4.0.1 | FHIR Std.
DeviceRequest.code[x] | Base | preferred | FHIR Device Types | 📦4.0.1 | FHIR Std.
DeviceRequest.code[x]:codeCodeableConcept | Base | example | FHIR Device Types | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | DeviceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | DeviceRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | DeviceRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drq-3 | error | DeviceRequest | to indicate what device, either at least one coding in the code or a codeOptions extension shall be provided | `(code is Reference).not() implies code.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor code.coding.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from DeviceRequest

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DeviceRequest | C | 0..* | DeviceRequest | Medical device request Constraints: drq-3
Slices for modifierExtension |  |  |  | Content/Rules for all slices
modifierExtension:doNotPerform | ?! | 0..1 | boolean | (QI) Extension URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform
identifier |  | 0..* | Identifier | (QI) External Request identifier
status |  | 0..1 | code | (QI) draft | active | on-hold | revoked | completed | entered-in-error | unknown
intent |  | 1..1 | code | (QI) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Slices for code[x] | C | 1..1 |  | (QI) Device requested Slice: Unordered, Open by type:$this Binding: FHIRDeviceTypes (preferred)
codeReference |  |  | Reference(QICore Device) |
codeCodeableConcept |  |  | CodeableConcept |
code[x]:codeReference |  | 0..1 | Reference(QICore Device) | Device requested
code[x]:codeCodeableConcept |  | 0..1 | CodeableConcept | Device requested
Slices for extension |  |  |  | Content/Rules for all slices
extension:codeOptions | C | 0..1 | canonical(ValueSet) | (QI) Url of a value set of candidate devices URL: http://hl7.org/fhir/StructureDefinition/codeOptions
subject |  | 1..1 | Reference(QICore Patient) | (QI) Focus of request
authoredOn |  | 0..1 | dateTime | (QI) When recorded
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
DeviceRequest.code[x] | Base | preferred | FHIR Device Types | 📦4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
drq-3 | error | DeviceRequest | to indicate what device, either at least one coding in the code or a codeOptions extension shall be provided | `(code is Reference).not() implies code.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor code.coding.exists()`

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DeviceRequest | C | 0..* | DeviceRequest | Medical device request Constraints: drq-3
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:doNotPerform | ?! | 0..1 | boolean | (QI) Extension URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform
identifier | Σ | 0..* | Identifier | (QI) External Request identifier
instantiatesCanonical | Σ | 0..* | canonical(ActivityDefinition | PlanDefinition) | Instantiates FHIR protocol or definition
instantiatesUri | Σ | 0..* | uri | Instantiates external protocol or definition
basedOn | Σ | 0..* | Reference(Resource) | What request fulfills
priorRequest | Σ | 0..* | Reference(Resource) | What request replaces
groupIdentifier | Σ | 0..1 | Identifier | Identifier of composite request
status | ?!Σ | 0..1 | code | (QI) draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): Codes representing the status of the request.
intent | ?!Σ | 1..1 | code | (QI) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option Binding: RequestIntent (required): The kind of diagnostic request.
priority | Σ | 0..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
Slices for code[x] | Σ C | 1..1 |  | (QI) Device requested Slice: Unordered, Closed by type:$this Binding: FHIRDeviceTypes (preferred)
codeReference |  |  | Reference(QICore Device) |
codeCodeableConcept |  |  | CodeableConcept |
code[x]:codeReference | Σ | 0..1 | Reference(QICore Device) | Device requested
code[x]:codeCodeableConcept | Σ | 0..1 | CodeableConcept | Device requested Binding: FHIRDeviceTypes (example): Codes for devices that can be requested.
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:codeOptions | C | 0..1 | canonical(ValueSet) | (QI) Url of a value set of candidate devices URL: http://hl7.org/fhir/StructureDefinition/codeOptions
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | Σ | 0..1 | string | Plain text representation of the concept
parameter |  | 0..* | BackboneElement | Device details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code |  | 0..1 | CodeableConcept | Device detail Binding Description: (example): A code that identifies the device detail.
value[x] |  | 0..1 |  | Value of detail
valueCodeableConcept |  |  | CodeableConcept |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueBoolean |  |  | boolean |
subject | Σ | 1..1 | Reference(QICore Patient) | (QI) Focus of request
encounter | Σ | 0..1 | Reference(Encounter) | Encounter motivating request
occurrence[x] | Σ | 0..1 |  | Desired time or schedule for use
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
occurrenceTiming |  |  | Timing |
authoredOn | Σ | 0..1 | dateTime | (QI) When recorded
requester | Σ | 0..1 | Reference(Device | Practitioner | PractitionerRole | Organization) | Who/what is requesting diagnostics
performerType | Σ | 0..1 | CodeableConcept | Filler role Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
performer | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | HealthcareService | Patient | Device | RelatedPerson) | Requested Filler
reasonCode | Σ | 0..* | CodeableConcept | Coded Reason for request Binding: Condition/Problem/DiagnosisCodes (example): Diagnosis or problem codes justifying the reason for requesting the device.
reasonReference | Σ | 0..* | Reference(Condition | Observation | DiagnosticReport | DocumentReference) | Linked Reason for request
insurance |  | 0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage
supportingInfo |  | 0..* | Reference(Resource) | Additional clinical information
note |  | 0..* | Annotation | Notes or comments
relevantHistory |  | 0..* | Reference(Provenance) | Request provenance
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
DeviceRequest.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
DeviceRequest.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
DeviceRequest.intent | Base | required | RequestIntent | 📍4.0.1 | FHIR Std.
DeviceRequest.priority | Base | required | Request priority | 📍4.0.1 | FHIR Std.
DeviceRequest.code[x] | Base | preferred | FHIR Device Types | 📦4.0.1 | FHIR Std.
DeviceRequest.code[x]:codeCodeableConcept | Base | example | FHIR Device Types | 📍4.0.1 | FHIR Std.
DeviceRequest.parameter.​code | Base | example |  | Not State | Unknown
DeviceRequest.performerType | Base | example | Participant Roles | 📍4.0.1 | FHIR Std.
DeviceRequest.reasonCode | Base | example | Condition/Problem/Diagnosis Codes | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | DeviceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | DeviceRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | DeviceRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drq-3 | error | DeviceRequest | to indicate what device, either at least one coding in the code or a codeOptions extension shall be provided | `(code is Reference).not() implies code.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor code.coding.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from DeviceRequest

Summary

Structures

This structure refers to these other structures:

- QICore Device (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device)
- QICore Patient (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient)

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform (Modifier)
- http://hl7.org/fhir/StructureDefinition/codeOptions|7.0.2

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of DeviceRequest.code[x]

Maturity: 4

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DeviceRequest | C | 0..* | DeviceRequest | Medical device request Constraints: drq-3
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:doNotPerform | ?! | 0..1 | boolean | (QI) Extension URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform
identifier | Σ | 0..* | Identifier | (QI) External Request identifier
status | ?!Σ | 0..1 | code | (QI) draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): Codes representing the status of the request.
intent | ?!Σ | 1..1 | code | (QI) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option Binding: RequestIntent (required): The kind of diagnostic request.
Slices for code[x] | Σ C | 1..1 |  | (QI) Device requested Slice: Unordered, Closed by type:$this Binding: FHIRDeviceTypes (preferred)
codeReference |  |  | Reference(QICore Device) |
codeCodeableConcept |  |  | CodeableConcept |
code[x]:codeReference | Σ | 0..1 | Reference(QICore Device) | Device requested
code[x]:codeCodeableConcept | Σ | 0..1 | CodeableConcept | Device requested Binding: FHIRDeviceTypes (example): Codes for devices that can be requested.
Slices for extension |  |  |  | Content/Rules for all slices
extension:codeOptions | C | 0..1 | canonical(ValueSet) | (QI) Url of a value set of candidate devices URL: http://hl7.org/fhir/StructureDefinition/codeOptions
subject | Σ | 1..1 | Reference(QICore Patient) | (QI) Focus of request
authoredOn | Σ | 0..1 | dateTime | (QI) When recorded
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
DeviceRequest.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
DeviceRequest.intent | Base | required | RequestIntent | 📍4.0.1 | FHIR Std.
DeviceRequest.code[x] | Base | preferred | FHIR Device Types | 📦4.0.1 | FHIR Std.
DeviceRequest.code[x]:codeCodeableConcept | Base | example | FHIR Device Types | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | DeviceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | DeviceRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | DeviceRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drq-3 | error | DeviceRequest | to indicate what device, either at least one coding in the code or a codeOptions extension shall be provided | `(code is Reference).not() implies code.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor code.coding.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from DeviceRequest

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DeviceRequest | C | 0..* | DeviceRequest | Medical device request Constraints: drq-3
Slices for modifierExtension |  |  |  | Content/Rules for all slices
modifierExtension:doNotPerform | ?! | 0..1 | boolean | (QI) Extension URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform
identifier |  | 0..* | Identifier | (QI) External Request identifier
status |  | 0..1 | code | (QI) draft | active | on-hold | revoked | completed | entered-in-error | unknown
intent |  | 1..1 | code | (QI) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Slices for code[x] | C | 1..1 |  | (QI) Device requested Slice: Unordered, Open by type:$this Binding: FHIRDeviceTypes (preferred)
codeReference |  |  | Reference(QICore Device) |
codeCodeableConcept |  |  | CodeableConcept |
code[x]:codeReference |  | 0..1 | Reference(QICore Device) | Device requested
code[x]:codeCodeableConcept |  | 0..1 | CodeableConcept | Device requested
Slices for extension |  |  |  | Content/Rules for all slices
extension:codeOptions | C | 0..1 | canonical(ValueSet) | (QI) Url of a value set of candidate devices URL: http://hl7.org/fhir/StructureDefinition/codeOptions
subject |  | 1..1 | Reference(QICore Patient) | (QI) Focus of request
authoredOn |  | 0..1 | dateTime | (QI) When recorded
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
DeviceRequest.code[x] | Base | preferred | FHIR Device Types | 📦4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
drq-3 | error | DeviceRequest | to indicate what device, either at least one coding in the code or a codeOptions extension shall be provided | `(code is Reference).not() implies code.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor code.coding.exists()`

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DeviceRequest | C | 0..* | DeviceRequest | Medical device request Constraints: drq-3
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:doNotPerform | ?! | 0..1 | boolean | (QI) Extension URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform
identifier | Σ | 0..* | Identifier | (QI) External Request identifier
instantiatesCanonical | Σ | 0..* | canonical(ActivityDefinition | PlanDefinition) | Instantiates FHIR protocol or definition
instantiatesUri | Σ | 0..* | uri | Instantiates external protocol or definition
basedOn | Σ | 0..* | Reference(Resource) | What request fulfills
priorRequest | Σ | 0..* | Reference(Resource) | What request replaces
groupIdentifier | Σ | 0..1 | Identifier | Identifier of composite request
status | ?!Σ | 0..1 | code | (QI) draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): Codes representing the status of the request.
intent | ?!Σ | 1..1 | code | (QI) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option Binding: RequestIntent (required): The kind of diagnostic request.
priority | Σ | 0..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
Slices for code[x] | Σ C | 1..1 |  | (QI) Device requested Slice: Unordered, Closed by type:$this Binding: FHIRDeviceTypes (preferred)
codeReference |  |  | Reference(QICore Device) |
codeCodeableConcept |  |  | CodeableConcept |
code[x]:codeReference | Σ | 0..1 | Reference(QICore Device) | Device requested
code[x]:codeCodeableConcept | Σ | 0..1 | CodeableConcept | Device requested Binding: FHIRDeviceTypes (example): Codes for devices that can be requested.
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:codeOptions | C | 0..1 | canonical(ValueSet) | (QI) Url of a value set of candidate devices URL: http://hl7.org/fhir/StructureDefinition/codeOptions
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | Σ | 0..1 | string | Plain text representation of the concept
parameter |  | 0..* | BackboneElement | Device details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code |  | 0..1 | CodeableConcept | Device detail Binding Description: (example): A code that identifies the device detail.
value[x] |  | 0..1 |  | Value of detail
valueCodeableConcept |  |  | CodeableConcept |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueBoolean |  |  | boolean |
subject | Σ | 1..1 | Reference(QICore Patient) | (QI) Focus of request
encounter | Σ | 0..1 | Reference(Encounter) | Encounter motivating request
occurrence[x] | Σ | 0..1 |  | Desired time or schedule for use
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
occurrenceTiming |  |  | Timing |
authoredOn | Σ | 0..1 | dateTime | (QI) When recorded
requester | Σ | 0..1 | Reference(Device | Practitioner | PractitionerRole | Organization) | Who/what is requesting diagnostics
performerType | Σ | 0..1 | CodeableConcept | Filler role Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
performer | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | HealthcareService | Patient | Device | RelatedPerson) | Requested Filler
reasonCode | Σ | 0..* | CodeableConcept | Coded Reason for request Binding: Condition/Problem/DiagnosisCodes (example): Diagnosis or problem codes justifying the reason for requesting the device.
reasonReference | Σ | 0..* | Reference(Condition | Observation | DiagnosticReport | DocumentReference) | Linked Reason for request
insurance |  | 0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage
supportingInfo |  | 0..* | Reference(Resource) | Additional clinical information
note |  | 0..* | Annotation | Notes or comments
relevantHistory |  | 0..* | Reference(Provenance) | Request provenance
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
DeviceRequest.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
DeviceRequest.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
DeviceRequest.intent | Base | required | RequestIntent | 📍4.0.1 | FHIR Std.
DeviceRequest.priority | Base | required | Request priority | 📍4.0.1 | FHIR Std.
DeviceRequest.code[x] | Base | preferred | FHIR Device Types | 📦4.0.1 | FHIR Std.
DeviceRequest.code[x]:codeCodeableConcept | Base | example | FHIR Device Types | 📍4.0.1 | FHIR Std.
DeviceRequest.parameter.​code | Base | example |  | Not State | Unknown
DeviceRequest.performerType | Base | example | Participant Roles | 📍4.0.1 | FHIR Std.
DeviceRequest.reasonCode | Base | example | Condition/Problem/Diagnosis Codes | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | DeviceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | DeviceRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | DeviceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | DeviceRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drq-3 | error | DeviceRequest | to indicate what device, either at least one coding in the code or a codeOptions extension shall be provided | `(code is Reference).not() implies code.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor code.coding.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from DeviceRequest

Summary

Structures

This structure refers to these other structures:

- QICore Device (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device)
- QICore Patient (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient)

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform (Modifier)
- http://hl7.org/fhir/StructureDefinition/codeOptions|7.0.2

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of DeviceRequest.code[x]

Maturity: 4

Other representations of profile: CSV, Excel, Schematron