R6 Ballot (2nd Draft)

Publish-box (todo)

Example GraphDefinition/example (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No 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 -------------------------------------------------------------------

[a fhir:GraphDefinition ;
  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:value [ fhir:v "fhir" ]
  ] ) ; # 
  fhir:url [ fhir:v "http://h7.org/fhir/GraphDefinition/example"^^xsd:anyURI] ; # 
  fhir:name [ fhir:v "DocumentGenerationTemplate"] ; # 
  fhir:title [ fhir:v "Document Generation Template"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2015-08-04"^^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 "Specify to include list references when generating a document using the $document operation"] ; # 
  fhir:start [ fhir:v "comp1"] ; # 
  fhir:node ( [
     fhir:nodeId [ fhir:v "comp1" ] ;
     fhir:description [ fhir:v "The base composition" ] ;
     fhir:type [ fhir:v "Composition" ] ;
     fhir:profile [
       fhir:v "http://hl7.org/fhir/StructureDefinition/clinicaldocument"^^xsd:anyURI ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/clinicaldocument>
     ]
  ] [
     fhir:nodeId [ fhir:v "list1" ] ;
     fhir:description [ fhir:v "A list resource that a section entry reference points to" ] ;
     fhir:type [ fhir:v "List" ]
  ] [
     fhir:nodeId [ fhir:v "resN" ] ;
     fhir:description [ fhir:v "Generic resource that's the target of a list reference" ] ;
     fhir:type [ fhir:v "Resource" ]
  ] ) ; # 
  fhir:link ( [
     fhir:description [ fhir:v "Link from Composition.section to list" ] ;
     fhir:sourceId [ fhir:v "comp1" ] ;
     fhir:path [ fhir:v "Composition.section.entry" ] ;
     fhir:targetId [ fhir:v "list1" ] ;
     fhir:compartment ( [
       fhir:use [ fhir:v "requires" ] ;
       fhir:rule [ fhir:v "identical" ] ;
       fhir:code [ fhir:v "Patient" ]
     ] )
  ] [
     fhir:description [ fhir:v "Include any list entries" ] ;
     fhir:sourceId [ fhir:v "list1" ] ;
     fhir:path [ fhir:v "List.entry.item" ] ;
     fhir:targetId [ fhir:v "resN" ] ;
     fhir:compartment ( [
       fhir:use [ fhir:v "requires" ] ;
       fhir:rule [ fhir:v "identical" ] ;
       fhir:code [ fhir:v "Patient" ]
     ] )
  ] )] . # 

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


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.