FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example GraphDefinition/example (XML)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

GraphDefinition example (id = "example")

<?xml version="1.0" encoding="UTF-8"?>

<GraphDefinition xmlns="http://hl7.org/fhir">
  <id value="example"/> 
  <text> <status value="extensions"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative: GraphDefinition</b> <a name="example"> </a> <a name="hcexample"> </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 &quot;example&quot; </p> </div> <p> <b> StructureDefinition Work Group</b> : fhir</p> <p> <b> url</b> : <code> http://h7.org/fhir/GraphDefinition/example</code> </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> : HL7 International / FHIR Infrastructure</p> <p> <b> contact</b> : <a href="http://www.hl7.org/Special/committees/fiwg">http://www.hl7.org/Special/committees/fiwg</a> </p> <p> <b> description</b> : Specify to include list references when generating a document using the $document
         operation</p> <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> : <a href="http://hl7.org/fhir/StructureDefinition/clinicaldocument">http://hl7.org/fhir/StructureDefinition/clinicaldocument</a> </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> </text> <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"><valueCode value="fhir"/> </extension> 
  <url value="http://h7.org/fhir/GraphDefinition/example"/> 
  <name value="DocumentGenerationTemplate"/> 
  <title value="Document Generation Template"/> 
  <status value="draft"/> 
  <date value="2015-08-04"/> 
  <publisher value="HL7 International / FHIR Infrastructure"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://www.hl7.org/Special/committees/fiwg"/> 
    </telecom> 
  </contact> 
  <description value="Specify to include list references when generating a document using the $document
   operation"/> 
  <start value="comp1"/> 
  <node> 
    <nodeId value="comp1"/> 
    <description value="The base composition"/> 
    <type value="Composition"/> 
    <profile value="http://hl7.org/fhir/StructureDefinition/clinicaldocument"/> 
  </node> 
  <node> 
    <nodeId value="list1"/> 
    <description value="A list resource that a section entry reference points to"/> 
    <type value="List"/> 
  </node> 
  <node> 
    <nodeId value="resN"/> 
    <description value="Generic resource that's the target of a list reference"/> 
    <type value="Resource"/> 
  </node> 
  <link> 
    <description value="Link from Composition.section to list"/> 
    <sourceId value="comp1"/> 
    <path value="Composition.section.entry"/> 
    <targetId value="list1"/> 
    <compartment> 
      <use value="requires"/> 
      <rule value="identical"/> 
      <code value="Patient"/> 
    </compartment> 
  </link> 
  <link> 
    <description value="Include any list entries"/> 
    <sourceId value="list1"/> 
    <path value="List.entry.item"/> 
    <targetId value="resN"/> 
    <compartment> 
      <use value="requires"/> 
      <rule value="identical"/> 
      <code value="Patient"/> 
    </compartment> 
  </link> 
</GraphDefinition> 

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.