<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="list-order" />
  <meta>
    <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>List Order Codes</h2>
      <div>
        <p>Base values for the order of the items in a list resource.</p>
      </div>
      <p>This code system http://hl7.org/fhir/list-order 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>user
                  <a name="list-order-user"></a></td>
          <td>Sorted by User</td>
          <td>The list was sorted by a user. The criteria the user used are not specified.</td>
        </tr>
        <tr>
          <td>system
                  <a name="list-order-system"></a></td>
          <td>Sorted by System</td>
          <td>The list was sorted by the system. The criteria the user used are not specified; define additional codes to specify a particular order (or use other defined codes).</td>
        </tr>
        <tr>
          <td>event-date
                  <a name="list-order-event-date"></a></td>
          <td>Sorted by Event Date</td>
          <td>The list is sorted by the data of the event. This can be used when the list has items which are dates with past or future events.</td>
        </tr>
        <tr>
          <td>entry-date
                  <a name="list-order-entry-date"></a></td>
          <td>Sorted by Item Date</td>
          <td>The list is sorted by the date the item was added to the list. Note that the date added to the list is not explicit in the list itself.</td>
        </tr>
        <tr>
          <td>priority
                  <a name="list-order-priority"></a></td>
          <td>Sorted by Priority</td>
          <td>The list is sorted by priority. The exact method in which priority has been determined is not specified.</td>
        </tr>
        <tr>
          <td>alphabetic
                  <a name="list-order-alphabetic"></a></td>
          <td>Sorted Alphabetically</td>
          <td>The list is sorted alphabetically by an unspecified property of the items in the list.</td>
        </tr>
        <tr>
          <td>category
                  <a name="list-order-category"></a></td>
          <td>Sorted by Category</td>
          <td>The list is sorted categorically by an unspecified property of the items in the list.</td>
        </tr>
        <tr>
          <td>patient
                  <a name="list-order-patient"></a></td>
          <td>Sorted by Patient</td>
          <td>The list is sorted by patient, with items for each patient grouped together.</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="sd" />
  </extension>
  <url value="http://hl7.org/fhir/list-order" />
  <identifier>
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:2.16.840.1.113883.4.642.1.316" />
  </identifier>
  <version value="3.0.1" />
  <name value="List Order Codes" />
  <status value="draft" />
  <experimental value="true" />
  <publisher value="FHIR Project" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <description value="Base values for the order of the items in a list resource." />
  <caseSensitive value="true" />
  <valueSet value="http://hl7.org/fhir/ValueSet/list-order" />
  <content value="complete" />
  <concept>
    <code value="user" />
    <display value="Sorted by User" />
    <definition value="The list was sorted by a user. The criteria the user used are not specified." />
  </concept>
  <concept>
    <code value="system" />
    <display value="Sorted by System" />
    <definition value="The list was sorted by the system. The criteria the user used are not specified; define additional codes to specify a particular order (or use other defined codes)." />
  </concept>
  <concept>
    <code value="event-date" />
    <display value="Sorted by Event Date" />
    <definition value="The list is sorted by the data of the event. This can be used when the list has items which are dates with past or future events." />
  </concept>
  <concept>
    <code value="entry-date" />
    <display value="Sorted by Item Date" />
    <definition value="The list is sorted by the date the item was added to the list. Note that the date added to the list is not explicit in the list itself." />
  </concept>
  <concept>
    <code value="priority" />
    <display value="Sorted by Priority" />
    <definition value="The list is sorted by priority. The exact method in which priority has been determined is not specified." />
  </concept>
  <concept>
    <code value="alphabetic" />
    <display value="Sorted Alphabetically" />
    <definition value="The list is sorted alphabetically by an unspecified property of the items in the list." />
  </concept>
  <concept>
    <code value="category" />
    <display value="Sorted by Category" />
    <definition value="The list is sorted categorically by an unspecified property of the items in the list." />
  </concept>
  <concept>
    <code value="patient" />
    <display value="Sorted by Patient" />
    <definition value="The list is sorted by patient, with items for each patient grouped together." />
  </concept>
</CodeSystem>