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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="orderType"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><ul><li>Include all codes defined in <a href="CodeSystem-orderType.html"><code>http://terminology.hl7.org/v2plusvocab/CodeSystem/orderType</code></a></li></ul></div>
  </text>
  <extension url="http://terminology.hl7.org/v2plusvocab/StructureDefinition/codesystem-v2versionCreated">
    <valueString value="2.9.1"/>
  </extension>
  <extension url="http://terminology.hl7.org/v2plusvocab/StructureDefinition/codesystem-versionHistory">
    <valueString value="generate correct history somehow"/>
  </extension>
  <extension url="http://terminology.hl7.org/v2plusvocab/StructureDefinition/codesystem-tableNo">
    <valueString value="0482"/>
  </extension>
  <url value="http://terminology.hl7.org/v2plusvocab/CodeSystem/orderType"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.18.307"/>
  </identifier>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="http://terminology.hl7.org/v2plusvocab/CodeSystem/v2-0482"/>
  </identifier>
  <version value="1.0.0"/>
  <name value="OrderType"/>
  <title value="Order Type (2.9.1 - 1.0.0)"/>
  <status value="active"/>
  <experimental value="true"/>
  <date value="2026-03-13T11:04:57+00:00"/>
  <publisher value="HL7/FO"/>
  <contact>
    <name value="HL7/FO"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org"/>
    </telecom>
  </contact>
  <description value="HL7-defined code system of concepts specifying whether the order is to be executed in an inpatient setting or an outpatient setting.  Used in HL7 Version 2.x messaging in the ORC segment."/>
  <copyright value="HL7 Inc., 2026"/>
  <caseSensitive value="true"/>
  <compositional value="false"/>
  <content value="complete"/>
  <property>
    <code value="versionIntroduced"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#versionIntroduced"/>
    <description value="version when was this code introduced"/>
    <type value="string"/>
  </property>
  <property>
    <code value="versionDeprecated"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#versionDeprecated"/>
    <description value="version when was this code deprecated"/>
    <type value="string"/>
  </property>
  <property>
    <code value="status"/>
    <uri value="http://hl7.org/fhir/concept-properties#status"/>
    <description value="A code that indicates the status of the concept. Typical values are active, experimental, deprecated, and retired"/>
    <type value="code"/>
  </property>
  <property>
    <code value="comment"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#comment"/>
    <description value="A string that provides additional detail pertinent to the use or understanding of the concept"/>
    <type value="string"/>
  </property>
  <property>
    <code value="usage"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#usage"/>
    <description value="usage notes for this code"/>
    <type value="string"/>
  </property>
  <property>
    <code value="modified"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#modified"/>
    <description value="date of last modification"/>
    <type value="dateTime"/>
  </property>
  <concept id="4901">
    <code value="I"/>
    <display value="Inpatient Order"/>
    <definition value="Inpatient Order"/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2015-07-13"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
  <concept id="4902">
    <code value="O"/>
    <display value="Outpatient Order"/>
    <definition value="Outpatient Order"/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2015-07-13"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
</CodeSystem>