<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.siss.regione.lombardia.it/StructureDefinition/RLObservationPrestazioniRSA" />
  <name value="RLObservationPrestazioniRSA" />
  <title value="Observation Prestazioni RSA" />
  <status value="draft" />
  <date value="2026-10-08" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="Prestazioni" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="Indica lo stato dell'osservazione" />
      <min value="1" />
      <max value="1" />
      <fixedCode value="final" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="Codice identificativo" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <short value="Sistema di codifica" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding.version">
      <path value="Observation.code.coding.version" />
      <short value="Versione del sistema di codifica" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <short value="Valore del codice" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding.display">
      <path value="Observation.code.coding.display" />
      <short value="Descrizione leggibile del codice" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Soggetto a cui si riferisce l'osservazione" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/RLPatientCore" />
      </type>
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <short value="Episodio di cura a cui si riferisce l'osservazione" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/RLEncounterCore" />
      </type>
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <short value="Note" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <short value="Testo della nota" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <short value="Specifica il metodo utilizzato per ottenere l'osservazione" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <short value="Riferimento al dispositivo che ha effettuato la misurazione o osservazione" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <short value="Collega questa osservazione ad altre osservazioni correlate" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
      </type>
    </element>
  </differential>
</StructureDefinition>