<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cdr-diagnosticreport" />
  <url value="http://ssasur.cl/fhir/StructureDefinition/CdrDiagnosticReport" />
  <name value="CdrDiagnosticReport" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <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" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DiagnosticReport.identifier.use">
      <path value="DiagnosticReport.identifier.use" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier.type">
      <path value="DiagnosticReport.identifier.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier.system">
      <path value="DiagnosticReport.identifier.system" />
      <min value="1" />
      <fixedUri value="http://ssasur.cl/IdReporte" />
    </element>
    <element id="DiagnosticReport.identifier.value">
      <path value="DiagnosticReport.identifier.value" />
      <short value="numero_solicitud" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier.period">
      <path value="DiagnosticReport.identifier.period" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ssasur.cl/fhir/StructureDefinition/CdrServiceRequest" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="DiagnosticReport.basedOn.reference">
      <path value="DiagnosticReport.basedOn.reference" />
      <min value="1" />
    </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.status">
      <path value="DiagnosticReport.status" />
      <fixedCode value="final" />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding">
      <path value="DiagnosticReport.category.coding" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding.system">
      <path value="DiagnosticReport.category.coding.system" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding.code">
      <path value="DiagnosticReport.category.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.code.coding">
      <path value="DiagnosticReport.code.coding" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.code.text">
      <path value="DiagnosticReport.code.text" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ssasur.cl/fhir/StructureDefinition/CdrPatient" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="DiagnosticReport.subject.reference">
      <path value="DiagnosticReport.subject.reference" />
      <min value="1" />
    </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.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <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="0" />
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ssasur.cl/fhir/StructureDefinition/CdrSpecimen" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="DiagnosticReport.specimen.reference">
      <path value="DiagnosticReport.specimen.reference" />
      <min value="1" />
    </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" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ssasur.cl/fhir/StructureDefinition/CdrObservation" />
        <aggregation value="referenced" />
      </type>
    </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.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>