<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-ot-diagnosticreport" />
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-ot-diagnosticreport" />
  <name value="DiagnosticReport" />
  <title value="Operating Theatre Diagnostic Report Profile" />
  <status value="active" />
  <publisher value="Synapxe" />
  <description value="Diagnostic report profile for documenting pathology and diagnostic findings during or related to surgical procedures." />
  <fhirVersion value="5.0.0" />
  <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" />
      <definition value="Findings and interpretations of tests performed on the patient." />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <definition value="Sequence number assigned to the report." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier-sequence-no" />
      </type>
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <definition value="Carries these NEHR XML elements of putOTNotes:&#xA;&#xA;- `content/Composition/section/entry/DiagnosticReport/status`: Information related to the status of the report.&#xA;- `content/Composition/section/entry/Procedure/report/status`: Status of the report." />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <definition value="Category of the report." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <definition value="Name of the report." />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <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]" />
      <definition value="Carries these NEHR XML elements of putOTNotes:&#xA;&#xA;- `content/Composition/section/entry/DiagnosticReport/effective/effectiveDateTime`: Effective date and time of the report.&#xA;- `content/Composition/section/entry/DiagnosticReport/effective/effectivePeriod/start`: Start of the effective period.&#xA;- `content/Composition/section/entry/DiagnosticReport/effective/effectivePeriod/end`: End of the effective period.&#xA;- `content/Composition/section/entry/Procedure/report/effective/effectivePeriod/start`: The start of the period. The boundary is inclusive.&#xA;- `content/Composition/section/entry/Procedure/report/effective/effectivePeriod/end`: The end of the period." />
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <definition value="Carries these NEHR XML elements of putOTNotes:&#xA;&#xA;- `content/Composition/section/entry/DiagnosticReport/issued`: Date and time this version of the report was released from the source diagnostic service.&#xA;- `content/Composition/section/entry/Procedure/report/issued`: Date and time the report was released." />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <definition value="The reporting practitioner and their role: a contained PractitionerRole (&quot;#performer&quot;)." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitionerrole" />
      </type>
    </element>
    <element id="DiagnosticReport.performer.id">
      <path value="DiagnosticReport.performer.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer.extension">
      <path value="DiagnosticReport.performer.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer.reference">
      <path value="DiagnosticReport.performer.reference" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer.type">
      <path value="DiagnosticReport.performer.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer.identifier">
      <path value="DiagnosticReport.performer.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer.display">
      <path value="DiagnosticReport.performer.display" />
      <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://fhir.synapxe.sg/StructureDefinition/profile-ot-observation" />
      </type>
    </element>
    <element id="DiagnosticReport.result.id">
      <path value="DiagnosticReport.result.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result.extension">
      <path value="DiagnosticReport.result.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result.reference">
      <path value="DiagnosticReport.result.reference" />
      <min value="1" />
    </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.note">
      <path value="DiagnosticReport.note" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.study">
      <path value="DiagnosticReport.study" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo">
      <path value="DiagnosticReport.supportingInfo" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media">
      <path value="DiagnosticReport.media" />
      <definition value="The report's presented forms (files), each a DocumentReference entry (profile-fileattachment) with its comments as description." />
    </element>
    <element id="DiagnosticReport.media.link">
      <path value="DiagnosticReport.media.link" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-fileattachment" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.composition">
      <path value="DiagnosticReport.composition" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <definition value="Concise and clinically contextualized narrative interpretation of the report." />
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <definition value="Final diagnosis of the investigation." />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>