QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## Resource Profile: QICoreDeviceUseStatement

Defining URL: | http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement
Version: | 4.1.0
Name: | QICoreDeviceUseStatement
Status: | Draft as of 8/22/18
Definition: | Profile of DeviceUseStatement for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.
Publisher: | http://www.hl7.org/Special/committees/cqi/index.cfm
Source Resource: | XML / JSON / Turtle

The official URL for this profile is:

    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement

Usage

See the patterns page for implementation and usage patterns.

### Examples

The provision of a wheelchair to a patient example

### Formal Views of Profile Content

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

- Text Summary
- Differential Table
- Snapshot Table
- Snapshot Table (Must Support)
- All

This structure is derived from DeviceUseStatement

Summary

Must-Support: 6 elements

Structures

This structure refers to these other structures:

- QICorePatient (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient)
- QICoreDevice (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device)

This structure is derived from DeviceUseStatement

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
DeviceUseStatement |  | 0..* | DeviceUseStatement | Record of use of a device
status | S | 1..1 | code | active | completed | entered-in-error +
subject | S | 1..1 | Reference(QICorePatient) | Patient using device
timing[x] | S | 0..1 | Timing, Period, dateTime | How often the device was used
recordedOn | S | 0..1 | dateTime | When statement was recorded
device | S | 1..1 | Reference(QICoreDevice) | Reference to device used
bodySite | S | 0..1 | CodeableConcept | Target body site
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
DeviceUseStatement |  | 0..* | DeviceUseStatement | Record of use of a device
id | Σ | 0..1 | string | 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) Max Binding: AllLanguages: A human language.
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External identifier for this record
basedOn | Σ | 0..* | Reference(ServiceRequest) | Fulfills plan, proposal or order
status | ?!S Σ | 1..1 | code | active | completed | entered-in-error + Binding: DeviceUseStatementStatus (required): A coded concept indicating the current status of the Device Usage.
subject | S Σ | 1..1 | Reference(QICorePatient) | Patient using device
derivedFrom | Σ | 0..* | Reference(ServiceRequest | Procedure | Claim | Observation | QuestionnaireResponse | DocumentReference) | Supporting information
timing[x] | S Σ | 0..1 |  | How often the device was used
timingTiming |  |  | Timing |
timingPeriod |  |  | Period |
timingDateTime |  |  | dateTime |
recordedOn | S Σ | 0..1 | dateTime | When statement was recorded
source | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | Who made the statement
device | S Σ | 1..1 | Reference(QICoreDevice) | Reference to device used
reasonCode | Σ | 0..* | CodeableConcept | Why device was used
reasonReference | Σ | 0..* | Reference(Condition | Observation | DiagnosticReport | DocumentReference | Media) | Why was DeviceUseStatement performed?
bodySite | S Σ | 0..1 | CodeableConcept | Target body site Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
note |  | 0..* | Annotation | Addition details (comments, instructions)
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
DeviceUseStatement |  | 0..* | DeviceUseStatement | Record of use of a device
status | ?!Σ | 1..1 | code | active | completed | entered-in-error + Binding: DeviceUseStatementStatus (required): A coded concept indicating the current status of the Device Usage.
subject | Σ | 1..1 | Reference(QICorePatient) | Patient using device
timing[x] | Σ | 0..1 |  | How often the device was used
timingTiming |  |  | Timing |
timingPeriod |  |  | Period |
timingDateTime |  |  | dateTime |
recordedOn | Σ | 0..1 | dateTime | When statement was recorded
device | Σ | 1..1 | Reference(QICoreDevice) | Reference to device used
bodySite | Σ | 0..1 | CodeableConcept | Target body site Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
Documentation for this format

This structure is derived from DeviceUseStatement

Summary

Must-Support: 6 elements

Structures

This structure refers to these other structures:

- QICorePatient (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient)
- QICoreDevice (http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device)

Differential View

This structure is derived from DeviceUseStatement

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
DeviceUseStatement |  | 0..* | DeviceUseStatement | Record of use of a device
status | S | 1..1 | code | active | completed | entered-in-error +
subject | S | 1..1 | Reference(QICorePatient) | Patient using device
timing[x] | S | 0..1 | Timing, Period, dateTime | How often the device was used
recordedOn | S | 0..1 | dateTime | When statement was recorded
device | S | 1..1 | Reference(QICoreDevice) | Reference to device used
bodySite | S | 0..1 | CodeableConcept | Target body site
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
DeviceUseStatement |  | 0..* | DeviceUseStatement | Record of use of a device
id | Σ | 0..1 | string | 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) Max Binding: AllLanguages: A human language.
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External identifier for this record
basedOn | Σ | 0..* | Reference(ServiceRequest) | Fulfills plan, proposal or order
status | ?!S Σ | 1..1 | code | active | completed | entered-in-error + Binding: DeviceUseStatementStatus (required): A coded concept indicating the current status of the Device Usage.
subject | S Σ | 1..1 | Reference(QICorePatient) | Patient using device
derivedFrom | Σ | 0..* | Reference(ServiceRequest | Procedure | Claim | Observation | QuestionnaireResponse | DocumentReference) | Supporting information
timing[x] | S Σ | 0..1 |  | How often the device was used
timingTiming |  |  | Timing |
timingPeriod |  |  | Period |
timingDateTime |  |  | dateTime |
recordedOn | S Σ | 0..1 | dateTime | When statement was recorded
source | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | Who made the statement
device | S Σ | 1..1 | Reference(QICoreDevice) | Reference to device used
reasonCode | Σ | 0..* | CodeableConcept | Why device was used
reasonReference | Σ | 0..* | Reference(Condition | Observation | DiagnosticReport | DocumentReference | Media) | Why was DeviceUseStatement performed?
bodySite | S Σ | 0..1 | CodeableConcept | Target body site Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
note |  | 0..* | Annotation | Addition details (comments, instructions)
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Terminology Bindings

Path | Conformance | ValueSet
DeviceUseStatement.language | preferred | CommonLanguages Max Binding: AllLanguages
DeviceUseStatement.status | required | DeviceUseStatementStatus
DeviceUseStatement.bodySite | example | SNOMEDCTBodyStructures

#### Constraints

Id | Grade | Path | Details | Requirements
dom-2 | error | DeviceUseStatement | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DeviceUseStatement | 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 | DeviceUseStatement | 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 | DeviceUseStatement | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | Best Practice | DeviceUseStatement | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | DeviceUseStatement.meta | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.implicitRules | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.language | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.text | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | DeviceUseStatement.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | error | DeviceUseStatement.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | DeviceUseStatement.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | error | DeviceUseStatement.identifier | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.basedOn | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.status | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.subject | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.derivedFrom | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.timing[x] | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.recordedOn | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.source | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.device | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.reasonCode | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.reasonReference | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.bodySite | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ele-1 | error | DeviceUseStatement.note | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |