<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="rl-profile-diagnosticreport-report" />
  <url value="https://fhir.siss.regione.lombardia.it/StructureDefinition/RLDiagnosticReportReferto" />
  <version value="0.2.0" />
  <name value="RLDiagnosticReportReferto" />
  <title value="DiagnosticReport - Referto" />
  <status value="active" />
  <date value="2024-03-08T10:59:35+01:00" />
  <description value="Descrizione delle informazioni cliniche tramite il profilo della risorsa DiagnosticReport." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/R4/diagnosticreport" />
  <differential>
    <element id="DiagnosticReport">
      <path value="DiagnosticReport" />
      <short value="DiagnosticReport Referto" />
    </element>
    <element id="DiagnosticReport.extension:DiagnosticReportCompositionR5">
      <path value="DiagnosticReport.extension" />
      <sliceName value="DiagnosticReportCompositionR5" />
      <short value="Estensione di FHIR R5 per legare la DiagnosticReport a Composition." />
    </element>
    <element id="DiagnosticReport.extension:DiagnosticReportCompositionR5.value[x]">
      <path value="DiagnosticReport.extension.value[x]" />
      <short value="Reference a Composition." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/R4/composition" />
      </type>
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <short value="Identificativo indipendente dalla versione." />
      <comment value="Composition.identifier DEVE essere uguale ad uno dei DiagnosticReport.identifier, se ne esiste almeno uno." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <short value="Reference a una o più prestazioni richieste associate al referto." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/R4/servicerequest" />
      </type>
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <short value="Stato del Referto" />
      <comment value="DiagnosticReport.status e Composition.status devono essere coerenti." />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/diagnostic-report-status" />
      </binding>
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <comment value="DiagnosticReport.category e Composition.category  devono essere allineati." />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <short value="Referto" />
      <definition value="Specifica il tipo di documento tramite un codice LOINC" />
      <comment value="DiagnosticReport.code e Composition.type devono essere allineati." />
    </element>
    <element id="DiagnosticReport.code.coding">
      <path value="DiagnosticReport.code.coding" />
      <short value="Codice definito da un sistema terminologico." />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <comment value="DiagnosticReport e Composition devono avere lo stesso subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/R4/patient" />
      </type>
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <short value="Evento sanitario a cui si riferisce il Referto (es. al momento della prescrizione)." />
      <definition value="Evento sanitario a cui si riferisce il Referto (es. al momento della prescrizione)." />
      <comment value="This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).&#xA;  DiagnosticReport e Composition devono referenziare lo stesso encounter." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/R4/encounter" />
      </type>
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <short value="Persona o Organizzazione che partecipa all'evento clinico descritto." />
      <definition value="Organizzazione o Persona che è responsabile del report; non è necessariamente l'autore dei dati atomici o l'entità che ha interpretato i risultati." />
      <comment value="Se DiagnosticReport.resultsInterpreter esiste, anche Composition.author deve essere valorizzato. Altrimenti DiagnosticReport.performer dovrebbe essere un autore." />
      <type>
        <code value="Reference" />
        <targetProfile value="http:/hl7.org/fhir/R4/practitioner" />
        <targetProfile value="http:/hl7.org/fhir/R4/practitionerrole" />
        <targetProfile value="http:/hl7.org/fhir/R4/organization" />
        <targetProfile value="http:/hl7.org/fhir/R4/careteam" />
      </type>
    </element>
    <element id="DiagnosticReport.resultsInterpreter">
      <path value="DiagnosticReport.resultsInterpreter" />
      <short value="Chi e/o cosa è l'autore del referto ." />
      <comment value="Se DiagnosticReport.resultsInterpreter esiste, anche Composition.author deve essere valorizzato. Altrimenti DiagnosticReport.performer dovrebbe essere un autore." />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <short value="Osservazioni contenute nel referto." />
    </element>
    <element id="DiagnosticReport.media">
      <path value="DiagnosticReport.media" />
      <short value="Contenuto multimediale associate al DiagnosticReport." />
    </element>
    <element id="DiagnosticReport.media.comment">
      <path value="DiagnosticReport.media.comment" />
      <short value="Commento sull'immagine." />
    </element>
    <element id="DiagnosticReport.media.link">
      <path value="DiagnosticReport.media.link" />
      <short value="Riferimento al contenuto multimediale." />
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <short value="Rappresentazione testuale del Referto  così come emesso." />
    </element>
  </differential>
</StructureDefinition>