Release 5 R6 Ballot (2nd Draft)

This page is part of the FHIR Specification (v5.0.0: R5 - STU v6.0.0-ballot2: Release 6 Ballot (2nd Draft) (see Ballot Notes ). This is the The current published version in it's permanent home (it will always be available at this URL). is 5.0.0 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example GraphDefinition/example (XML)

FHIR Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : 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"/> 
  display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border:
       1px solid #8da1b4; border-radius: 5px; line-height: 60%: Specify to include list references when generating a document using the $document
         operation

  <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.