Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R4B R4

Valueset-example-hierarchical.xml

Vocabulary Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

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

Jump past Narrative

ValueSet Example showing how to specify a hierarchy for UI using extensions (id = "example-hierarchical")

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

<ValueSet xmlns="http://hl7.org/fhir">
  <id value="example-hierarchical"/> 
  <meta> 
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablevalueset"/> 
  </meta> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
     
      <table class="grid">
      
        <tr> 
          <td/>  
          <td> (Most common)</td> 
        </tr> 
      
        <tr> 
          <td> ..login</td> 
          <td> Login Required</td> 
        </tr> 
      
        <tr> 
          <td> ..conflict</td> 
          <td> Edit Version Conflict</td> 
        </tr> 
      
        <tr> 
          <td> processing</td> 
          <td> Processing Failure</td> 
        </tr> 
      
        <tr> 
          <td> ..duplicate</td> 
          <td> Duplicate</td> 
        </tr> 
      
        <tr> 
          <td> ..not-found</td> 
          <td> Not Found</td> 
        </tr> 
      
        <tr> 
          <td> invalid</td> 
          <td> Invalid Content</td> 
        </tr> 
      
        <tr> 
          <td> ..structure</td> 
          <td> Structural Issue</td> 
        </tr> 
      
        <tr> 
          <td> ..required</td> 
          <td> Required element missing</td> 
        </tr> 
      
        <tr> 
          <td> ..value</td> 
          <td> Element value invalid</td> 
        </tr> 
      
        <tr> 
          <td> transient</td> 
          <td> Transient Issue</td> 
        </tr> 
      
        <tr> 
          <td> ..lock-error</td> 
          <td> Lock Error</td> 
        </tr> 
      
        <tr> 
          <td> ..exception</td> 
          <td> Exception</td> 
        </tr> 
      
        <tr> 
          <td> ..throttled</td> 
          <td> Throttled</td> 
        </tr> 
      
        <tr> 
          <td> security</td> 
          <td> Security Problem</td> 
        </tr> 
      
        <tr> 
          <td> ..login</td> 
          <td> Login Required</td> 
        </tr> 
      
        <tr> 
          <td> ..unknown</td> 
          <td> Unknown User</td> 
        </tr> 
     
      </table> 
    
    </div> 
  </text> 
  <contained> 
    <CodeSystem> 
      <id value="hacked"/> 
      <url value="http://hl7.org/fhir/hacked"/> 
      <status value="draft"/> 
      <description value="Issue type in an error message - hack from real FHIR List"/> 
      <content value="complete"/> 
      <property> 
        <code value="notSelectable"/> 
        <uri value="http://hl7.org/fhir/concept-properties#notSelectable"/> 
        <type value="boolean"/> 
      </property> 
      <concept> 
        <code value="invalid"/> 
        <display value="Invalid Content"/> 
        <property> 
          <code value="notSelectable"/> 
          <valueBoolean value="true"/> 
        </property> 
        <concept> 
          <code value="structure"/> 
          <display value="Structural Issue"/> 
        </concept> 
        <concept> 
          <code value="required"/> 
          <display value="Required element missing"/> 
        </concept> 
        <concept> 
          <code value="value"/> 
          <display value="Element value invalid"/> 
        </concept> 
      </concept> 
      <concept> 
        <code value="security"/> 
        <display value="Security Problem"/> 
        <property> 
          <code value="notSelectable"/> 
          <valueBoolean value="true"/> 
        </property> 
        <concept> 
          <code value="login"/> 
          <display value="Login Required"/> 
        </concept> 
        <concept> 
          <code value="unknown"/> 
          <display value="Unknown User"/> 
        </concept> 
        <concept> 
          <code value="expired"/> 
          <display value="Session Expired"/> 
        </concept> 
      </concept> 
      <concept> 
        <code value="processing"/> 
        <display value="Processing Failure"/> 
        <concept> 
          <code value="duplicate"/> 
          <display value="Duplicate"/> 
        </concept> 
        <concept> 
          <code value="not-found"/> 
          <display value="Not Found"/> 
        </concept> 
        <concept> 
          <code value="conflict"/> 
          <display value="Edit Version Conflict"/> 
        </concept> 
      </concept> 
      <concept> 
        <code value="transient"/> 
        <display value="Transient Issue"/> 
        <concept> 
          <code value="lock-error"/> 
          <display value="Lock Error"/> 
        </concept> 
        <concept> 
          <code value="exception"/> 
          <display value="Exception"/> 
        </concept> 
        <concept> 
          <code value="throttled"/> 
          <display value="Throttled"/> 
        </concept> 
      </concept> 
    </CodeSystem> 
  </contained> 
  <url value="http://hl7.org/fhir/ValueSet/example-hierarchical"/> 
  <version value="4.3.0"/> 
  <name value="Example Hierarchical ValueSet"/> 
  <status value="draft"/> 
  <experimental value="true"/> 
  <date value="2018-07-20"/> 
  <publisher value="FHIR Project team"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://hl7.org/fhir"/> 
    </telecom> 
  </contact> 
  <description value="Demonstration of extensions that build a hierarchical contains"/> 
  <compose> 
    <include> 
      <extension url="http://hl7.org/fhir/StructureDefinition/valueset-expand-rules">
        <valueCode value="groups-only"/> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/valueset-expand-group">
        <extension url="display">
          <valueString value="(Most common)"/> 
        </extension> 
        <extension url="member">
          <valueCode value="login"/> 
        </extension> 
        <extension url="member">
          <valueCode value="conflict"/> 
        </extension> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/valueset-expand-group">
        <extension url="code">
          <valueCode value="processing"/> 
        </extension> 
        <extension url="member">
          <valueCode value="duplicate"/> 
        </extension> 
        <extension url="member">
          <valueCode value="not-found"/> 
        </extension> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/valueset-expand-group">
        <extension url="code">
          <valueCode value="invalid"/> 
        </extension> 
        <extension url="member">
          <valueCode value="structure"/> 
        </extension> 
        <extension url="member">
          <valueCode value="required"/> 
        </extension> 
        <extension url="member">
          <valueCode value="value"/> 
        </extension> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/valueset-expand-group">
        <extension url="code">
          <valueCode value="transient"/> 
        </extension> 
        <extension url="member">
          <valueCode value="lock"/> 
        </extension> 
        <extension url="member">
          <valueCode value="exception"/> 
        </extension> 
        <extension url="member">
          <valueCode value="throttled"/> 
        </extension> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/valueset-expand-group">
        <extension url="code">
          <valueCode value="security"/> 
        </extension> 
        <extension url="member">
          <valueCode value="login"/> 
        </extension> 
        <extension url="member">
          <valueCode value="unknown"/> 
        </extension> 
      </extension> 
      <system value="#hacked"/> 
      <concept> 
        <code value="invalid"/> 
      </concept> 
      <concept> 
        <code value="structure"/> 
      </concept> 
      <concept> 
        <code value="required"/> 
      </concept> 
      <concept> 
        <code value="value"/> 
      </concept> 
      <concept> 
        <code value="processing"/> 
      </concept> 
      <concept> 
        <code value="duplicate"/> 
      </concept> 
      <concept> 
        <code value="not-found"/> 
      </concept> 
      <concept> 
        <code value="conflict"/> 
      </concept> 
      <concept> 
        <code value="lock"/> 
      </concept> 
      <concept> 
        <code value="exception"/> 
      </concept> 
      <concept> 
        <code value="tbrottled"/> 
      </concept> 
      <concept> 
        <code value="login"/> 
      </concept> 
      <concept> 
        <code value="unknown"/> 
      </concept> 
    </include> 
  </compose> 
  <expansion> 
    <identifier value="urn:uuid:42316ff8-2714-4680-9980-f37a6d1a71bc"/> 
    <timestamp value="2018-07-20T23:14:07+10:00"/> 
    <parameter> 
      <name value="excludeNotForUI"/> 
      <valueUri value="false"/> 
    </parameter> 
    <contains> 
      <abstract value="true"/> 
      <display value="(Most common)"/> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="login"/> 
        <display value="Login Required"/> 
      </contains> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="conflict"/> 
        <display value="Edit Version Conflict"/> 
      </contains> 
    </contains> 
    <contains> 
      <system value="http://hl7.org/fhir/hacked"/> 
      <code value="processing"/> 
      <display value="Processing Failure"/> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="duplicate"/> 
        <display value="Duplicate"/> 
      </contains> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="not-found"/> 
        <display value="Not Found"/> 
      </contains> 
    </contains> 
    <contains> 
      <system value="http://hl7.org/fhir/hacked"/> 
      <abstract value="true"/> 
      <code value="invalid"/> 
      <display value="Invalid Content"/> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="structure"/> 
        <display value="Structural Issue"/> 
      </contains> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="required"/> 
        <display value="Required element missing"/> 
      </contains> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="value"/> 
        <display value="Element value invalid"/> 
      </contains> 
    </contains> 
    <contains> 
      <system value="http://hl7.org/fhir/hacked"/> 
      <abstract value="true"/> 
      <code value="transient"/> 
      <display value="Transient Issue"/> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="lock-error"/> 
        <display value="Lock Error"/> 
      </contains> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="exception"/> 
        <display value="Exception"/> 
      </contains> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="throttled"/> 
        <display value="Throttled"/> 
      </contains> 
    </contains> 
    <contains> 
      <system value="http://hl7.org/fhir/hacked"/> 
      <abstract value="true"/> 
      <code value="security"/> 
      <display value="Security Problem"/> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="login"/> 
        <display value="Login Required"/> 
      </contains> 
      <contains> 
        <system value="http://hl7.org/fhir/hacked"/> 
        <code value="unknown"/> 
        <display value="Unknown User"/> 
      </contains> 
    </contains> 
  </expansion> 
</ValueSet> 

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.