{
  "resourceType": "Bundle",
  "id": "esempio-RLBundleMOSST-dimissioni-protette",
  "meta": {
    "profile": [
      "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLBundleMOSST"
    ]
  },
  "type": "message",
  "timestamp": "2026-11-26T15:30:00+00:00",
  "entry": [
    {
      "resource": {
        "resourceType": "Patient",
        "id": "94f89259-2d71-4df0-841f-68fdd1746af8",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-11-26T15:30:00+00:00",
          "profile": [
            "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLPatientCittadino"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLPatientASSTdiRiferimento",
            "valueCode": "030701"
          }
        ],
        "identifier": [
          {
            "system": "http://hl7.it/sid/codiceFiscale",
            "value": "RSSMRA80A01F205X"
          }
        ],
        "name": [
          {
            "family": "ROSSI",
            "given": [
              "MARIO"
            ]
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "+39 333 1234567",
            "use": "mobile"
          }
        ],
        "gender": "male",
        "birthDate": "1980-01-01"
      }
    },
    {
      "resource": {
        "resourceType": "QuestionnaireResponse",
        "id": "c3d4e5f6-a7b8-4901-cdef-123456789012",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-11-26T15:30:00+00:00",
          "profile": [
            "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLQuestionnaireResponseValutazione"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLQuestionnaireResponseTipologiaValutazione",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.siss.regione.lombardia.it/CodeSystem/SGDT-TipologiaValutazione",
                  "code": "N",
                  "display": "Valutazione non ADI"
                }
              ]
            }
          }
        ],
        "questionnaire": "Questionnaire/b2c3d4e5-f6a7-4890-bcde-f12345678901",
        "status": "completed",
        "authored": "2026-11-26T15:25:00+00:00",
        "author": {
          "reference": "Practitioner/c3d4e5f6-0003-11ed-b856-02001700b287",
          "display": "VERDI MARIO"
        },
        "source": {
          "reference": "Patient/94f89259-2d71-4df0-841f-68fdd1746af8",
          "display": "ROSSI MARIO"
        },
        "item": [
          {
            "linkId": "1",
            "text": "Dispositivi e Terapie in corso - 1",
            "answer": [
              {
                "valueString": "Ossigenoterapia",
                "item": [
                  {
                    "linkId": "B"
                  }
                ]
              },
              {
                "valueString": "Catetere Vescicale",
                "item": [
                  {
                    "linkId": "N"
                  }
                ]
              }
            ]
          },
          {
            "linkId": "2",
            "text": "Dispositivi e Terapie in corso - 2",
            "answer": [
              {
                "valueString": "Terapia anticoagulante orale",
                "item": [
                  {
                    "linkId": "B"
                  }
                ]
              }
            ]
          },
          {
            "linkId": "3",
            "text": "Lesioni - Tipologia",
            "answer": [
              {
                "valueString": "Sacro-coccigeo",
                "item": [
                  {
                    "linkId": "A"
                  }
                ]
              }
            ]
          },
          {
            "linkId": "4",
            "text": "Lesioni - Sede",
            "answer": [
              {
                "valueString": "Regione sacrale destra",
                "item": [
                  {
                    "linkId": "A"
                  }
                ]
              }
            ]
          },
          {
            "linkId": "5",
            "text": "Scale di valutazione",
            "answer": [
              {
                "valueInteger": 3,
                "item": [
                  {
                    "linkId": "A"
                  }
                ]
              },
              {
                "valueInteger": 12,
                "item": [
                  {
                    "linkId": "B"
                  }
                ]
              },
              {
                "valueInteger": 4,
                "item": [
                  {
                    "linkId": "C"
                  }
                ]
              },
              {
                "valueInteger": 15,
                "item": [
                  {
                    "linkId": "D"
                  }
                ]
              },
              {
                "valueInteger": 2,
                "item": [
                  {
                    "linkId": "E"
                  }
                ]
              },
              {
                "valueInteger": 4,
                "item": [
                  {
                    "linkId": "F"
                  }
                ]
              },
              {
                "valueInteger": 3,
                "item": [
                  {
                    "linkId": "G"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "Questionnaire",
        "id": "b2c3d4e5-f6a7-4890-bcde-f12345678901",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-11-26T15:30:00+00:00",
          "profile": [
            "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLQuestionnaireValutazione"
          ]
        },
        "title": "Scheda di dimissioni protette",
        "status": "active"
      }
    },
    {
      "resource": {
        "resourceType": "Practitioner",
        "id": "c3d4e5f6-0003-11ed-b856-02001700b287",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-11-26T15:30:00+00:00",
          "profile": [
            "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLPractitionerProfessionistaSanitario"
          ]
        },
        "identifier": [
          {
            "system": "http://hl7.it/sid/codiceFiscale",
            "value": "VRDMRA75C12F205Z"
          }
        ],
        "name": [
          {
            "family": "VERDI",
            "given": [
              "MARIO"
            ]
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "DocumentReference",
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-11-26T15:30:00+00:00",
          "profile": [
            "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLDocumentReferenceDocumento"
          ]
        },
        "status": "current",
        "subject": {
          "reference": "Patient/94f89259-2d71-4df0-841f-68fdd1746af8"
        },
        "date": "2026-11-26T15:20:00+00:00",
        "author": [
          {
            "reference": "PractitionerRole/b2c3d4e5-0002-11ed-b856-02001700b287"
          }
        ],
        "description": "Scheda di valutazione dimissione protetta",
        "content": [
          {
            "attachment": {
              "contentType": "application/pdf",
              "data": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoK",
              "title": "Scheda di valutazione dimissione protetta",
              "creation": "2026-11-26"
            }
          }
        ]
      }
    },
    {
      "resource": {
        "resourceType": "DocumentReference",
        "id": "e5f6a7b8-c9d0-4123-ef12-345678901234",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2026-11-26T15:30:00+00:00",
          "profile": [
            "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLDocumentReferenceDocumento"
          ]
        },
        "status": "current",
        "subject": {
          "reference": "Patient/94f89259-2d71-4df0-841f-68fdd1746af8"
        },
        "date": "2026-11-26T15:22:00+00:00",
        "author": [
          {
            "reference": "PractitionerRole/b2c3d4e5-0002-11ed-b856-02001700b287"
          }
        ],
        "description": "Piano di assistenza domiciliare",
        "content": [
          {
            "attachment": {
              "contentType": "application/pdf",
              "data": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoK",
              "title": "Piano di assistenza domiciliare",
              "creation": "2026-11-26"
            }
          }
        ]
      }
    }
  ]
}