This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Example Compartment
{
"resourceType" : "CompartmentDefinition",
"id" : "example",
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
}],
"url" : "http://hl7.org/fhir/CompartmentDefinition/example",
"name" : "EXAMPLE",
"title" : "E X A M P L E",
"status" : "draft",
"experimental" : true,
"date" : "2017-02-24",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [{
"telecom" : [{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}]
}],
"description" : "The set of resources associated with a particular Device (example with Communication and CommunicationRequest resourses only).",
"useContext" : [{
"code" : {
"system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
"code" : "focus"
},
"valueCodeableConcept" : {
"coding" : [{
"system" : "http://hl7.org/fhir/fhir-types",
"code" : "Device"
}]
}
}],
"purpose" : "Provides an example of a FHIR compartment definition based on the Device resource type.",
"code" : "Device",
"search" : true,
"resource" : [{
"code" : "Communication",
"param" : ["sender",
"recipient"],
"documentation" : "The device used as the message sender and recipient"
},
{
"code" : "CommunicationRequest",
"param" : ["sender",
"recipient"],
"documentation" : "The device used as the message sender and recipient"
}]
}
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.