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