<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.siss.regione.lombardia.it/StructureDefinition/RLGoalPAI" />
  <name value="RLGoalPAI" />
  <title value="Goal PAI" />
  <status value="draft" />
  <date value="2026-10-27" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Goal" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Goal" />
  <derivation value="constraint" />
  <differential>
    <element id="Goal">
      <path value="Goal" />
      <short value="Obiettivo della presa in carico" />
    </element>
    <element id="Goal.lifecycleStatus">
      <path value="Goal.lifecycleStatus" />
      <short value="Stato del ciclo di vita dell'obiettivo" />
      <min value="1" />
      <max value="1" />
      <fixedCode value="active" />
    </element>
    <element id="Goal.description">
      <path value="Goal.description" />
      <short value="Obiettivo presa in carico" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Goal.description.coding">
      <path value="Goal.description.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Goal.description.coding.system">
      <path value="Goal.description.coding.system" />
      <short value="Sistema di codifica" />
      <comment value="CRS-SISS (OID 2.16.840.1.113883.2.9.2.30.3.1.3.13.6.8)" />
      <min value="1" />
      <max value="1" />
      <fixedUri value="urn:oid:2.16.840.1.113883.2.9.2.30.3.1.3.13.6.8" />
    </element>
    <element id="Goal.description.coding.code">
      <path value="Goal.description.coding.code" />
      <short value="Valore del codice" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Goal.description.coding.display">
      <path value="Goal.description.coding.display" />
      <short value="Descrizione leggibile del codice" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Goal.description.text">
      <path value="Goal.description.text" />
      <short value="Testo libero" />
      <comment value="Obiettivo presa in carico - Altro." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Goal.subject">
      <path value="Goal.subject" />
      <short value="Paziente a cui si riferisce l'obiettivo" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.siss.regione.lombardia.it/StructureDefinition/RLPatientCore" />
      </type>
    </element>
  </differential>
</StructureDefinition>