<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ProfileDiagnosticReportLab" />
  <url value="https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/DiagnosticReportLab" />
  <version value="1.0" />
  <name value="ProfileDiagnosticReportLaborbefund" />
  <title value="Profile - DiagnosticReport - Laborbefund" />
  <status value="active" />
  <experimental value="false" />
  <publisher value="https://www.Medizininformatik-Initiative.de" />
  <description value="Dieses Profil beschreibt einen Laborbefund in der Medizininformatik-Initiative." />
  <purpose value="Dieses Profil beschreibt einen Laborbefund in der Medizininformatik-Initiative." />
  <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" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta">
      <path value="DiagnosticReport.meta" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta.source">
      <path value="DiagnosticReport.meta.source" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta.profile">
      <path value="DiagnosticReport.meta.profile" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="type" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund">
      <path value="DiagnosticReport.identifier" />
      <sliceName value="befund" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DiagnosticReport.identifier:befund.type">
      <path value="DiagnosticReport.identifier.type" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="FILL" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund.type.coding">
      <path value="DiagnosticReport.identifier.type.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund.type.coding:fillerV2">
      <path value="DiagnosticReport.identifier.type.coding" />
      <sliceName value="fillerV2" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund.type.coding:fillerV2.system">
      <path value="DiagnosticReport.identifier.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v2-0203" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund.type.coding:fillerV2.code">
      <path value="DiagnosticReport.identifier.type.coding.code" />
      <min value="1" />
      <fixedCode value="FILL" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund.system">
      <path value="DiagnosticReport.identifier.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund.value">
      <path value="DiagnosticReport.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier:befund.assigner">
      <path value="DiagnosticReport.identifier.assigner" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <profile value="https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <profile value="https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.category.coding">
      <path value="DiagnosticReport.category.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="2" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.category.coding:loinc-lab">
      <path value="DiagnosticReport.category.coding" />
      <sliceName value="loinc-lab" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://loinc.org" />
        <code value="26436-6" />
      </patternCoding>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.category.coding:diagnostic-service-sections">
      <path value="DiagnosticReport.category.coding" />
      <sliceName value="diagnostic-service-sections" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://terminology.hl7.org/CodeSystem/v2-0074" />
        <code value="LAB" />
      </patternCoding>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code.coding">
      <path value="DiagnosticReport.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code.coding:loinc-labReport">
      <path value="DiagnosticReport.code.coding" />
      <sliceName value="loinc-labReport" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://loinc.org" />
        <code value="11502-2" />
      </patternCoding>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <profile value="https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <definition value="Zeitpunkt, zu dem die gemessene Eigenschaft im Probenmaterial (e.g. Analytkonzentration) mutmaßlich der Eigenschaft im Patienten entsprach. Wenn der Zeitpunkt der Probenentnahme angegeben ist, wird meist dieser Zeitpunkt verwendet. Andernfalls wird zumeist behelfsmäßig der Probeneingang im Labor gewählt. Dieses Element ist wichtig um verschiedene Analysen im Zeitverlauf sortieren zu können." />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.performer.reference">
      <path value="DiagnosticReport.performer.reference" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.performer.identifier">
      <path value="DiagnosticReport.performer.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.specimen.reference">
      <path value="DiagnosticReport.specimen.reference" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.specimen.identifier">
      <path value="DiagnosticReport.specimen.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <profile value="https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>