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

Graphdefinition-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)

GraphDefinition example

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

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

[] a fhir:GraphDefinition;
  fhir:Resource.id [ fhir:value "example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  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.experimental [ fhir:value "true"];
  fhir:GraphDefinition.date [ fhir:value "2015-08-04"];
  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.path [ fhir:value "Composition.section.entry" ];
     fhir:GraphDefinition.description [ fhir:value "Link to List" ];
     fhir:GraphDefinition.target [
       fhir:index 0;
       fhir:GraphDefinition.type [ fhir:value "List" ];
       fhir:GraphDefinition.compartment [
         fhir:index 0;
         fhir:GraphDefinition.use [ fhir:value "requirement" ];
         fhir:GraphDefinition.code [ fhir:value "Patient" ];
         fhir:GraphDefinition.rule [ fhir:value "identical" ]
       ];
       fhir:GraphDefinition.link [
         fhir:index 0;
         fhir:GraphDefinition.path [ fhir:value "List.entry.item" ];
         fhir:GraphDefinition.description [ fhir:value "Include any list entries" ];
         fhir:GraphDefinition.target [
           fhir:index 0;
           fhir:GraphDefinition.type [ fhir:value "Resource" ];
           fhir:GraphDefinition.compartment [
             fhir:index 0;
             fhir:GraphDefinition.use [ fhir:value "requirement" ];
             fhir:GraphDefinition.code [ fhir:value "Patient" ];
             fhir:GraphDefinition.rule [ fhir:value "identical" ]
           ]
         ]
       ]
     ]
  ] .

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


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.