<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="DiagnosticReport-uv-ips" />
  <url value="http://hl7.org/fhir/uv/ips/StructureDefinition/DiagnosticReport-uv-ips" />
  <name value="DiagnosticReportUvIps" />
  <title value="DiagnosticReport (IPS)" />
  <status value="active" />
  <experimental value="false" />
  <date value="2018-03-21T09:24:38.624+01:00" />
  <publisher value="HL7 International" />
  <description value="This profile constrains the DiagnosticReport resource to represent diagnostic test and procedure reports in a patient summary." />
  <purpose value="This profile constrains the DiagnosticReport resource to use the specific IPS profiles for observations and coded data types." />
  <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" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.id">
      <path value="DiagnosticReport.id" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.status">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
        <valueString value="default: final" />
      </extension>
      <path value="DiagnosticReport.status" />
      <fixedCode value="final" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.subject.reference">
      <path value="DiagnosticReport.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.effective[x]:data-absent-reason">
      <path value="DiagnosticReport.effective[x].extension" />
      <short value="effective[x] absence reason" />
      <definition value="Provides a reason why the effectiveTime is missing." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.effective[x]:effectiveDateTime">
      <path value="DiagnosticReport.effective[x]" />
      <sliceName value="effectiveDateTime" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.effective[x]:effectivePeriod">
      <path value="DiagnosticReport.effective[x]" />
      <sliceName value="effectivePeriod" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.performer.reference">
      <path value="DiagnosticReport.performer.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Specimen-uv-ips" />
      </type>
      <mustSupport value="false" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="$this.resolve()" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Observation results included in the diagnostic report." />
      <definition value="Observation results included in the diagnostic report." />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result:observation-laboratory">
      <path value="DiagnosticReport.result" />
      <sliceName value="observation-laboratory" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-laboratory-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result:observation-pathology">
      <path value="DiagnosticReport.result" />
      <sliceName value="observation-pathology" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pathology-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result:observation-imaging">
      <path value="DiagnosticReport.result" />
      <sliceName value="observation-imaging" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-imaging-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result:observation">
      <path value="DiagnosticReport.result" />
      <sliceName value="observation" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>