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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="deviceassociation-status-reason"/>
  <meta>
    <lastUpdated value="2026-03-31T18:55:04.283+00:00"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p class="res-header-id">
        <b>Generated Narrative: CodeSystem deviceassociation-status-reason</b>
      </p>
      <a name="deviceassociation-status-reason"> </a>
      <a name="hcdeviceassociation-status-reason"> </a>
      <p>This case-sensitive code system 
        <code>http://hl7.org/fhir/deviceassociation-status-reason</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">attached
            <a name="deviceassociation-status-reason-attached"> </a>
          </td>
          <td>Attached</td>
          <td>The device is connected to the patient.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">disconnected
            <a name="deviceassociation-status-reason-disconnected"> </a>
          </td>
          <td>Disconnected</td>
          <td>The device is no longer connected.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">failed
            <a name="deviceassociation-status-reason-failed"> </a>
          </td>
          <td>Failed</td>
          <td>The device has failed to work, or continue to function.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">placed
            <a name="deviceassociation-status-reason-placed"> </a>
          </td>
          <td>Placed</td>
          <td>The device was placed in the patient.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">replaced
            <a name="deviceassociation-status-reason-replaced"> </a>
          </td>
          <td>Replaced</td>
          <td>The device was updated with a new device or device part.</td>
        </tr>
      </table>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="normative"/>
  </extension>
  <url value="http://hl7.org/fhir/deviceassociation-status-reason"/>
  <version value="6.0.0-ballot4"/>
  <name value="DeviceAssociation"/>
  <title value="DeviceAssociation Status Reason Codes"/>
  <status value="active"/>
  <experimental value="false"/>
  <publisher value="HL7 International"/>
  <description value="DeviceAssociation Status Reason Codes"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <caseSensitive value="true"/>
  <valueSet value="http://hl7.org/fhir/ValueSet/deviceassociation-status-reason"/>
  <content value="complete"/>
  <concept>
    <code value="attached"/>
    <display value="Attached"/>
    <definition value="The device is connected to the patient."/>
  </concept>
  <concept>
    <code value="disconnected"/>
    <display value="Disconnected"/>
    <definition value="The device is no longer connected."/>
  </concept>
  <concept>
    <code value="failed"/>
    <display value="Failed"/>
    <definition value="The device has failed to work, or continue to function."/>
  </concept>
  <concept>
    <code value="placed"/>
    <display value="Placed"/>
    <definition value="The device was placed in the patient."/>
  </concept>
  <concept>
    <code value="replaced"/>
    <display value="Replaced"/>
    <definition value="The device was updated with a new device or device part."/>
  </concept>
</CodeSystem>