<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-DI" />
  <name value="HD_Consolidation_DiagnosticReport_DI" />
  <status value="draft" />
  <publisher value="Nova Scotia Health" />
  <contact>
    <name value="Nova Scotia Health" />
  </contact>
  <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.identifier">
      <path value="DiagnosticReport.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="HD_Consolidation_DiagnosticReport_ServiceRequest" />
        <aggregation value="contained" />
      </type>
    </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.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://nshealth.ca/fhir/StructureDefinition/Profile-HD-Consolidation-Patient" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <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="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
    </element>
    <element id="DiagnosticReport.resultsInterpreter.reference">
      <path value="DiagnosticReport.resultsInterpreter.reference" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.type">
      <path value="DiagnosticReport.resultsInterpreter.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier">
      <path value="DiagnosticReport.resultsInterpreter.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <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" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DiagnosticReport.presentedForm.contentType">
      <path value="DiagnosticReport.presentedForm.contentType" />
      <fixedCode value="test/plain" />
    </element>
    <element id="DiagnosticReport.presentedForm.language">
      <path value="DiagnosticReport.presentedForm.language" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm.url">
      <path value="DiagnosticReport.presentedForm.url" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm.size">
      <path value="DiagnosticReport.presentedForm.size" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm.hash">
      <path value="DiagnosticReport.presentedForm.hash" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm.title">
      <path value="DiagnosticReport.presentedForm.title" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm.creation">
      <path value="DiagnosticReport.presentedForm.creation" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>