FHIR Release 3 (STU) CI-Build

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0 . For a full list Continuous Integration Build of available versions, see FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Compartmentdefinition-example.ttl

Example CompartmentDefinition/example (Turtle)

Maturity Level : N/A
Responsible Owner: FHIR Infrastructure Work Group Ballot Standards Status : Informative Compartments : Not linked to any No defined compartments

Raw Turtle , JSON-LD (+ also see Turtle/RDF Format Specification )

Example Compartment

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/CompartmentDefinition/example> a fhir:CompartmentDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>url</b>: <a>http://hl7.org/fhir/CompartmentDefinition/example</a></p><p><b>name</b>: EXAMPLE</p><p><b>title</b>: Base FHIR compartment definition for Device(example)</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 24/02/2017</p><p><b>publisher</b>: Health Level Seven International (FHIR Infrastructure)</p><p><b>contact</b>: </p><p><b>description</b>: The set of resources associated with a particular Device (example with Communication and CommunicationRequest resourses only).</p><p><b>purpose</b>: Provides an example of a FHIR compartment definition based on the Device resource type.</p><p><b>useContext</b>: </p><p><b>jurisdiction</b>: United States of America (the) <span>(Details : {urn:iso:std:iso:3166 code 'US' = 'United States', given as 'United States of America (the)'})</span></p><p><b>code</b>: Device</p><p><b>search</b>: true</p><blockquote><p><b>resource</b></p><p><b>code</b>: Communication</p><p><b>param</b>: sender, recipient</p><p><b>documentation</b>: The device used as the message sender and recipient</p></blockquote><blockquote><p><b>resource</b></p><p><b>code</b>: CommunicationRequest</p><p><b>param</b>: sender, recipient</p><p><b>documentation</b>: The device used as the message sender and recipient</p></blockquote></div>"
  ];
  fhir:CompartmentDefinition.url [ fhir:value "http://hl7.org/fhir/CompartmentDefinition/example"];
  fhir:CompartmentDefinition.name [ fhir:value "EXAMPLE"];
  fhir:CompartmentDefinition.title [ fhir:value "Base FHIR compartment definition for Device(example)"];
  fhir:CompartmentDefinition.status [ fhir:value "draft"];
  fhir:CompartmentDefinition.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:CompartmentDefinition.date [ fhir:value "2017-02-24"^^xsd:date];
  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.purpose [ fhir:value "Provides an example of a FHIR compartment definition based on the Device resource type."];
  fhir:CompartmentDefinition.useContext [
     fhir:index 0;
     fhir:UsageContext.code [
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/usage-context-type" ];
       fhir:Coding.code [ fhir:value "focus" ]
     ];
     fhir:UsageContext.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/resource-types" ];
         fhir:Coding.code [ fhir:value "Device" ]
       ]

<http://hl7.org/fhir/CompartmentDefinition/example> a fhir:CompartmentDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "fhir"

     ]
  ];
  fhir:CompartmentDefinition.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "US" ];
       fhir:Coding.display [ fhir:value "United States of America (the)" ]

  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/CompartmentDefinition/example"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/CompartmentDefinition/example>
  ] ; # 
  fhir:name [ fhir:v "EXAMPLE"] ; # 
  fhir:title [ fhir:v "EXAMPLE"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2017-02-24"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "The set of resources associated with a particular Device (example with Communication and CommunicationRequest resourses only)."] ; # 
  fhir:useContext ( [
     fhir:code [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/usage-context-type>
       ] ;
       fhir:code [ fhir:v "focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/fhir-types"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/fhir-types>
         ] ;
         fhir:code [ fhir:v "Device" ]
       ] )

     ]
  ];
  fhir:CompartmentDefinition.code [ fhir:value "Device"];
  fhir:CompartmentDefinition.search [ fhir:value "true"^^xsd:boolean];
  fhir:CompartmentDefinition.resource [
     fhir:index 0;
     fhir:CompartmentDefinition.resource.code [ fhir:value "Communication" ];
     fhir:CompartmentDefinition.resource.param [
       fhir:value "sender";
       fhir:index 0
     ], [
       fhir:value "recipient";
       fhir:index 1
     ];
     fhir:CompartmentDefinition.resource.documentation [ fhir:value "The device used as the message sender and recipient" ]
  ], [
     fhir:index 1;
     fhir:CompartmentDefinition.resource.code [ fhir:value "CommunicationRequest" ];
     fhir:CompartmentDefinition.resource.param [
       fhir:value "sender";
       fhir:index 0
     ], [
       fhir:value "recipient";
       fhir:index 1
     ];
     fhir:CompartmentDefinition.resource.documentation [ fhir:value "The device used as the message sender and recipient" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/CompartmentDefinition/example.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://hl7.org/fhir/STU3/CompartmentDefinition/example.ttl> .

  ] ) ; # 
  fhir:purpose [ fhir:v "Provides an example of a FHIR compartment definition based on the Device resource type."] ; # 
  fhir:code [ fhir:v "Device"] ; # 
  fhir:search [ fhir:v true] ; # 
  fhir:resource ( [
     fhir:code [ fhir:v "Communication" ] ;
     fhir:param ( [ fhir:v "sender" ] [ fhir:v "recipient" ] )
  ] [
     fhir:code [ fhir:v "CommunicationRequest" ] ;
     fhir:param ( [ fhir:v "sender" ] [ fhir:v "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.