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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="list-order"/>
  <meta>
    <lastUpdated value="2020-04-09T21:10:28.568+00:00"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p>This case-sensitive code system <code>http://terminology.hl7.org/CodeSystem/list-order</code> defines the following codes:</p><table class="codes"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style="white-space:nowrap">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 style="white-space:nowrap">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 style="white-space:nowrap">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 style="white-space:nowrap">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 style="white-space:nowrap">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 style="white-space:nowrap">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 style="white-space:nowrap">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 style="white-space:nowrap">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-wg">
    <valueCode value="sd"/>
  </extension>
  <url value="http://terminology.hl7.org/CodeSystem/list-order"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.1.1107"/>
  </identifier>
  <version value="1.0.0"/>
  <name value="ListOrderCodes"/>
  <title value="List Order Codes"/>
  <status value="draft"/>
  <experimental value="false"/>
  <date value="2024-03-18T16:33:29+00:00"/>
  <publisher value="Health Level Seven International"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="hq@HL7.org"/>
    </telecom>
  </contact>
  <description value="Base values for the order of the items in a list resource."/>
  <copyright value="This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license"/>
  <caseSensitive value="true"/>
  <valueSet value="http://terminology.hl7.org/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>