<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.cambio.se/StructureDefinition/DiagnosticReportMicrobiology" />
  <name value="DiagnosticReportMicrobiology" />
  <status value="active" />
  <description value="This profile is used to send microbiology report information for a microbiology request sent for laboratory" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="https://fhir.cambio.se/StructureDefinition/DiagnosticReportCore" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.id">
      <path value="DiagnosticReport.id" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <definition value="Details concerning a service requested.(the microbiology request information referenced here)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
      </type>
    </element>
    <element id="DiagnosticReport.category.coding.code">
      <path value="DiagnosticReport.category.coding.code" />
      <fixedCode value="MB" />
    </element>
    <element id="DiagnosticReport.category.text">
      <path value="DiagnosticReport.category.text" />
      <fixedString value="Microbiology" />
    </element>
    <element id="DiagnosticReport.code.coding.system">
      <path value="DiagnosticReport.code.coding.system" />
      <fixedUri value="SNOMED CT" />
    </element>
    <element id="DiagnosticReport.code.coding.code">
      <path value="DiagnosticReport.code.coding.code" />
      <fixedCode value="4341000179107" />
    </element>
    <element id="DiagnosticReport.code.coding.display">
      <path value="DiagnosticReport.code.coding.display" />
      <fixedString value="Microbiology report" />
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <definition value="The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.(This information do not get from lab systems)" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="https://commonprofiles.care/StructureDefinition/OrganizationSEVendorLite/v1" />
        <targetProfile value="https://fhir.cambio.se/StructureDefinition/OrganizationSEIndustryLite" />
      </type>
    </element>
    <element id="DiagnosticReport.resultsInterpreter">
      <path value="DiagnosticReport.resultsInterpreter" />
      <definition value="The practitioner or organization that is responsible for the report's conclusions and interpretations.(Do not have that information exposed correctly from lab)" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="https://fhir.cambio.se/StructureDefinition/ObservationMicrobiology" />
      </type>
    </element>
    <element id="DiagnosticReport.imagingStudy">
      <path value="DiagnosticReport.imagingStudy" />
      <definition value="One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.(removed because microbiology do not have imaging information)" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <definition value="One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report.(we do not have any codes related to conclusion)" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>