{
  "schema_version": "0.2.0",
  "delivery": {
    "package_id": "PKG-2025-0002",
    "package_version": 1,
    "package_created_at": "2025-10-01T10:15:00+02:00",
    "sending_organization": "Universitätsklinikum Erlangen",
    "sending_system": "ONKOSTAR",
    "receiving_organization": "Universitätsklinikum Würzburg",
    "delivery_context": "research",
    "jurisdiction": "DE-BY",
    "legal_basis_category": "research_consent",
    "permitted_use": ["research", "quality_assurance"],
    "consent": { "status": "present", "scope": "standortübergreifende Forschung" },
    "local_reconciliation_allowed": true
  },
  "patient": {
    "patient_id": "PAT-3e8b21",
    "id_kind": "pseudonym",
    "sex": "M"
  },
  "tumors": [
    {
      "tumor_id": "TU-P-001",
      "icd10": { "code": "C61", "version": "2023" },
      "icd_o_morphology": "8140/3",
      "diagnosis_date": "2023-05-12",
      "diagnosis_date_precision": "E"
    }
  ],
  "events": [
    { "event_id": "EVT-P-001", "type": "surgery", "date": "2023-05-08", "tumor_ref": "TU-P-001",
      "note": "Stanzbiopsie der Prostata",
      "obds": { "OP": { "Intention": "D" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-002", "type": "pathology_report", "date": "2023-05-12", "tumor_ref": "TU-P-001",
      "note": "Adenokarzinom, Gleason 3+3=6 (ISUP 1)",
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-003", "type": "diagnosis", "date": "2023-05-12", "tumor_ref": "TU-P-001", "key_event": true,
      "obds": { "Diagnose": { "cTNM": "cT1c cN0 cM0" } },
      "meta": { "provenance": "tumor_documentation", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-004", "type": "tumor_board", "date": "2023-06-01", "tumor_ref": "TU-P-001", "key_event": true,
      "note": "Empfehlung Active Surveillance",
      "obds": { "Tumorkonferenz": { "Therapieempfehlung": "AS" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-005", "type": "progress_report", "date": "2023-09-15", "tumor_ref": "TU-P-001",
      "note": "PSA-Kontrolle, stabil",
      "obds": { "Verlauf": { "Gesamtbeurteilung": "K" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-006", "type": "progress_report", "date": "2024-03-20", "tumor_ref": "TU-P-001",
      "note": "PSA-Anstieg",
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-007", "type": "surgery", "date": "2024-04-10", "tumor_ref": "TU-P-001",
      "note": "Re-Stanzbiopsie",
      "obds": { "OP": { "Intention": "D" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-008", "type": "pathology_report", "date": "2024-04-15", "tumor_ref": "TU-P-001", "key_event": true,
      "note": "Upgrading: Gleason 4+3=7 (ISUP 3)",
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-009", "type": "tumor_board", "date": "2024-04-24", "tumor_ref": "TU-P-001", "key_event": true,
      "note": "Empfehlung radikale Prostatektomie",
      "obds": { "Tumorkonferenz": { "Therapieempfehlung": "OP" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-010", "type": "surgery", "date": "2024-05-21", "tumor_ref": "TU-P-001",
      "note": "Radikale Prostatektomie",
      "obds": { "OP": { "Intention": "K", "OPS": "5-604" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-011", "type": "pathology_report", "date": "2024-05-27", "tumor_ref": "TU-P-001",
      "obds": { "Pathologie": { "TNM": "pT2c pN0", "Residualstatus": "R0" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } },
    { "event_id": "EVT-P-012", "type": "progress_report", "date": "2024-09-10", "tumor_ref": "TU-P-001",
      "note": "PSA < 0,01 ng/ml",
      "obds": { "Verlauf": { "Gesamtbeurteilung": "V" } },
      "meta": { "provenance": "primary_clinical", "currency": "current", "quality": "curated" } }
  ],
  "episodes": [
    {
      "episode_id": "EP-P-1",
      "type": "first_diagnosis",
      "tumor_ref": "TU-P-001",
      "start_event": "EVT-P-001",
      "end_event": "EVT-P-004",
      "events": ["EVT-P-001", "EVT-P-002", "EVT-P-003", "EVT-P-004"],
      "status": "completed",
      "meta": { "quality": "curated", "annotated_by_role": "tumor_documentation" }
    },
    {
      "episode_id": "EP-P-2",
      "type": "active_surveillance",
      "tumor_ref": "TU-P-001",
      "intent": "curative",
      "start_event": "EVT-P-004",
      "end_event": "EVT-P-009",
      "events": ["EVT-P-005", "EVT-P-006", "EVT-P-007", "EVT-P-008"],
      "status": "completed",
      "meta": { "quality": "curated", "derived_from": ["Tumorkonferenz-Empfehlung AS"], "annotated_by_role": "tumor_documentation" }
    },
    {
      "episode_id": "EP-P-3",
      "type": "surgical",
      "tumor_ref": "TU-P-001",
      "intent": "curative",
      "start_event": "EVT-P-010",
      "end_event": "EVT-P-011",
      "events": ["EVT-P-010", "EVT-P-011"],
      "status": "completed",
      "meta": { "quality": "curated" }
    },
    {
      "episode_id": "EP-P-4",
      "type": "follow_up",
      "tumor_ref": "TU-P-001",
      "events": ["EVT-P-012"],
      "status": "active",
      "meta": { "quality": "curated" }
    },
    {
      "episode_id": "EP-P-5",
      "type": "primary_case",
      "tumor_ref": "TU-P-001",
      "organization": "Universitätsklinikum Erlangen",
      "start_event": "EVT-P-001",
      "events": ["EVT-P-001", "EVT-P-004", "EVT-P-010"],
      "status": "active",
      "meta": { "quality": "curated", "annotated_by_role": "tumor_documentation" }
    }
  ],
  "relations": [
    { "relation_id": "REL-P-01", "type": "result_of", "from": "EVT-P-002", "to": "EVT-P-001",
      "meta": { "quality": "curated" } },
    { "relation_id": "REL-P-02", "type": "assesses", "from": "EVT-P-005", "to": "EP-P-2",
      "meta": { "quality": "curated" } },
    { "relation_id": "REL-P-03", "type": "result_of", "from": "EVT-P-008", "to": "EVT-P-007",
      "meta": { "quality": "curated" } },
    { "relation_id": "REL-P-04", "type": "triggers", "from": "EVT-P-008", "to": "EP-P-3",
      "note": "Histologisches Upgrading beendet die Überwachung und löst die operative Episode aus",
      "meta": { "quality": "curated" } },
    { "relation_id": "REL-P-05", "type": "implements", "from": "EVT-P-010", "to": "EVT-P-009",
      "meta": { "quality": "curated" } },
    { "relation_id": "REL-P-06", "type": "result_of", "from": "EVT-P-011", "to": "EVT-P-010",
      "meta": { "quality": "curated" } },
    { "relation_id": "REL-P-07", "type": "assesses", "from": "EVT-P-012", "to": "EP-P-3",
      "meta": { "quality": "curated" } }
  ],
  "journey_status": [
    {
      "tumor_ref": "TU-P-001",
      "active_episode": "EP-P-4",
      "last_assessment": { "event_ref": "EVT-P-012", "overall_assessment": "V" }
    }
  ]
}
