<?xml version="1.0" encoding="UTF-8"?><DeviceAssociation xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <meta>
    <security>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
      <code value="HTEST"/>
      <display value="test health data"/>
    </security>
  </meta>
  <identifier>
    <system value="http://acme.com/deviceassociations/id"/>
    <value value="DA12345"/>
  </identifier>
  <device>
    <reference value="Device/prod1"/>
  </device>
  <relationship>
    <coding>
      <system value="http://hl7.org/fhir/deviceassociation-relationship"/>
      <code value="implanted-in"/>
      <display value="Implanted In"/>
    </coding>
  </relationship>
  <status value="inactive"/>
  <!-- Relationship lifecycle state moved here -->
  <relationshipStatus>
    <coding>
      <system value="http://hl7.org/fhir/deviceassociation-relationship-status"/>
      <code value="removed"/>
      <display value="Removed"/>
    </coding>
  </relationshipStatus>
  <subject>
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
  <period>
    <start value="2023-01-01T08:00:00Z"/>
    <end value="2023-12-31T17:00:00Z"/>
  </period>
</DeviceAssociation>