<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="structuredefinition-template-status" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/structuredefinition-template-status" />
  <name value="template-status" />
  <status value="draft" />
  <date value="2014-01-31" />
  <publisher value="Health Level Seven, Inc. - [WG Name] WG" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/special/committees/FHIR" />
    </telecom>
  </contact>
  <description value="Status code taken from [HL7 template specification](http://wiki.hl7.org/images/7/7a/TemplatesDSTU-20140910b-96.pdf.zip) - allows for alignment with the template DSTU, and has more authoring status codes." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="StructureDefinition" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Template Status Code (more authoring statuses)" />
      <definition value="Status code taken from [HL7 template specification](http://wiki.hl7.org/images/7/7a/TemplatesDSTU-20140910b-96.pdf.zip) - allows for alignment with the template DSTU, and has more authoring status codes." />
      <comment value="The Profile status has the codes that are relevant to end-users/developers, while this extension has the codes used by profile developers." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/structuredefinition-template-status" />
    </element>
    <element id="Extension.valueCode">
      <path value="Extension.valueCode" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TemplateStatusCode" />
        </extension>
        <strength value="required" />
        <description value="The status indicates the level of maturity of the design and may be used to manage the use of the design" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/template-status-code" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>