<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="DiagnosticReport" />
  <meta>
    <lastUpdated value="2025-05-02T11:22:25.435+00:00" />
  </meta>
  <url value="https://demis.rki.de/fhir/ars/StructureDefinition/DiagnosticReport" />
  <version value="1.0.0" />
  <name value="DiagnosticReport" />
  <title value="Laborbericht" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2025-04-15" />
  <publisher value="ARS@rki.de" />
  <description value="Dieses Profil ist eine Zusammenfassung aller Ressourcen der eigentlichen Labordiagnostik. Für ARS wird hier kein vollständiger und lesbarer Laborbericht erwartet. Für ARS enthält der Laborbericht unter DiagnosticReport.status Informationen zum Status der Diagnostik zu einer Probe, siehe 'Life-cycle-Management'." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.id">
      <path value="DiagnosticReport.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta">
      <path value="DiagnosticReport.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta.id">
      <path value="DiagnosticReport.meta.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.meta.extension">
      <path value="DiagnosticReport.meta.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.meta.versionId">
      <path value="DiagnosticReport.meta.versionId" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.meta.lastUpdated">
      <path value="DiagnosticReport.meta.lastUpdated" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.meta.source">
      <path value="DiagnosticReport.meta.source" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.meta.profile">
      <path value="DiagnosticReport.meta.profile" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta.profile:arsProfile">
      <path value="DiagnosticReport.meta.profile" />
      <sliceName value="arsProfile" />
      <min value="1" />
      <max value="1" />
      <patternCanonical value="https://demis.rki.de/fhir/ars/StructureDefinition/DiagnosticReport" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta.security">
      <path value="DiagnosticReport.meta.security" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.meta.tag">
      <path value="DiagnosticReport.meta.tag" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://demis.rki.de/fhir/ars/StructureDefinition/ServiceRequest" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.basedOn.reference">
      <path value="DiagnosticReport.basedOn.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.basedOn.type">
      <path value="DiagnosticReport.basedOn.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.basedOn.identifier">
      <path value="DiagnosticReport.basedOn.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.basedOn.display">
      <path value="DiagnosticReport.basedOn.display" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <comment value="Für ARS werden nur finale Ergebnisse eines diagnostischen Schritts erwartet. Sollten ergänzende oder veränderte Angaben zu einem bereits übermittelten Ergebnis gemacht werden, kann der Status mit 'amended' bzw. bei Löschen der Angaben zu einer Probe mit 'entered-in-error' beschrieben werden." />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://demis.rki.de/fhir/ars/ValueSet/diagnosticReportStatus" />
      </binding>
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code.coding">
      <path value="DiagnosticReport.code.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code.coding.system">
      <path value="DiagnosticReport.code.coding.system" />
      <min value="1" />
      <patternUri value="http://loinc.org" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code.coding.version">
      <path value="DiagnosticReport.code.coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code.coding.code">
      <path value="DiagnosticReport.code.coding.code" />
      <min value="1" />
      <patternCode value="11502-2" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code.coding.display">
      <path value="DiagnosticReport.code.coding.display" />
      <patternString value="Laboratory report" />
    </element>
    <element id="DiagnosticReport.code.text">
      <path value="DiagnosticReport.code.text" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://demis.rki.de/fhir/ars/StructureDefinition/Patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.subject.reference">
      <path value="DiagnosticReport.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.subject.type">
      <path value="DiagnosticReport.subject.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.subject.identifier">
      <path value="DiagnosticReport.subject.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.subject.display">
      <path value="DiagnosticReport.subject.display" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter">
      <path value="DiagnosticReport.resultsInterpreter" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://demis.rki.de/fhir/ars/StructureDefinition/Observation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result.reference">
      <path value="DiagnosticReport.result.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result.type">
      <path value="DiagnosticReport.result.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result.identifier">
      <path value="DiagnosticReport.result.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result.display">
      <path value="DiagnosticReport.result.display" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.imagingStudy">
      <path value="DiagnosticReport.imagingStudy" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media">
      <path value="DiagnosticReport.media" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>