<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Laboratory" />
  <name value="HD_Consolidation_DiagnosticReport_Laboratory" />
  <status value="draft" />
  <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="https://nshealth.ca/fhir/StructureDefinition/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.category">
      <path value="DiagnosticReport.category" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding">
      <path value="DiagnosticReport.category.coding" />
      <short value="Category of Diagnostic Report" />
      <definition value="Category of Diagnostic Report" />
      <min value="1" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <description value="Category of Diagnostic Report" />
        <valueSet value="https://nshealth.ca/fhir/ValueSet/ReportCategory" />
      </binding>
    </element>
    <element id="DiagnosticReport.category.coding.system">
      <path value="DiagnosticReport.category.coding.system" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding.version">
      <path value="DiagnosticReport.category.coding.version" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.category.coding.code">
      <path value="DiagnosticReport.category.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding.display">
      <path value="DiagnosticReport.category.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding.userSelected">
      <path value="DiagnosticReport.category.coding.userSelected" />
      <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" />
      </type>
    </element>
    <element id="DiagnosticReport.subject.type">
      <path value="DiagnosticReport.subject.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.subject.identifier">
      <path value="DiagnosticReport.subject.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.subject.display">
      <path value="DiagnosticReport.subject.display" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Organization" />
        <aggregation value="contained" />
      </type>
    </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="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Specimen" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="DiagnosticReport.specimen.type">
      <path value="DiagnosticReport.specimen.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.specimen.identifier">
      <path value="DiagnosticReport.specimen.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.specimen.display">
      <path value="DiagnosticReport.specimen.display" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Observation" />
        <aggregation value="contained" />
      </type>
    </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" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>