{
  "resourceType": "Bundle",
  "id": "8686dd99-ba15-4b70-9b19-dfb9d6f8ffe6",
  "meta": {
    "profile": [
      "http://hl7.eu/fhir/hdr/StructureDefinition/bundle-eu-hdr"
    ]
  },
  "identifier": {
    "assigner": {
      "display": "HL7 Europe"
    },
    "system": "urn:oid:2.16.840.1.113883.2.51.999",
    "value": "a7e89b0d-5bb4-443a-9e31-8592bedb597c"
  },
  "entry": [
    {
      "fullUrl": "urn:uuid:b84305ec-d731-4f55-8d5a-2f1b06939058",
      "resource": {
        "resourceType": "Composition",
        "id": "b84305ec-d731-4f55-8d5a-2f1b06939058",
        "meta": {
          "security": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code": "HTEST"
            },
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code": "TRAIN"
            }
          ],
          "tag": [
            {
              "system": "https://synderai.net/fhir/CodeSystem/tags",
              "code": "synthetic",
              "display": "SYNDERAI Synthetic data"
            }
          ],
          "profile": [
            "http://hl7.eu/fhir/hdr/StructureDefinition/composition-eu-hdr"
          ]
        },
        "identifier": {
          "assigner": {
            "display": "HL7 Europe"
          },
          "system": "urn:oid:2.16.840.1.113883.2.51.999",
          "value": "f0428188-ae67-4199-8159-5a4d5b166d69"
        },
        "type": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "34105-7",
              "display": "Hospital Discharge summary"
            }
          ],
          "text": "Hospital Discharge Report"
        },
        "author": [
          {
            "reference": "urn:uuid:dd5387c3-dc18-4aae-b4be-ae7cf85c83f6"
          }
        ],
        "text": {
          "status": "empty",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">intentionally left empty / not meaningful</div>"
        },
        "section": [
          {
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Substance dependence, treated and stabilised</div>"
            },
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "67781-5",
                  "display": "Summarization of encounter note"
                }
              ]
            },
            "title": "Synthesis"
          },
          {
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Dear colleague, I am writing to inform you regarding the discharge of your 75-year-old male patient, admitted on 11/01/2023 due to substance dependence. Upon admission, a comprehensive psychiatric and somatic assessment was performed, including structured addiction history, laboratory screening, and physical examination, confirming multiple substance dependence syndrome (ICD-10: F19.2). During the brief inpatient stay, the patient underwent medically supervised detoxification with pharmacological support to manage withdrawal symptoms safely. Vital signs were closely monitored throughout. Psychoeducational counseling was initiated, and the patient was motivated toward ongoing outpatient addiction treatment. At discharge on 13/01/2023, the patient was medically stable with no acute withdrawal complications. I strongly recommend referral to an outpatient addiction specialist and close follow-up of his general medical condition. Prescription details and further recommendations are enclosed. Please do not hesitate to contact me should you require further information.</div>"
            },
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "8648-8",
                  "display": "Hospital course note"
                }
              ]
            },
            "title": "Hospital course note"
          },
          {
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__hdr\"><tr><td>Mental and behavioural disorders due to multiple drug use – dependence syndrome</td><td><span class=\"nb\">13-Jan-2023</span></td><td>active</td></tr></table></div>"
            },
            "entry": [
              {
                "reference": "urn:uuid:cbcb4bd2-bf13-4a93-b92c-947327dd2868"
              }
            ],
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "11535-2",
                  "display": "Hospital discharge diagnosis note"
                }
              ]
            },
            "title": "Diagnosis at Discharge"
          },
          {
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__hdr\"><tr><td>Psychoeducational counseling</td><td><span class=\"nb\">13-Jan-2023</span></td><td>-</td></tr></table></div>"
            },
            "entry": [
              {
                "reference": "urn:uuid:0116dd03-1704-45c1-9ccd-0876627bd18a"
              },
              {
                "reference": "urn:uuid:a25c0946-2f66-4634-a0de-95af9321c265"
              },
              {
                "reference": "urn:uuid:c44cc09a-dce9-4d5a-97e0-69ca98c0d488"
              },
              {
                "reference": "urn:uuid:f38a12b0-f505-4005-838f-22a3ce90bf05"
              },
              {
                "reference": "urn:uuid:b1a16cf5-9b2c-4458-88ac-aaa8641fc53b"
              },
              {
                "reference": "urn:uuid:f1bebb0a-7064-404d-8ba0-1cf8b7f65ca8"
              }
            ],
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "10185-7",
                  "display": "Hospital discharge procedure note"
                }
              ]
            },
            "title": "Significant procedures"
          }
        ],
        "title": "Hospital Discharge Report",
        "status": "final",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        },
        "custodian": {
          "reference": "urn:uuid:ceaa3301-58c3-49b3-9f6a-043e0f7f825c"
        },
        "date": "2023-01-13T00:00:00Z",
        "confidentiality": "N"
      }
    },
    {
      "fullUrl": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
      "resource": {
        "resourceType": "Patient",
        "id": "f8a0e5b7-a450-471f-baa4-03feacd7df94",
        "meta": {
          "security": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code": "HTEST"
            },
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code": "TRAIN"
            }
          ],
          "tag": [
            {
              "system": "https://synderai.net/fhir/CodeSystem/tags",
              "code": "synthetic",
              "display": "SYNDERAI Synthetic data"
            }
          ],
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core"
          ]
        },
        "identifier": [
          {
            "type": {
              "coding": [
                {
                  "code": "JHN",
                  "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
                }
              ]
            },
            "system": "http://ec.europa.eu/identifier/eci",
            "value": "2966-560528-2"
          },
          {
            "type": {
              "coding": [
                {
                  "code": "MR",
                  "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
                }
              ]
            },
            "system": "http://local.setting.eu/identifier",
            "value": "0c23254c-16b4-d987-19c5-f7fe1236c828"
          }
        ],
        "name": [
          {
            "given": [
              "Trinidad"
            ],
            "family": "Ledesma",
            "text": "Trinidad Ledesma"
          }
        ],
        "address": [
          {
            "line": [
              "Calle de Ainara Méndez 2 Apt. 70 "
            ],
            "use": "home",
            "type": "physical",
            "postalCode": "44001",
            "city": "Teruel",
            "country": "Spain"
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "+34948 80 85 42"
          }
        ],
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "code": "ES",
                      "system": "urn:iso:std:iso:3166"
                    }
                  ]
                }
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality"
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Trinidad Ledesma</td><td>male</td><td>16-Apr-1950</td></tr></table></div>"
        },
        "gender": "male",
        "birthDate": "1950-04-16"
      }
    },
    {
      "fullUrl": "urn:uuid:92939573-aa82-46cb-bbf5-76bdd0112b7e",
      "resource": {
        "resourceType": "Encounter",
        "id": "92939573-aa82-46cb-bbf5-76bdd0112b7e",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/hdr/StructureDefinition/encounter-eu-hdr"
          ]
        },
        "participant": [
          {
            "type": [
              {
                "coding": [
                  {
                    "code": "PPRF",
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                    "display": "primary performer"
                  }
                ]
              }
            ],
            "period": {
              "end": "2023-01-13"
            },
            "individual": {
              "reference": "urn:uuid:04c4e5c2-bceb-4131-a941-1aedb4ebbc38"
            }
          }
        ],
        "period": {
          "start": "2023-01-13"
        },
        "reasonCode": [
          {
            "coding": [
              {
                "code": "6525002",
                "system": "http://snomed.info/sct",
                "display": "Substance dependence (disorder)"
              }
            ]
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Centro de Rehabilitación San Juan de Dios, Teruel, Spain</td><td>11-01-2023 - 13-01-2023</td><td><ul><li>Substance dependence (disorder)</li></ul></td></tr></table></div>"
        },
        "status": "completed",
        "class": {
          "code": "IMP",
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
        },
        "serviceProvider": {
          "reference": "urn:uuid:ceaa3301-58c3-49b3-9f6a-043e0f7f825c"
        },
        "subject": {
          "reference": "Patient/f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:dd5387c3-dc18-4aae-b4be-ae7cf85c83f6",
      "resource": {
        "resourceType": "PractitionerRole",
        "id": "dd5387c3-dc18-4aae-b4be-ae7cf85c83f6",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Hospital Role Id: dd5387c3-dc18-4aae-b4be-ae7cf85c83f6</div>"
        },
        "practitioner": {
          "reference": "urn:uuid:04c4e5c2-bceb-4131-a941-1aedb4ebbc38"
        },
        "organization": {
          "reference": "urn:uuid:ceaa3301-58c3-49b3-9f6a-043e0f7f825c"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:ceaa3301-58c3-49b3-9f6a-043e0f7f825c",
      "resource": {
        "resourceType": "Organization",
        "id": "ceaa3301-58c3-49b3-9f6a-043e0f7f825c",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core"
          ]
        },
        "address": [
          {
            "city": "Teruel",
            "postalCode": "44001",
            "country": "Spain"
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Hospital: Centro de Rehabilitación San Juan de Dios, 44001 Teruel, Spain</div>"
        },
        "name": "Centro de Rehabilitación San Juan de Dios"
      }
    },
    {
      "fullUrl": "urn:uuid:04c4e5c2-bceb-4131-a941-1aedb4ebbc38",
      "resource": {
        "resourceType": "Practitioner",
        "id": "04c4e5c2-bceb-4131-a941-1aedb4ebbc38",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core"
          ]
        },
        "identifier": [
          {
            "assigner": {
              "display": "HL7 Europe"
            },
            "system": "urn:oid:2.16.840.1.113883.2.51.999",
            "value": "99cb5aed-cb75-4369-bec6-0017f2b1e5e6"
          }
        ],
        "name": [
          {
            "given": [
              "Nélida"
            ],
            "family": "Grau"
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Practitioner in Hospital: Nélida Grau</div>"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:cbcb4bd2-bf13-4a93-b92c-947327dd2868",
      "resource": {
        "resourceType": "Condition",
        "id": "cbcb4bd2-bf13-4a93-b92c-947327dd2868",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/condition-eu-core"
          ]
        },
        "category": [
          {
            "coding": [
              {
                "code": "encounter-diagnosis",
                "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                "display": "Encounter Diagnosis"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "code": "F19.2",
              "system": "http://hl7.org/fhir/sid/icd-10",
              "display": "Mental and behavioural disorders due to multiple drug use – dependence syndrome"
            }
          ],
          "text": "Mental and behavioural disorders due to multiple drug use – dependence syndrome"
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Mental and behavioural disorders due to multiple drug use – dependence syndrome</td><td><span class=\"nb\">13-Jan-2023</span></td><td>active</td></tr></table></div>"
        },
        "onsetDateTime": "2023-01-13",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:0116dd03-1704-45c1-9ccd-0876627bd18a",
      "resource": {
        "resourceType": "Procedure",
        "id": "0116dd03-1704-45c1-9ccd-0876627bd18a",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/procedure-eu-core"
          ]
        },
        "code": {
          "coding": [
            {
              "code": "84100007",
              "system": "http://snomed.info/sct",
              "display": "History taking (procedure)"
            }
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Structured addiction and psychiatric history taking</td><td><span class=\"nb\">11-Jan-2023</span></td><td>-</td></tr></table></div>"
        },
        "status": "completed",
        "performedDateTime": "2023-01-11",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:a25c0946-2f66-4634-a0de-95af9321c265",
      "resource": {
        "resourceType": "Procedure",
        "id": "a25c0946-2f66-4634-a0de-95af9321c265",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/procedure-eu-core"
          ]
        },
        "code": {
          "coding": [
            {
              "code": "5880005",
              "system": "http://snomed.info/sct",
              "display": "Physical examination procedure (procedure)"
            }
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Physical examination</td><td><span class=\"nb\">11-Jan-2023</span></td><td>-</td></tr></table></div>"
        },
        "status": "completed",
        "performedDateTime": "2023-01-11",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:c44cc09a-dce9-4d5a-97e0-69ca98c0d488",
      "resource": {
        "resourceType": "Procedure",
        "id": "c44cc09a-dce9-4d5a-97e0-69ca98c0d488",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/procedure-eu-core"
          ]
        },
        "code": {
          "coding": [
            {
              "code": "396550006",
              "system": "http://snomed.info/sct",
              "display": "Blood test (procedure)"
            }
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Laboratory blood screening</td><td><span class=\"nb\">11-Jan-2023</span></td><td>-</td></tr></table></div>"
        },
        "status": "completed",
        "performedDateTime": "2023-01-11",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:f38a12b0-f505-4005-838f-22a3ce90bf05",
      "resource": {
        "resourceType": "Procedure",
        "id": "f38a12b0-f505-4005-838f-22a3ce90bf05",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/procedure-eu-core"
          ]
        },
        "code": {
          "coding": [
            {
              "code": "61746007",
              "system": "http://snomed.info/sct",
              "display": "Taking patient vital signs (procedure)"
            }
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Vital signs monitoring</td><td><span class=\"nb\">11-Jan-2023</span></td><td>-</td></tr></table></div>"
        },
        "status": "completed",
        "performedDateTime": "2023-01-11",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:b1a16cf5-9b2c-4458-88ac-aaa8641fc53b",
      "resource": {
        "resourceType": "Procedure",
        "id": "b1a16cf5-9b2c-4458-88ac-aaa8641fc53b",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/procedure-eu-core"
          ]
        },
        "code": {
          "coding": [
            {
              "code": "182832007",
              "system": "http://snomed.info/sct",
              "display": "Procedure related to management of drug administration (procedure)"
            }
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Pharmacological management of withdrawal symptoms</td><td><span class=\"nb\">12-Jan-2023</span></td><td>-</td></tr></table></div>"
        },
        "status": "completed",
        "performedDateTime": "2023-01-12",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:f1bebb0a-7064-404d-8ba0-1cf8b7f65ca8",
      "resource": {
        "resourceType": "Procedure",
        "id": "f1bebb0a-7064-404d-8ba0-1cf8b7f65ca8",
        "meta": {
          "profile": [
            "http://hl7.eu/fhir/base/StructureDefinition/procedure-eu-core"
          ]
        },
        "code": {
          "coding": [
            {
              "code": "409063005",
              "system": "http://snomed.info/sct",
              "display": "Counseling (procedure)"
            }
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hl7__ips\"><tr><td>Psychoeducational counseling</td><td><span class=\"nb\">13-Jan-2023</span></td><td>-</td></tr></table></div>"
        },
        "status": "completed",
        "performedDateTime": "2023-01-13",
        "subject": {
          "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94",
          "display": "Trinidad Ledesma"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:5edb36eb-8104-49a3-b4fa-13d55cedc4df",
      "resource": {
        "resourceType": "Device",
        "id": "5edb36eb-8104-49a3-b4fa-13d55cedc4df",
        "deviceName": [
          {
            "name": "SYNDERAI Synthetic Generator",
            "type": "manufacturer-name"
          }
        ],
        "version": [
          {
            "value": "5.0"
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">SYNDERAI Synthetic Generator v5.0</div>"
        },
        "status": "active",
        "distinctIdentifier": "synderai-generator-50",
        "manufacturer": "SYNDERAI Project"
      }
    },
    {
      "fullUrl": "urn:uuid:b2dde829-0fc8-4f2f-829c-d5710f33b06d",
      "resource": {
        "resourceType": "Provenance",
        "id": "b2dde829-0fc8-4f2f-829c-d5710f33b06d",
        "target": [
          {
            "reference": "urn:uuid:f8a0e5b7-a450-471f-baa4-03feacd7df94"
          },
          {
            "reference": "urn:uuid:dd5387c3-dc18-4aae-b4be-ae7cf85c83f6"
          },
          {
            "reference": "urn:uuid:04c4e5c2-bceb-4131-a941-1aedb4ebbc38"
          },
          {
            "reference": "urn:uuid:ceaa3301-58c3-49b3-9f6a-043e0f7f825c"
          }
        ],
        "activity": {
          "coding": [
            {
              "code": "CREATE",
              "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
              "display": "create"
            }
          ],
          "text": "Synthetic Example Data Generation"
        },
        "policy": [
          "https://synderai.net/synderai-synthetic-data-policy"
        ],
        "agent": [
          {
            "type": {
              "coding": [
                {
                  "code": "author",
                  "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                  "display": "Author"
                }
              ],
              "text": "author"
            },
            "who": {
              "reference": "urn:uuid:5edb36eb-8104-49a3-b4fa-13d55cedc4df"
            }
          }
        ],
        "reason": [
          {
            "coding": [
              {
                "code": "TRAIN",
                "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                "display": "training"
              }
            ],
            "text": "Interoperability Testing and Training (non-clinical use)"
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Provenance for SYNDERAI Synthetic Example Data Resource</div>"
        },
        "recorded": "2026-03-20T18:25:52Z"
      }
    }
  ],
  "type": "document",
  "timestamp": "2023-01-13T00:00:00Z"
}
