<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-diagnosticreportnote" />
  <url value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-diagnosticreportnote" />
  <version value="0.3.1" />
  <name value="DiagnosticReportNoteProfile" />
  <title value="Diagnostic Report for Report and Note Exchange Profile" />
  <status value="draft" />
  <date value="2026-01-09" />
  <publisher value="HL7 Canada - FHIR Implementation Work Group" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://infocentral.infoway-inforoute.ca/en/collaboration/wg/fhir-implementations" />
    </telecom>
  </contact>
  <description value="Proposed constraints and extensions on the Diagnostic Report Resource to support collection of diagnostic report information for reports and notes.  Generated as a first step toward creating a set of Canadian Baseline FHIR profiles." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="CA" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <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="DiagnosticReport for Report and Note Profile" />
      <definition value="The DiagnosticReport Profile is based upon the core FHIR DiagnosticReport Resource" />
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <binding>
        <strength value="required" />
        <description value="Codes providing the status of a DiagnosticReport." />
        <valueSet value="http://hl7.org/fhir/ValueSet/diagnostic-report-status" />
      </binding>
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <comment value="This profile does not currently put forth a Canadian value set for Diagnostic Report Categories. Further work is required to determine if this profile should align to the value set in use in US Core https://www.hl7.org/fhir/us/core/ValueSet-us-core-diagnosticreport-category.html or if a Canadian value set needs to be created." />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <comment value="This profile does not currently put forth a Canadian value set for Diagnostic Report Codes. Further work is required to determine if this profile should align to the value set in use in US Core https://www.hl7.org/fhir/us/core/ValueSet-us-core-diagnosticreport-report-and-note-codes.html or if a Canadian value set needs to be created." />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <short value="The patient that the diagnostic report refers to" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient" />
      </type>
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-encounter" />
      </type>
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <short value="Time of report or note" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <short value="Responsible Diagnostic Service" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization" />
      </type>
    </element>
  </differential>
</StructureDefinition>