R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.0: R4 Ballot #2). 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

Graphdefinition-example.ttl

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

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

GraphDefinition example

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

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

<http://hl7.org/fhir/GraphDefinition/example> a fhir:GraphDefinition;
  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>: <b>http://h7.org/fhir/GraphDefinition/example</b></p><p><b>name</b>: Document Generation Template</p><p><b>status</b>: draft</p><p><b>date</b>: 04/08/2015</p><p><b>publisher</b>: FHIR Project</p><p><b>contact</b>: </p><p><b>description</b>: Specify to include list references when generating a document using the $document operation</p><p><b>start</b>: Composition</p><blockquote><p><b>link</b></p><p><b>path</b>: Composition.section.entry</p><p><b>description</b>: Link to List</p><blockquote><p><b>target</b></p><p><b>type</b>: List</p><h3>Compartments</h3><table><tr><td>-</td><td><b>Use</b></td><td><b>Code</b></td><td><b>Rule</b></td></tr><tr><td>*</td><td>requirement</td><td>Patient</td><td>identical</td></tr></table><h3>Links</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table></blockquote></blockquote></div>"
  ];
  fhir:GraphDefinition.url [ fhir:value "http://h7.org/fhir/GraphDefinition/example"];
  fhir:GraphDefinition.name [ fhir:value "Document Generation Template"];
  fhir:GraphDefinition.status [ fhir:value "draft"];
  fhir:GraphDefinition.date [ fhir:value "2015-08-04"^^xsd:date];
  fhir:GraphDefinition.publisher [ fhir:value "FHIR Project"];
  fhir:GraphDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ];
  fhir:GraphDefinition.description [ fhir:value "Specify to include list references when generating a document using the $document operation"];
  fhir:GraphDefinition.start [ fhir:value "Composition"];
  fhir:GraphDefinition.link [
     fhir:index 0;
     fhir:GraphDefinition.link.path [ fhir:value "Composition.section.entry" ];
     fhir:GraphDefinition.link.description [ fhir:value "Link to List" ];
     fhir:GraphDefinition.link.target [
       fhir:index 0;
       fhir:GraphDefinition.link.target.type [ fhir:value "List" ];
       fhir:GraphDefinition.link.target.compartment [
         fhir:index 0;
         fhir:GraphDefinition.link.target.compartment.use [ fhir:value "requirement" ];
         fhir:GraphDefinition.link.target.compartment.code [ fhir:value "Patient" ];
         fhir:GraphDefinition.link.target.compartment.rule [ fhir:value "identical" ]
       ];
       fhir:GraphDefinition.link.target.link [
         fhir:index 0;
         fhir:GraphDefinition.link.path [ fhir:value "List.entry.item" ];
         fhir:GraphDefinition.link.description [ fhir:value "Include any list entries" ];
         fhir:GraphDefinition.link.target [
           fhir:index 0;
           fhir:GraphDefinition.link.target.type [ fhir:value "Resource" ];
           fhir:GraphDefinition.link.target.compartment [
             fhir:index 0;
             fhir:GraphDefinition.link.target.compartment.use [ fhir:value "requirement" ];
             fhir:GraphDefinition.link.target.compartment.code [ fhir:value "Patient" ];
             fhir:GraphDefinition.link.target.compartment.rule [ fhir:value "identical" ]
           ]
         ]
       ]
     ]
  ] .

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

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

# -------------------------------------------------------------------------------------


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.