Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
2
2
tool_call
listlengths
1
1
is_valid
bool
1 class
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>` XML tags. You may call one or more functions to fulfill the user's request to add a diagnosis to a patient's record.\n\nHere are the availab...
[ { "arguments": { "description": "Cardiomyopathy in amyloidosis due to wild-type transthyretin (ATTRwt)", "icd10_code": "I43.1", "patient_id": "PMC4549186_01", "physician_id": "49", "status": "chronic" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>Patient ID: PMC7350605_01\nPhysician ID: 567\nCase report: Nineteen case reports with 25 patients were included. Their mean age was 4.6 years ...
[ { "arguments": { "description": "COVID-19 infection", "icd10_code": "U07.1", "patient_id": "PMC7350605_01", "physician_id": "567", "status": "active" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>Patient ID: PMC6214677_01\nPhysician ID: 4800\nCase report: A 51-year-old Bolivian male with a past medical history of long-standing rheumatoi...
[ { "arguments": { "description": "Hepatosplenic T-cell lymphoma", "icd10_code": "C84.5A", "patient_id": "PMC6214677_01", "physician_id": "4800", "status": "active" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>` XML tags. You may call one or more functions to fulfill the user's request to add a diagnosis to a patient's record.\n\nHere are the availab...
[ { "arguments": { "description": "Paralytic rabies", "icd10_code": "A82.1", "patient_id": "PMC3162835_01", "physician_id": "355", "status": "fatal" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>Patient ID: PMC4916313_01\nPhysician ID: 6796\nCase report: A 73-year-old woman attended at the emergency ward of Universidade de Pernambuco's...
[ { "arguments": { "description": "Necrotizing fasciitis", "icd10_code": "M72.6", "patient_id": "PMC4916313_01", "physician_id": "6796", "status": "resolved" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>Patient ID: PMC6118118_01\nPhysician ID: 6722\nCase report: A 50-year-old male presented with swelling over the left ankle for the past 2 year...
[ { "arguments": { "description": "Benign osteoblastoma of talus", "icd10_code": "D16.3", "patient_id": "PMC6118118_01", "physician_id": "6722", "status": "resolved" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>Patient ID: PMC6059655_01\nPhysician ID: 3494\nCase report: Our patient is a 53-year-old male who worked as a coal miner. In spring of 2017, h...
[ { "arguments": { "description": "Follicular lymphoma, grade I, stage IV", "icd10_code": "C82.0", "patient_id": "PMC6059655_01", "physician_id": "3494", "status": "chronic" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>` XML tags. You may call one or more functions to fulfill the user's request to add a diagnosis to a patient's record.\n\nHere are the availab...
[ { "arguments": { "description": "Prosthetic joint infection of left knee due to Granulicatella adiacens, resolved after antibiotic therapy and revision surgery", "icd10_code": "T84.53XS", "patient_id": "PMC5608171_01", "physician_id": "4478", "status": "resolved" }, "name":...
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>Patient ID: PMC7235701_01\nPhysician ID: 8856\nCase report: A 12-year-old boy was referred to the oral and maxillofacial surgery clinic with a...
[ { "arguments": { "description": "Fracture of alveolar process of mandible", "icd10_code": "S02.65", "patient_id": "PMC7235701_01", "physician_id": "8856", "status": "active" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>` XML tags. You may call one or more functions to fulfill the user's request to add a diagnosis to a patient's record.\n\nHere are the availab...
[ { "arguments": { "description": "Dentigerous cyst associated with supernumerary first premolar (wolf tooth)", "icd10_code": "K09.0", "patient_id": "PMC8516576_01", "physician_id": "5869", "status": "resolved" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>Patient ID: PMC3386273_01\nPhysician ID: 9590\nCase report: Case 1 is a 63 years old male patient, under follow up in our hospital, with a hig...
[ { "arguments": { "description": "Glioblastoma of right temporal lobe, grade IV", "icd10_code": "C71.1", "patient_id": "PMC3386273_01", "physician_id": "9590", "status": "active" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>` XML tags. You may call one or more functions to fulfill the user's request to add a diagnosis to a patient's record.\n\nHere are the availab...
[ { "arguments": { "description": "Other dietary vitamin B12 deficiency anemia with psychomotor regression", "icd10_code": "D51.3", "patient_id": "PMC8140678_01", "physician_id": "7850", "status": "active" }, "name": "set_diagnosis" } ]
true
[ { "content": "\nYou are an AI assistant designed to record patient diagnoses within a clinical database. You are provided with function signatures within `<tools></tools>` XML tags. You may call one or more functions to fulfill the user's request to add a diagnosis to a patient's record.\n\nHere are the availab...
[ { "arguments": { "description": "Hereditary Factor IX deficiency (Hemophilia B), mild", "icd10_code": "D67", "patient_id": "PMC9340359_01", "physician_id": "9432", "status": "chronic" }, "name": "set_diagnosis" } ]
true
End of preview. Expand in Data Studio

Set Diagnosis Tool Call (Upgraded)

Clinical case diagnosis dataset where an AI assistant must determine the correct diagnosis from a case report and call a set_diagnosis tool with the appropriate ICD-10 code.

Improvements over original (mkurman/set-diagnosis-tool-call)

  • Diagnosis leakage removed: 200/253 original rows had the disease name or diagnosis statement directly in the clinical case text. All leaked rows were rewritten using LLM-based de-identification to remove explicit mentions while preserving clinical evidence.
  • 15 unfixable rows dropped: Cases where the diagnosis could not be fully separated from the case text were removed entirely.
  • Zero direct leakage verified: All 238 rows pass regex-based leakage detection (disease name, "diagnosis of X", "biops confirmed X", "pathology revealed X", "final diagnosis: X", "diagnosed with X").

Dataset structure

  • train: 212 rows
  • test: 26 rows

Each row contains:

  • messages: List of {role, content} — system+user prompt with clinical case, and assistant response with reasoning
  • tool_call: The ground-truth diagnosis tool call with description, icd10_code, patient_id, physician_id, status
  • is_valid: Boolean quality flag

Intended use

Reinforcement learning for medical tool-use: the model must derive the diagnosis from clinical evidence alone (symptoms, labs, imaging, pathology morphology) without the answer being stated in the prompt.

Downloads last month
41