<?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>
  <device>
    <reference value="Device/prod1"/>
  </device>
  <status value="active"/>
  <identifier>
    <system value="http://acme.com/deviceassociations/id"/>
    <value value="DA12345"/>
  </identifier>
  <relationship>
    <coding>
      <system value="http://hl7.org/fhir/CodeSystem/deviceassociation-relationship"/>
      <code value="patient"/>
      <display value="Patient"/>
    </coding>
  </relationship>
  <period>
    <start value="2023-01-01T08:00:00Z"/>
    <end value="2023-12-31T17:00:00Z"/>
  </period>
  <!--  Association/operational state moved here  -->
  <associationStatus>
    <coding>
      <system value="http://hl7.org/fhir/CodeSystem/deviceassociation-association-status"/>
      <code value="implanted"/>
      <display value="Implanted"/>
    </coding>
  </associationStatus>
  <subject>
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
</DeviceAssociation>