| FHIR Infrastructure Work Group | Maturity Level: N/A | Standards Status:Trial Use | 
| Formal URI | http://hl7.org/fhir/compartment/Device | 
| Description | The set of resources associated with a particular device | 
| Identity | There is an instance of the device compartment for each Device resource, and the identity of the compartment is the same as the Device | 
| Membership | The device compartment includes any resources where the resource is explicitly linked to a Device (mostly subject or performer) | 
| Formal Definition | CompartmentDefinitionresource: XML or JSON | 
Resource based membership rules:
The following resources may be in this compartment:
| Resource | Inclusion Criteria | 
| Account | subject | 
| Appointment | actor | 
| AppointmentResponse | actor | 
| AuditEvent | agent | 
| ChargeItem | enterer or performer-actor | 
| Claim | procedure-udi or item-udi or detail-udi or subdetail-udi | 
| Communication | sender or recipient | 
| CommunicationRequest | sender or recipient | 
| Composition | author | 
| DetectedIssue | author | 
| DeviceRequest | device or subject or requester or performer | 
| DeviceUseStatement | device | 
| DiagnosticReport | subject | 
| DocumentManifest | subject or author | 
| DocumentReference | subject or author | 
| ExplanationOfBenefit | procedure-udi or item-udi or detail-udi or subdetail-udi | 
| Flag | author | 
| Group | member | 
| Invoice | participant | 
| List | subject or source | 
| Media | subject | 
| MedicationAdministration | device | 
| MessageHeader | target | 
| Observation | subject or device | 
| Provenance | agent | 
| QuestionnaireResponse | author | 
| RequestGroup | author | 
| RiskAssessment | performer | 
| Schedule | actor | 
| ServiceRequest | performer or requester | 
| Specimen | subject | 
| SupplyRequest | requester | 
A resource is in this compartment if the nominated search parameter (or chain) refers to the patient resource that defines the compartment.
The following resources are never in this compartment: