{

"resourceType": "GraphDefinition",
"id": "example",
"url": "http://h7.org/fhir/GraphDefinition/example",
"name": "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": "Composition",
"link": [
  {
    "path": "Composition.section.entry",
    "description": "Link to List",
    "target": [
      {
        "type": "List",
        "compartment": [
          {
            "use": "requirement",
            "code": "Patient",
            "rule": "identical"
          }
        ],
        "link": [
          {
            "path": "List.entry.item",
            "description": "Include any list entries",
            "target": [
              {
                "type": "Resource",
                "compartment": [
                  {
                    "use": "requirement",
                    "code": "Patient",
                    "rule": "identical"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
]

}