<?xml version="1.0" encoding="UTF-8"?>
<!--
  Canonical sample for schemas/dll_com/GetResults-1.0.xsd.

  Same data as schemas/samples/get-results.json — different
  serialisation. The cross-format uniformity test (#640) checks that
  the field names and types described here match the JSON variant
  1:1, so a partner reading either format gets the SAME parser
  semantics.

  The <data> element holds the SPIGES XML payload as a CDATA block so
  the inner XML reaches the partner intact (no entity-escaping). Per
  #640 model-separation: <data> contains ONLY the SPIGES envelope —
  the grouper output lives in the sibling <codingResult> element.
-->
<codingResults xmlns="https://schemas.kodemed.ch/dll_com/GetResults-1.0"
               sessionId="0f9ea092-c774-4624-bb10-8910ec03d1db"
               instanceId="his-eoc-2026-06-01-12345"
               eventType="case.coded"
               occurredAt="2026-06-01T19:42:11Z">

  <cases>
    <case format="spiges" schemaVersion="SPIGES-1.5">
      <data><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<spiges xmlns="https://www.bfs.admin.ch/xmlns/spiges/1.5">
  <Fall fall_id="F001">
    <Diagnose diagnose_code="K35.2" diagnose_katalog="ICD-10-GM" ist_hauptdiagnose="true"/>
    <Behandlung behandlung_code="47.01" behandlung_katalog="CHOP"/>
  </Fall>
</spiges>]]></data>

      <codingResult caseId="F001"
                    tariff="SWISSDRG"
                    drg="G22C"
                    drgDescription="Appendektomie ohne komplexe Diagnose"
                    mdc="06"
                    partition="Surgical"
                    grouperVersion="SwissDRG-15.0"
                    grouperStatus="OK">
        <!-- Nullable per-case numeric / boolean / timestamp fields ride as
             elements (System.Xml.Serialization + Nullable<T> on attribute
             is unsupported). Element order matches the XSD sequence. -->
        <pccl>3</pccl>
        <costWeight>0.976</costWeight>
        <baseCostWeight>0.976</baseCostWeight>
        <effectiveCostWeight>0.976</effectiveCostWeight>
        <los>5</los>
        <ltp>2</ltp>
        <htp>14</htp>
        <alos>4.8</alos>
        <dayRate>0.0</dayRate>
        <transferDiscount>false</transferDiscount>
        <groupingSuccess>true</groupingSuccess>
        <groupedAt>2026-06-01T19:42:09Z</groupedAt>
        <diagnoses>
          <diagnosis code="K35.2" catalog="ICD-10-GM" isHauptdiagnose="true"/>
        </diagnoses>
        <procedures>
          <procedure code="47.01" catalog="CHOP" performedAt="2026-06-01T11:30:00Z"/>
        </procedures>
        <supplements/>
        <warnings/>
        <flags/>
      </codingResult>
    </case>
  </cases>

  <stats startedAt="2026-06-01T19:42:08Z"
         finishedAt="2026-06-01T19:42:11Z"
         durationMs="3142"
         casesProcessed="1"
         diagnosesCount="1"
         treatmentsCount="1"
         sitesCount="1"
         enterpriseId="100000001"
         spiGesVersion="SPIGES-1.5"
         success="true">
    <warnings/>
  </stats>
</codingResults>
