<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MyDiagnosticReportmcdtresultssync" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2019-08-14T18:37:52.467+01:00" />
  </meta>
  <url value="https://spms.min-saude.pt/fhir/StructureDefinition/MyDiagnosticReport_mcdt_results_sync" />
  <name value="MyDiagnosticReport_mcdt_results_sync" />
  <status value="draft" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="DiagnosticReport.id">
      <path value="DiagnosticReport.id" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.meta">
      <path value="DiagnosticReport.meta" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.meta.security">
      <path value="DiagnosticReport.meta.security" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.meta.security.system">
      <path value="DiagnosticReport.meta.security.system" />
      <min value="1" />
      <fixedUri value="http://hl7.org/fhir/v3/Confidentiality" />
    </element>
    <element id="DiagnosticReport.meta.security.code">
      <path value="DiagnosticReport.meta.security.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.meta.security.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.meta.security.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.basedOn.identifier">
      <path value="DiagnosticReport.basedOn.identifier" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.basedOn.identifier.system">
      <path value="DiagnosticReport.basedOn.identifier.system" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.basedOn.identifier.value">
      <path value="DiagnosticReport.basedOn.identifier.value" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_ACSS">
      <path value="DiagnosticReport.category" />
      <sliceName value="sliceCategory_ACSS" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_ACSS.coding.system">
      <path value="DiagnosticReport.category.coding.system" />
      <min value="1" />
      <fixedUri value="http://www.acss.min-saude.pt/mcdt/valueset/clinical-areas" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_ACSS.coding.code">
      <path value="DiagnosticReport.category.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_ACSS.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.category.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_Cod_FHIR">
      <path value="DiagnosticReport.category" />
      <sliceName value="sliceCategory_Cod_FHIR" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_Cod_FHIR.coding.system">
      <path value="DiagnosticReport.category.coding.system" />
      <min value="1" />
      <fixedUri value="http://hl7.org/fhir/v2/0074" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_Cod_FHIR.coding.code">
      <path value="DiagnosticReport.category.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category:sliceCategory_Cod_FHIR.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.category.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.code:sliceCode_LOINC">
      <path value="DiagnosticReport.code" />
      <sliceName value="sliceCode_LOINC" />
    </element>
    <element id="DiagnosticReport.code:sliceCode_LOINC.coding.system">
      <path value="DiagnosticReport.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="DiagnosticReport.code:sliceCode_LOINC.coding.code">
      <path value="DiagnosticReport.code.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.code:sliceCode_LOINC.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.code.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.code:sliceCode_ACSS">
      <path value="DiagnosticReport.code" />
      <sliceName value="sliceCode_ACSS" />
    </element>
    <element id="DiagnosticReport.code:sliceCode_ACSS.coding.system">
      <path value="DiagnosticReport.code.coding.system" />
      <min value="1" />
      <fixedUri value="ttp://www.acss.min-saude.pt/mcdt/valueset/report-types" />
    </element>
    <element id="DiagnosticReport.code:sliceCode_ACSS.coding.code">
      <path value="DiagnosticReport.code.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.code:sliceCode_ACSS.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.code.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://spms.min-saude.pt/fhir/StructureDefinition/MyPatient_mcdt_results_sync" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer.actor">
      <path value="DiagnosticReport.performer.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://spms.min-saude.pt/fhir/StructureDefinition/MyPractitioner_mcdt_results_sync" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://spms.min-saude.pt//fhir/StructureDefinition/MyOrganization_mcdt_results_sync" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://spms.min-saude.pt/fhir/StructureDefinition/MySpecimen_mcdt_results_sync" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://spms.min-saude.pt/fhir/StructureDefinition/MyObservation_mcdt_results_sync" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.result.reference">
      <path value="DiagnosticReport.result.reference" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.imagingStudy">
      <path value="DiagnosticReport.imagingStudy" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://spms.min-saude.pt/fhir/StructureDefinition/MyImagingStudy_mcdt_results_sync" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.image.link">
      <path value="DiagnosticReport.image.link" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://spms.min-saude.pt/fhir/StructureDefinition/MyMedia_mcdt_results_sync" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>