Release 4 5 Snapshot #1

This page is part of the FHIR Specification (v4.0.1: R4 - Mixed Normative and STU ) in it's permanent home (it will always be available at this URL). (v5.0.0-snapshot1: Release 5 Snapshot #1). 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: R5 R4B R4

Structuredefinition-example-composition.xml

FHIR Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : Not linked to any defined compartments

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

Jump past Narrative

Example showing how to use Section Level Profiles (id = "example-composition")

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

 

<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="example-composition"/> 
  

  <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative</b> </p> <div> <p> Resource &quot;example-composition&quot; </p> </div> <p> <b> url</b> : <a> http://hl7.org/fhir/StructureDefinition/example-composition</a> </p> <p> <b> name</b> : DocumentStructure</p> <p> <b> title</b> : Document Structure (For testing section templates)</p> <p> <b> status</b> : active</p> <p> <b> experimental</b> : false</p> <p> <b> date</b> : 2018-11-05T17:47:00+11:00</p> <p> <b> kind</b> : resource</p> <p> <b> abstract</b> : false</p> <p> <b> type</b> : <code> Composition</code> </p> <p> <b> baseDefinition</b> : <a> http://hl7.org/fhir/StructureDefinition/Composition</a> </p> <p> <b> derivation</b> : constraint</p> <blockquote> <p> <b> differential</b> </p> </blockquote> </div> </text> <url value="http://hl7.org/fhir/StructureDefinition/example-composition"/> 
  <name value="DocumentStructure"/> 
  <title value="Document Structure (For testing section templates)"/> 
  <status value="active"/> 
  <experimental value="false"/> 
  <date value="2018-11-05T17:47:00+11:00"/> 
  

  <kind value="resource"/> 
  <abstract value="false"/> 
  <type value="Composition"/> 
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition"/> 
  <derivation value="constraint"/> 
  <differential> 
    <element id="Composition">
      

      <path value="Composition"/> 
    </element> 
    <element id="Composition.section">
        

      <path value="Composition.section"/> 
        
         

      <slicing> 
        <discriminator> 
          <type value="pattern"/> 
          <path value="code"/> 
        </discriminator> 
        <description value="Slice by .section.code"/> 
        <ordered value="true"/> 
        <rules value="closed"/> 
       

      </slicing> 
    </element> 
    <element id="Composition.section:procedure">
         

      <path value="Composition.section"/> 
      <sliceName value="procedure"/> 
      <min value="1"/> 
      <type> 
         

        <code value="BackboneElement"/> 
        <profile value="http://hl7.org/fhir/StructureDefinition/document-section-library">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
            <valueString value="Composition.section:procedure"/> 
          </extension> 
        </profile> 
      </type> 
    </element> 
    <element id="Composition.section:medications">
         

      <path value="Composition.section"/> 
      <sliceName value="medications"/> 
      <min value="1"/> 
      <type> 
         

        <code value="BackboneElement"/> 
        <profile value="http://hl7.org/fhir/StructureDefinition/document-section-library">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
            <valueString value="Composition.section:medications"/> 
          </extension> 
        </profile> 
      </type> 
    </element> 
    <element id="Composition.section:plan">
         

      <path value="Composition.section"/> 
      <sliceName value="plan"/> 
      <min value="0"/> 
      <type> 
         

        <code value="BackboneElement"/> 
        <profile value="http://hl7.org/fhir/StructureDefinition/document-section-library">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
            <valueString value="Composition.section:plan"/> 
          </extension> 
        </profile> 
      </type> 
        
 

    </element> 
  </differential> 


</

StructureDefinition

>



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.