Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example CompartmentDefinition/device (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: Informative

Raw JSON (canonical form + also see JSON Format Specification)

Compartment Definition for device

{
  "resourceType" : "CompartmentDefinition",
  "id" : "device",
  "text" : {
    "status" : "extensions",
    "div" : "<div>!-- Snipped for Brevity --></div>"
  },
  "url" : "http://hl7.org/fhir/CompartmentDefinition/device",
  "version" : "5.0.0-ballot",
  "name" : "Base FHIR compartment definition for Device",
  "status" : "draft",
  "experimental" : true,
  "date" : "2022-09-07T10:58:29+10:00",
  "publisher" : "FHIR Project Team",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    }]
  }],
  "description" : "There is an instance of the device compartment for each Device resource, and the identity of the compartment is the same as the Device. The set of resources associated with a particular device",
  "code" : "Device",
  "search" : true,
  "resource" : [{
    "code" : "Account",
    "param" : ["subject"]
  },
  {
    "code" : "ActivityDefinition"
  },
  {
    "code" : "ActorDefinition"
  },
  {
    "code" : "AdministrableProductDefinition"
  },
  {
    "code" : "AdverseEvent"
  },
  {
    "code" : "AllergyIntolerance"
  },
  {
    "code" : "Appointment",
    "param" : ["actor"]
  },
  {
    "code" : "AppointmentResponse",
    "param" : ["actor"]
  },
  {
    "code" : "ArtifactAssessment"
  },
  {
    "code" : "AuditEvent",
    "param" : ["agent"]
  },
  {
    "code" : "Basic"
  },
  {
    "code" : "Binary"
  },
  {
    "code" : "BiologicallyDerivedProduct"
  },
  {
    "code" : "BodyStructure"
  },
  {
    "code" : "Bundle"
  },
  {
    "code" : "CapabilityStatement"
  },
  {
    "code" : "CarePlan"
  },
  {
    "code" : "CareTeam"
  },
  {
    "code" : "ChargeItem",
    "param" : ["enterer",
    "performer-actor"]
  },
  {
    "code" : "ChargeItemDefinition"
  },
  {
    "code" : "Citation"
  },
  {
    "code" : "Claim",
    "param" : ["procedure-udi",
    "item-udi",
    "detail-udi",
    "subdetail-udi"]
  },
  {
    "code" : "ClaimResponse"
  },
  {
    "code" : "ClinicalImpression"
  },
  {
    "code" : "ClinicalUseDefinition"
  },
  {
    "code" : "CodeSystem"
  },
  {
    "code" : "Communication",
    "param" : ["sender",
    "recipient"]
  },
  {
    "code" : "CommunicationRequest",
    "param" : ["information-provider",
    "recipient"]
  },
  {
    "code" : "CompartmentDefinition"
  },
  {
    "code" : "Composition",
    "param" : ["author"]
  },
  {
    "code" : "ConceptMap"
  },
  {
    "code" : "Condition"
  },
  {
    "code" : "ConditionDefinition"
  },
  {
    "code" : "Consent"
  },
  {
    "code" : "Contract"
  },
  {
    "code" : "Coverage"
  },
  {
    "code" : "CoverageEligibilityRequest"
  },
  {
    "code" : "CoverageEligibilityResponse"
  },
  {
    "code" : "DetectedIssue",
    "param" : ["author"]
  },
  {
    "code" : "Device"
  },
  {
    "code" : "DeviceDefinition"
  },
  {
    "code" : "DeviceDispense"
  },
  {
    "code" : "DeviceMetric"
  },
  {
    "code" : "DeviceRequest",
    "param" : ["subject",
    "requester",
    "performer"]
  },
  {
    "code" : "DeviceUsage"
  },
  {
    "code" : "DiagnosticReport",
    "param" : ["subject"]
  },
  {
    "code" : "DocumentManifest",
    "param" : ["subject",
    "author"]
  },
  {
    "code" : "DocumentReference",
    "param" : ["subject",
    "author"]
  },
  {
    "code" : "Encounter"
  },
  {
    "code" : "Endpoint"
  },
  {
    "code" : "EnrollmentRequest"
  },
  {
    "code" : "EnrollmentResponse"
  },
  {
    "code" : "EpisodeOfCare"
  },
  {
    "code" : "EventDefinition"
  },
  {
    "code" : "Evidence"
  },
  {
    "code" : "EvidenceReport"
  },
  {
    "code" : "EvidenceVariable"
  },
  {
    "code" : "ExampleScenario"
  },
  {
    "code" : "ExplanationOfBenefit",
    "param" : ["procedure-udi",
    "item-udi",
    "detail-udi",
    "subdetail-udi"]
  },
  {
    "code" : "FamilyMemberHistory"
  },
  {
    "code" : "Flag",
    "param" : ["author"]
  },
  {
    "code" : "FormularyItem"
  },
  {
    "code" : "GenomicStudy"
  },
  {
    "code" : "Goal"
  },
  {
    "code" : "GraphDefinition"
  },
  {
    "code" : "Group",
    "param" : ["member"]
  },
  {
    "code" : "GuidanceResponse"
  },
  {
    "code" : "HealthcareService"
  },
  {
    "code" : "ImagingSelection"
  },
  {
    "code" : "ImagingStudy"
  },
  {
    "code" : "Immunization"
  },
  {
    "code" : "ImmunizationEvaluation"
  },
  {
    "code" : "ImmunizationRecommendation"
  },
  {
    "code" : "ImplementationGuide"
  },
  {
    "code" : "Ingredient"
  },
  {
    "code" : "InsurancePlan"
  },
  {
    "code" : "InventoryReport"
  },
  {
    "code" : "Invoice",
    "param" : ["participant"]
  },
  {
    "code" : "Library"
  },
  {
    "code" : "Linkage"
  },
  {
    "code" : "List",
    "param" : ["subject",
    "source"]
  },
  {
    "code" : "Location"
  },
  {
    "code" : "ManufacturedItemDefinition"
  },
  {
    "code" : "Measure"
  },
  {
    "code" : "MeasureReport"
  },
  {
    "code" : "Medication"
  },
  {
    "code" : "MedicationAdministration",
    "param" : ["device"]
  },
  {
    "code" : "MedicationDispense"
  },
  {
    "code" : "MedicationKnowledge"
  },
  {
    "code" : "MedicationRequest"
  },
  {
    "code" : "MedicationUsage"
  },
  {
    "code" : "MedicinalProductDefinition"
  },
  {
    "code" : "MessageDefinition"
  },
  {
    "code" : "MessageHeader",
    "param" : ["target"]
  },
  {
    "code" : "MolecularSequence"
  },
  {
    "code" : "NamingSystem"
  },
  {
    "code" : "NutritionIntake"
  },
  {
    "code" : "NutritionOrder"
  },
  {
    "code" : "NutritionProduct"
  },
  {
    "code" : "Observation",
    "param" : ["subject",
    "device"]
  },
  {
    "code" : "ObservationDefinition"
  },
  {
    "code" : "OperationDefinition"
  },
  {
    "code" : "OperationOutcome"
  },
  {
    "code" : "Organization"
  },
  {
    "code" : "OrganizationAffiliation"
  },
  {
    "code" : "PackagedProductDefinition"
  },
  {
    "code" : "Patient"
  },
  {
    "code" : "PaymentNotice"
  },
  {
    "code" : "PaymentReconciliation"
  },
  {
    "code" : "Permission"
  },
  {
    "code" : "Person"
  },
  {
    "code" : "PlanDefinition"
  },
  {
    "code" : "Practitioner"
  },
  {
    "code" : "PractitionerRole"
  },
  {
    "code" : "Procedure"
  },
  {
    "code" : "Provenance",
    "param" : ["agent"]
  },
  {
    "code" : "Questionnaire"
  },
  {
    "code" : "QuestionnaireResponse",
    "param" : ["author"]
  },
  {
    "code" : "RegulatedAuthorization"
  },
  {
    "code" : "RelatedPerson"
  },
  {
    "code" : "RequestOrchestration",
    "param" : ["author"]
  },
  {
    "code" : "Requirements"
  },
  {
    "code" : "ResearchStudy"
  },
  {
    "code" : "ResearchSubject",
    "param" : ["subject"]
  },
  {
    "code" : "RiskAssessment",
    "param" : ["performer"]
  },
  {
    "code" : "Schedule",
    "param" : ["actor"]
  },
  {
    "code" : "SearchParameter"
  },
  {
    "code" : "ServiceRequest",
    "param" : ["performer",
    "requester"]
  },
  {
    "code" : "Slot"
  },
  {
    "code" : "Specimen",
    "param" : ["subject"]
  },
  {
    "code" : "SpecimenDefinition"
  },
  {
    "code" : "StructureDefinition"
  },
  {
    "code" : "StructureMap"
  },
  {
    "code" : "Subscription"
  },
  {
    "code" : "SubscriptionStatus"
  },
  {
    "code" : "SubscriptionTopic"
  },
  {
    "code" : "Substance"
  },
  {
    "code" : "SubstanceDefinition"
  },
  {
    "code" : "SubstanceNucleicAcid"
  },
  {
    "code" : "SubstancePolymer"
  },
  {
    "code" : "SubstanceProtein"
  },
  {
    "code" : "SubstanceReferenceInformation"
  },
  {
    "code" : "SubstanceSourceMaterial"
  },
  {
    "code" : "SupplyDelivery"
  },
  {
    "code" : "SupplyRequest",
    "param" : ["requester"]
  },
  {
    "code" : "Task"
  },
  {
    "code" : "TerminologyCapabilities"
  },
  {
    "code" : "TestReport"
  },
  {
    "code" : "TestScript"
  },
  {
    "code" : "Transport"
  },
  {
    "code" : "ValueSet"
  },
  {
    "code" : "VerificationResult"
  },
  {
    "code" : "VisionPrescription"
  }]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.