<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="CodeSystem-subsumes" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>The narrative has been removed to reduce the size of the distribution of the Hl7.Fhir.Specification library</p>
    </div>
  </text>
  <url value="http://hl7.org/fhir/OperationDefinition/CodeSystem-subsumes" />
  <name value="Subsumption Testing" />
  <status value="draft" />
  <kind value="operation" />
  <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="Test the subsumption relationship between code/Coding A and code/Coding B given the semantics of subsumption in the underlying code system (see hierarchyMeaning)" />
  <code value="subsumes" />
  <resource value="CodeSystem" />
  <system value="false" />
  <type value="true" />
  <instance value="true" />
  <parameter>
    <name value="codeA" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="The &quot;A&quot; code that is to be tested. If a code is provided, a system must be provided" />
    <type value="code" />
  </parameter>
  <parameter>
    <name value="codeB" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="The &quot;B&quot; code that is to be tested. If a code is provided, a system must be provided" />
    <type value="code" />
  </parameter>
  <parameter>
    <name value="system" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="The code system in which subsumption testing is to be performed. This must be provided unless the operation is invoked on a code system instance" />
    <type value="uri" />
  </parameter>
  <parameter>
    <name value="version" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="The version of the code system, if one was provided in the source data" />
    <type value="string" />
  </parameter>
  <parameter>
    <name value="codingA" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="The &quot;A&quot; Coding that is to be tested. The code system does not have to match the specified subsumption code system, but the relationships between the code systems must be well established" />
    <type value="Coding" />
  </parameter>
  <parameter>
    <name value="codingB" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="The &quot;B&quot; Coding that is to be tested. The code system does not have to match the specified subsumption code system, but the relationships between the code systems must be well established" />
    <type value="Coding" />
  </parameter>
  <parameter>
    <name value="outcome" />
    <use value="out" />
    <min value="1" />
    <max value="1" />
    <documentation value="The subsumption relationship between code/Coding &quot;A&quot; and code/Coding &quot;B&quot;. There are 4 possible codes to be returned: equivalent, subsumes, subsumed-by, and not-subsumed. If the server is unable to determine the relationship between the codes/Codings, then it returns an error (i.e. an OperationOutcome)" />
    <type value="code" />
  </parameter>
</OperationDefinition>