{
  "resourceType" : "GraphDefinition",
  "resourceDefinition" : "http://hl7.org/fhir/StructureDefinition/GraphDefinition|0.1.0",
  "id" : "example",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: GraphDefinition example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </a><p><b>url</b>: <a href=\"http://example.org/GraphDefinition/example\">http://example.org/GraphDefinition/example</a></p><p><b>name</b>: DocumentGenerationTemplate</p><p><b>title</b>: Document Generation Template</p><p><b>status</b>: Draft</p><p><b>date</b>: 2015-08-04</p><p><b>publisher</b>: FHIR Project</p><p><b>contact</b>: <a href=\"http://hl7.org/fhir\">http://hl7.org/fhir</a></p><p><b>description</b>: </p><div><p>Specify to include list references when generating a document using the $document operation</p>\n</div><p><b>start</b>: comp1</p><blockquote><p><b>node</b></p><p><b>nodeId</b>: comp1</p><p><b>description</b>: The base composition</p><p><b>type</b>: Composition</p><p><b>profile</b>: <code>http://example.org/fhir/StructureDefinition/clinicaldocument</code></p></blockquote><blockquote><p><b>node</b></p><p><b>nodeId</b>: list1</p><p><b>description</b>: A list resource that a section entry reference points to</p><p><b>type</b>: List</p></blockquote><blockquote><p><b>node</b></p><p><b>nodeId</b>: resN</p><p><b>description</b>: Generic resource that's the target of a list reference</p><p><b>type</b>: Resource</p></blockquote><blockquote><p><b>link</b></p><p><b>description</b>: Link from Composition.section to list</p><p><b>sourceId</b>: comp1</p><p><b>path</b>: Composition.section.entry</p><p><b>targetId</b>: list1</p><h3>Compartments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Use</b></td><td><b>Rule</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>requires</td><td>Identical</td><td>Patient</td></tr></table></blockquote><blockquote><p><b>link</b></p><p><b>description</b>: Include any list entries</p><p><b>sourceId</b>: list1</p><p><b>path</b>: List.entry.item</p><p><b>targetId</b>: resN</p><h3>Compartments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Use</b></td><td><b>Rule</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>requires</td><td>Identical</td><td>Patient</td></tr></table></blockquote></div>"
  },
  "url" : "http://example.org/GraphDefinition/example",
  "name" : "DocumentGenerationTemplate",
  "title" : "Document Generation Template",
  "status" : "draft",
  "date" : "2015-08-04",
  "publisher" : "FHIR Project",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    }]
  }],
  "description" : "Specify to include list references when generating a document using the $document operation",
  "start" : "comp1",
  "node" : [{
    "nodeId" : "comp1",
    "description" : "The base composition",
    "type" : "Composition",
    "profile" : "http://example.org/fhir/StructureDefinition/clinicaldocument"
  },
  {
    "nodeId" : "list1",
    "description" : "A list resource that a section entry reference points to",
    "type" : "List"
  },
  {
    "nodeId" : "resN",
    "description" : "Generic resource that's the target of a list reference",
    "type" : "Resource"
  }],
  "link" : [{
    "description" : "Link from Composition.section to list",
    "sourceId" : "comp1",
    "path" : "Composition.section.entry",
    "targetId" : "list1",
    "compartment" : [{
      "use" : "requires",
      "rule" : "identical",
      "code" : "Patient"
    }]
  },
  {
    "description" : "Include any list entries",
    "sourceId" : "list1",
    "path" : "List.entry.item",
    "targetId" : "resN",
    "compartment" : [{
      "use" : "requires",
      "rule" : "identical",
      "code" : "Patient"
    }]
  }]
}