Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). 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

Compartmentdefinition-example.ttl

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

Example Compartment

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:CompartmentDefinition;
  fhir:Resource.id [ fhir:value "example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:CompartmentDefinition.url [ fhir:value "http://hl7.org/fhir/CompartmentDefinition/example"];
  fhir:CompartmentDefinition.name [ fhir:value "EXAMPLE"];
  fhir:CompartmentDefinition.status [ fhir:value "draft"];
  fhir:CompartmentDefinition.experimental [ fhir:value "true"];
  fhir:CompartmentDefinition.date [ fhir:value "2017-02-24"];
  fhir:CompartmentDefinition.publisher [ fhir:value "Health Level Seven International (FHIR Infrastructure)"];
  fhir:CompartmentDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "[string]" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ];
  fhir:CompartmentDefinition.description [ fhir:value "The set of resources associated with a particular Device (example with Communication and CommunicationRequest resourses only)."];
  fhir:CompartmentDefinition.useContext [
     fhir:index 0;
     fhir:UsageContext.code [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/usage-context-type" ];
       fhir:Coding.code [ fhir:value "focus" ]
     ];
     fhir:UsageContext.value [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/resource-types" ];
         fhir:Coding.code [ fhir:value "Device" ]
       ]
     ]
  ];
  fhir:CompartmentDefinition.purpose [ fhir:value "Provides an example of a FHIR compartment definition based on the Device resource type."];
  fhir:CompartmentDefinition.code [ fhir:value "Device"];
  fhir:CompartmentDefinition.search [ fhir:value "true"];
  fhir:CompartmentDefinition.resource [
     fhir:index 0;
     fhir:CompartmentDefinition.code [ fhir:value "Communication" ];
     fhir:CompartmentDefinition.param [
       fhir:value "sender";
       fhir:index 0
     ], [
       fhir:value "recipient";
       fhir:index 1
     ];
     fhir:CompartmentDefinition.documentation [ fhir:value "The device used as the message sender and recipient" ]
  ], [
     fhir:index 1;
     fhir:CompartmentDefinition.code [ fhir:value "CommunicationRequest" ];
     fhir:CompartmentDefinition.param [
       fhir:value "sender";
       fhir:index 0
     ], [
       fhir:value "recipient";
       fhir:index 1
     ];
     fhir:CompartmentDefinition.documentation [ fhir:value "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.