GraphDefinition example
{
"resourceType": "GraphDefinition",
"id": "example",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: GraphDefinition</b><a name=\"example\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource GraphDefinition "example" </p></div><p><b>url</b>: <code>http://h7.org/fhir/GraphDefinition/example</code></p><p><b>name</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>: Specify to include list references when generating a document using the $document operation</p><p><b>start</b>: <span title=\" \n the $document operation will include everything directly linked to by the composition resource.\n In our case, we want any resources referred to by lists referenced from the composition to \n be included as well. \n \n We do this by defining a 'graph' of resources - and then we'll say to the $document server,\n aggregate this graph as well as other resources. So we define a graph that starts at composition,\n goes from section to list, and includes all the resources the list includes. \n \n While we're at it, we're going to say that all these resources must be about the same patient.\n Note that there are use cases for crossing patient record boundaries in documents, but not *this case*.\n \n &#10; this graph starts with a composition. We don't care what the specific profile is\n (though the statement above 'this case doesn't cross patients' implies that we do care a little) \">Composition</span></p><blockquote><p><b>link</b></p><p><b>path</b>: <span title=\" any section entry. Todo: this recurses; are we profiling this at all levels? \">Composition.section.entry</span></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 class=\"grid\"><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><blockquote><p><b>link</b></p><p><b>path</b>: List.entry.item</p><p><b>description</b>: Include any list entries</p></blockquote></blockquote></blockquote></div>"
},
"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"
}
]
}
]
}
]
}
]
}
]
}
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.