<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="map-target-list-mode" />
  <meta>
    <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>StructureMapTargetListMode</h2>
      <div>
        <p>If field is a list, how to manage the production</p>
      </div>
      <p>This code system http://hl7.org/fhir/map-target-list-mode defines the following codes:</p>
      <table class="codes">
        <tr>
          <td>
            <b>Code</b>
          </td>
          <td>
            <b>Display</b>
          </td>
          <td>
            <b>Definition</b>
          </td>
        </tr>
        <tr>
          <td>first
                  <a name="map-target-list-mode-first"></a></td>
          <td>First</td>
          <td>when the target list is being assembled, the items for this rule go first. If more that one rule defines a first item (for a given instance of mapping) then this is an error</td>
        </tr>
        <tr>
          <td>share
                  <a name="map-target-list-mode-share"></a></td>
          <td>Share</td>
          <td>the target instance is shared with the target instances generated by another rule (up to the first common n items, then create new ones)</td>
        </tr>
        <tr>
          <td>last
                  <a name="map-target-list-mode-last"></a></td>
          <td>Last</td>
          <td>when the target list is being assembled, the items for this rule go last. If more that one rule defines a last item (for a given instance of mapping) then this is an error</td>
        </tr>
        <tr>
          <td>collate
                  <a name="map-target-list-mode-collate"></a></td>
          <td>Collate</td>
          <td>re-use the first item in the list, and keep adding content to it</td>
        </tr>
      </table>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-ballot-status">
    <valueString value="Informative" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <url value="http://hl7.org/fhir/map-target-list-mode" />
  <identifier>
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:2.16.840.1.113883.4.642.1.672" />
  </identifier>
  <version value="3.0.1" />
  <name value="StructureMapTargetListMode" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2017-04-19T07:44:43+10:00" />
  <publisher value="HL7 (FHIR Project)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="fhir@lists.hl7.org" />
    </telecom>
  </contact>
  <description value="If field is a list, how to manage the production" />
  <caseSensitive value="true" />
  <valueSet value="http://hl7.org/fhir/ValueSet/map-target-list-mode" />
  <content value="complete" />
  <concept>
    <code value="first" />
    <display value="First" />
    <definition value="when the target list is being assembled, the items for this rule go first. If more that one rule defines a first item (for a given instance of mapping) then this is an error" />
  </concept>
  <concept>
    <code value="share" />
    <display value="Share" />
    <definition value="the target instance is shared with the target instances generated by another rule (up to the first common n items, then create new ones)" />
  </concept>
  <concept>
    <code value="last" />
    <display value="Last" />
    <definition value="when the target list is being assembled, the items for this rule go last. If more that one rule defines a last item (for a given instance of mapping) then this is an error" />
  </concept>
  <concept>
    <code value="collate" />
    <display value="Collate" />
    <definition value="re-use the first item in the list, and keep adding content to it" />
  </concept>
</CodeSystem>