<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="il-core-diagnostic-report" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="draft" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="0" />
  </extension>
  <url value="http://fhir.health.gov.il/StructureDefinition/il-core-diagnostic-report" />
  <version value="0.21.0" />
  <name value="ILCoreDiagnosticReport" />
  <title value="ILCore DiagnosticReport Profile" />
  <status value="active" />
  <date value="2026-03-23" />
  <publisher value="Israel Core Team" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="tal.primak@moh.gov.il" />
    </telecom>
  </contact>
  <description value="Israel Core proposed constraints and extensions on the DiagnosticReport Resource" />
  <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">
      <path value="DiagnosticReport" />
      <short value="ILCore DiagnosticReport Profile" />
      <definition value="Israel Core proposed constraints and extensions on the DiagnosticReport resource profile." />
    </element>
    <element id="DiagnosticReport.meta">
      <path value="DiagnosticReport.meta" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.meta.lastUpdated">
      <path value="DiagnosticReport.meta.lastUpdated" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.extension">
      <path value="DiagnosticReport.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.extension:note">
      <path value="DiagnosticReport.extension" />
      <sliceName value="note" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.health.gov.il/StructureDefinition/ext-diagnostic-report-note" />
      </type>
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.health.gov.il/StructureDefinition/il-core-identifier" />
      </type>
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-care-plan" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-immunization-recommendation" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-medication-request" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-nutrition-order" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-service-request" />
      </type>
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://hl7.org/fhir/ValueSet/diagnostic-service-sections" />
      </binding>
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://hl7.org/fhir/ValueSet/report-codes" />
      </binding>
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-patient">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="true" />
          </extension>
        </targetProfile>
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-group">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="false" />
          </extension>
        </targetProfile>
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-device">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="false" />
          </extension>
        </targetProfile>
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-location">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="false" />
          </extension>
        </targetProfile>
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-encounter" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="true" />
          </extension>
        </targetProfile>
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="false" />
          </extension>
        </targetProfile>
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-organization">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="false" />
          </extension>
        </targetProfile>
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-care-team">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
            <valueBoolean value="false" />
          </extension>
        </targetProfile>
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter">
      <path value="DiagnosticReport.resultsInterpreter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-organization" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-care-team" />
      </type>
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-specimen" />
      </type>
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-observation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.imagingStudy">
      <path value="DiagnosticReport.imagingStudy" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-imaging-study" />
      </type>
    </element>
    <element id="DiagnosticReport.media.link">
      <path value="DiagnosticReport.media.link" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-media" />
      </type>
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://fhir.health.gov.il/ValueSet/diagnostic-conclusion-code" />
      </binding>
    </element>
  </differential>
</StructureDefinition>