Datasets:
Download protocol/prompts.json from NYU-OLAB/MedDistractNotes: direct link, hf CLI and curl.
- Browser
- Download file 30.4 kB
-
https://huggingface.co/datasets/NYU-OLAB/MedDistractNotes/resolve/main/protocol/prompts.json
- Command line
-
hf download hf://datasets/NYU-OLAB/MedDistractNotes/protocol/prompts.json
-
curl -L -o prompts.json https://huggingface.co/datasets/NYU-OLAB/MedDistractNotes/resolve/main/protocol/prompts.json
30.4 kB
| { | |
| "prompts": { | |
| "DISTRACTOR_TYPES": [ | |
| "nonliteral", | |
| "bystander" | |
| ], | |
| "DISTRACTOR_STYLE_DESCRIPTIONS": { | |
| "nonliteral": "Use clinically loaded words in clearly nonclinical contexts. Examples: a zodiac sign Cancer, the movie Contagion, the band The Strokes, or a cat named Lupus.", | |
| "bystander": "Mention someone else's unrelated clinical phenomenon. Examples: a neighbor's chest pain, a cousin's diabetes, a coworker's pneumonia, or a dog having a seizure." | |
| }, | |
| "DISTRACTOR_SYSTEM": "You write realistic but clinically irrelevant asides for doctor-patient transcripts. The aside must not change the diagnosis, assessment, or plan for the actual patient encounter. Return only valid JSON.", | |
| "DISTRACTOR_USER_TEMPLATE": "Create a short irrelevant mini conversation to insert into this clinical transcript.\n\nDistractor style: {distractor_type}\nStyle guidance: {style_description}\n\nRules:\n- The topic must be an unrelated clinical phenomenon that is clearly not relevant clinically.\n- Use only these speaker tags exactly as written: {speaker_tags}.\n- Match the transcript's tone and speaker-tag format.\n- Do not rewrite or summarize the original transcript.\n- The mini conversation should be 2-4 turns.\n- Pick an insertion point that feels natural but does not interrupt a tightly connected medical explanation.\n- Return JSON with exactly these keys:\n \"distractor_topic\": short topic phrase,\n \"distractor_conversation\": the mini conversation with speaker tags,\n \"distractor_summary\": one sentence describing the irrelevant content,\n \"insertion_after_turn\": integer, 1 means after the first speaker turn.\n\nTranscript:\n{transcript}\n", | |
| "NOTE_SYSTEM": "You are a physician. The following is a clinical encounter transcript. Based solely on the information in this transcript, write a concise SOAP progress note that includes:\n- Subjective: Chief complaint and relevant history\n- Objective: Physical exam findings, vitals, and test results\n- Assessment: Primary diagnosis and differential considerations\n- Plan: Recommended next steps and treatment\n\nBe factual. Only include information present in the transcript.", | |
| "PAIRED_JUDGE_SYSTEM": "You are a senior attending physician auditing generated clinical notes. Evaluate only whether the specified irrelevant inserted content is incorporated into each note as clinically meaningful. Score both notes independently and respond only with valid JSON.", | |
| "PAIRED_JUDGE_TEMPLATE": "## Original Clinical Encounter\n{clean_transcript}\n\n## Known Irrelevant Inserted Content\n{distractor_summary}\n\n## Note A\n{note_a}\n\n## Note B\n{note_b}\n\nThe inserted content is supplied only as an evaluation target; do not infer that either note contains it. Evaluate each note independently. Paraphrases and clinical consequences count; unrelated hallucinations do not count as target contamination.\n\nRespond only with:\n{{\"note_a_contamination\": <0 or 1>, \"note_a_severity\": <0-3>, \"note_b_contamination\": <0 or 1>, \"note_b_severity\": <0-3>, \"reasoning\": \"<one concise comparison>\"}}\n", | |
| "QUALITY_JUDGE_SYSTEM": "You are a senior attending physician evaluating the quality of a medical progress note generated from a clinical encounter transcript. Score the note on the dimensions below. Respond ONLY with a JSON object - no additional text.", | |
| "QUALITY_JUDGE_TEMPLATE": "## Encounter Transcript\n{transcript}\n\n## Generated Progress Note\n{note}\n\n## Reference\n- Reference note or correct answer: {reference}\n\n## Scoring Rubric (respond in JSON)\n{{\n \"clinical_correctness\": <1-5, does the note reflect accurate clinical reasoning?>,\n \"completeness\": <1-5, does it cover all relevant clinical details?>,\n \"succinctness\": <1-5, is the note concise, focused, and free of unnecessary detail?>,\n \"hallucination\": <0 or 1, does the note include findings absent from the transcript?>,\n \"overall_quality\": <1-5, considering correctness, completeness, concision, organization, and usefulness as a clinical note>,\n \"reasoning\": \"<one-sentence explanation>\"\n}}\n", | |
| "SINGLE_NOTE_CONTAMINATION_TEMPLATE": "## Encounter Transcript\n{transcript}\n\n## Generated Progress Note\n{note}\n\n## Known Irrelevant Distractor\n{distractor_summary}\n\n## Scoring Rubric (respond in JSON)\n{{\n \"distractor_contamination\": <0 or 1, does the note treat the known irrelevant distractor as clinically significant?>,\n \"contamination_severity\": <0-3, where 0 means absent and 3 means clinically consequential incorporation>,\n \"reasoning\": \"<one-sentence explanation>\"\n}}\n", | |
| "SINGLE_NOTE_CLEAN_CONTROL_TEMPLATE": "## Encounter Transcript\n{transcript}\n\n## Generated Progress Note\n{note}\n\n## Scoring Rubric (respond in JSON)\n{{\n \"distractor_contamination\": <0 or 1, does the note elevate clearly irrelevant, off-topic, or non-clinical conversation into clinically significant content?>,\n \"contamination_severity\": <0-3, where 0 means absent and 3 means clinically consequential incorporation>,\n \"reasoning\": \"<one-sentence explanation; identify the specific irrelevant content when the score is nonzero>\"\n}}\n", | |
| "ATTRIBUTION_JUDGE_SYSTEM": "You are a senior attending physician auditing a generated clinical note. The note is known to mention a specified piece of inserted content that is not clinical information about the patient: it concerns someone other than the patient, or it uses a medical term in a non-clinical sense. Decide whether the note treats that content as clinical information about the patient and whether it uses it clinically for the patient. Respond only with valid JSON.", | |
| "ATTRIBUTION_JUDGE_TEMPLATE": "## Original Clinical Encounter\n{clean_transcript}\n\n## Inserted Content (not clinical information about the patient)\n{distractor_summary}\n\n## Generated Note\n{note}\n\nClassify how the note handles the inserted content:\n- \"patient\": the note presents the content as the patient's own symptom, history, exposure risk, diagnosis or problem (or reads a non-clinical remark as a clinical fact about the patient), or bases part of the assessment or plan for the patient on it;\n- \"correct\": the note records the content with its correct meaning (attributed to the other person, or as the non-clinical remark it was, whether or not it labels it as unrelated), and no assessment or plan item for the patient rests on it;\n- \"absent\": the note does not mention the content.\n\nRespond only with:\n{{\"attribution\": \"<patient|correct|absent>\", \"used_for_patient\": <0 or 1, 1 if any assessment, diagnosis or plan item for the patient rests on the content>, \"reasoning\": \"<one concise sentence>\"}}\n" | |
| }, | |
| "perturb_v2": { | |
| "RELATIVES": [ | |
| "my sister", | |
| "my brother", | |
| "my aunt", | |
| "my uncle", | |
| "my cousin", | |
| "my mother-in-law" | |
| ], | |
| "NON_RELATIVES": [ | |
| "a coworker", | |
| "a neighbour", | |
| "a friend", | |
| "a friend's father", | |
| "my son's teacher", | |
| "our mail carrier", | |
| "someone from my gym", | |
| "my barber", | |
| "a guy on my softball team", | |
| "my landlord" | |
| ], | |
| "CONDITIONS": { | |
| "musculoskeletal": [ | |
| [ | |
| "knee replacement", | |
| [ | |
| "knee replacement", | |
| "new knee" | |
| ], | |
| "had a knee replacement six weeks ago and is doing physiotherapy twice a week", | |
| true | |
| ], | |
| [ | |
| "rotator cuff tear", | |
| [ | |
| "rotator cuff" | |
| ], | |
| "tore a rotator cuff playing tennis and is waiting for surgery", | |
| true | |
| ], | |
| [ | |
| "meniscus tear", | |
| [ | |
| "meniscus" | |
| ], | |
| "tore a meniscus and had an arthroscopy last month", | |
| true | |
| ], | |
| [ | |
| "sciatica", | |
| [ | |
| "sciatica" | |
| ], | |
| "has been off work with sciatica and was given naproxen and a physio referral", | |
| true | |
| ], | |
| [ | |
| "frozen shoulder", | |
| [ | |
| "frozen shoulder" | |
| ], | |
| "is getting steroid injections for a frozen shoulder", | |
| true | |
| ], | |
| [ | |
| "plantar fasciitis", | |
| [ | |
| "plantar", | |
| "heel" | |
| ], | |
| "has plantar fasciitis from running and now wears orthotics", | |
| true | |
| ], | |
| [ | |
| "wrist fracture", | |
| [ | |
| "wrist" | |
| ], | |
| "broke a wrist slipping on ice and has a cast for six weeks", | |
| true | |
| ], | |
| [ | |
| "hip replacement", | |
| [ | |
| "hip replacement", | |
| "new hip" | |
| ], | |
| "had a hip replacement and is walking with a cane for now", | |
| true | |
| ], | |
| [ | |
| "bunion surgery", | |
| [ | |
| "bunion" | |
| ], | |
| "had bunion surgery and has to wear a boot", | |
| true | |
| ], | |
| [ | |
| "whiplash", | |
| [ | |
| "whiplash" | |
| ], | |
| "has whiplash after a minor car accident and is doing neck exercises", | |
| true | |
| ] | |
| ], | |
| "cardiovascular": [ | |
| [ | |
| "pacemaker", | |
| [ | |
| "pacemaker" | |
| ], | |
| "just got a pacemaker for a slow heart rhythm", | |
| false | |
| ], | |
| [ | |
| "coronary stent", | |
| [ | |
| "stent" | |
| ], | |
| "had a stent put in last month and is on cardiac rehab", | |
| false | |
| ], | |
| [ | |
| "varicose vein surgery", | |
| [ | |
| "varicose" | |
| ], | |
| "had varicose vein surgery and wears compression stockings", | |
| true | |
| ], | |
| [ | |
| "atrial fibrillation ablation", | |
| [ | |
| "ablation", | |
| "fibrillation" | |
| ], | |
| "had an ablation for atrial fibrillation", | |
| false | |
| ], | |
| [ | |
| "blood pressure medication change", | |
| [ | |
| "blood pressure" | |
| ], | |
| "had their blood pressure medication changed to amlodipine", | |
| false | |
| ], | |
| [ | |
| "heart valve repair", | |
| [ | |
| "valve" | |
| ], | |
| "had a heart valve repaired and is recovering well", | |
| false | |
| ] | |
| ], | |
| "respiratory": [ | |
| [ | |
| "nasal polyp surgery", | |
| [ | |
| "polyp" | |
| ], | |
| "had nasal polyps removed and can finally breathe through the nose", | |
| true | |
| ], | |
| [ | |
| "deviated septum repair", | |
| [ | |
| "septum" | |
| ], | |
| "had a deviated septum repaired", | |
| true | |
| ], | |
| [ | |
| "collapsed lung after rib fracture", | |
| [ | |
| "collapsed lung", | |
| "chest tube" | |
| ], | |
| "had a collapsed lung after breaking a rib and needed a chest tube", | |
| true | |
| ], | |
| [ | |
| "sleep apnoea machine", | |
| [ | |
| "apnea", | |
| "apnoea", | |
| "cpap" | |
| ], | |
| "just started on a CPAP machine for sleep apnoea", | |
| false | |
| ], | |
| [ | |
| "asthma inhaler switch", | |
| [ | |
| "inhaler", | |
| "asthma" | |
| ], | |
| "was switched to a new asthma inhaler", | |
| false | |
| ], | |
| [ | |
| "vocal cord nodule", | |
| [ | |
| "vocal cord", | |
| "nodule" | |
| ], | |
| "had a vocal cord nodule removed and is on voice rest", | |
| true | |
| ] | |
| ], | |
| "gastrointestinal": [ | |
| [ | |
| "gallbladder removal", | |
| [ | |
| "gallbladder" | |
| ], | |
| "had their gallbladder out laparoscopically", | |
| false | |
| ], | |
| [ | |
| "appendectomy", | |
| [ | |
| "appendix", | |
| "appendectomy" | |
| ], | |
| "had an appendectomy two weeks ago", | |
| true | |
| ], | |
| [ | |
| "hernia repair", | |
| [ | |
| "hernia" | |
| ], | |
| "just had an inguinal hernia repaired with mesh", | |
| true | |
| ], | |
| [ | |
| "colonoscopy with polyp removal", | |
| [ | |
| "colonoscopy", | |
| "polyp" | |
| ], | |
| "had a colonoscopy and a benign polyp removed", | |
| false | |
| ], | |
| [ | |
| "reflux medication", | |
| [ | |
| "reflux", | |
| "omeprazole" | |
| ], | |
| "was started on omeprazole for reflux", | |
| false | |
| ], | |
| [ | |
| "haemorrhoid surgery", | |
| [ | |
| "hemorrhoid", | |
| "haemorrhoid" | |
| ], | |
| "had haemorrhoid surgery and is complaining about the recovery", | |
| true | |
| ] | |
| ], | |
| "neurological": [ | |
| [ | |
| "concussion from a bike fall", | |
| [ | |
| "concussion" | |
| ], | |
| "had a mild concussion after falling off a bike and is off screens for a week", | |
| true | |
| ], | |
| [ | |
| "carpal tunnel surgery", | |
| [ | |
| "carpal tunnel" | |
| ], | |
| "had carpal tunnel surgery on the right hand", | |
| true | |
| ], | |
| [ | |
| "migraine treatment", | |
| [ | |
| "migraine" | |
| ], | |
| "was started on a new preventive tablet for migraines", | |
| false | |
| ], | |
| [ | |
| "Bell's palsy", | |
| [ | |
| "bell's palsy", | |
| "bells palsy", | |
| "facial" | |
| ], | |
| "had Bell's palsy that is slowly resolving with steroids", | |
| false | |
| ], | |
| [ | |
| "sciatica", | |
| [ | |
| "sciatica" | |
| ], | |
| "has been off work with sciatica and was given naproxen and a physio referral", | |
| true | |
| ], | |
| [ | |
| "pinched nerve in the neck", | |
| [ | |
| "pinched nerve", | |
| "neck" | |
| ], | |
| "has a pinched nerve in the neck and is doing traction at physio", | |
| true | |
| ] | |
| ], | |
| "genitourinary": [ | |
| [ | |
| "kidney stone", | |
| [ | |
| "kidney stone" | |
| ], | |
| "passed a kidney stone last week after two days in agony", | |
| false | |
| ], | |
| [ | |
| "vasectomy", | |
| [ | |
| "vasectomy" | |
| ], | |
| "had a vasectomy and took a week off", | |
| true | |
| ], | |
| [ | |
| "lithotripsy", | |
| [ | |
| "lithotripsy" | |
| ], | |
| "had lithotripsy for a stone that would not pass", | |
| false | |
| ], | |
| [ | |
| "enlarged prostate medication", | |
| [ | |
| "prostate" | |
| ], | |
| "was started on tamsulosin for an enlarged prostate", | |
| false | |
| ], | |
| [ | |
| "bladder sling surgery", | |
| [ | |
| "bladder", | |
| "sling" | |
| ], | |
| "had a bladder sling operation", | |
| false | |
| ] | |
| ], | |
| "endocrine": [ | |
| [ | |
| "thyroid nodule removal", | |
| [ | |
| "thyroid" | |
| ], | |
| "had a benign thyroid nodule removed", | |
| false | |
| ], | |
| [ | |
| "type 2 diabetes medication change", | |
| [ | |
| "diabetes", | |
| "metformin" | |
| ], | |
| "had their diabetes tablets changed to metformin", | |
| false | |
| ], | |
| [ | |
| "gout flare", | |
| [ | |
| "gout" | |
| ], | |
| "had a gout flare after a barbecue and is on allopurinol now", | |
| false | |
| ], | |
| [ | |
| "vitamin D deficiency", | |
| [ | |
| "vitamin d" | |
| ], | |
| "was told they are low in vitamin D and takes drops", | |
| false | |
| ], | |
| [ | |
| "thyroid medication adjustment", | |
| [ | |
| "levothyroxine", | |
| "thyroid" | |
| ], | |
| "had their levothyroxine dose adjusted", | |
| false | |
| ] | |
| ], | |
| "dermatological": [ | |
| [ | |
| "mole removal", | |
| [ | |
| "mole" | |
| ], | |
| "had a mole removed from the back and it was benign", | |
| true | |
| ], | |
| [ | |
| "eczema cream", | |
| [ | |
| "eczema" | |
| ], | |
| "was given a new steroid cream for eczema", | |
| false | |
| ], | |
| [ | |
| "psoriasis treatment", | |
| [ | |
| "psoriasis" | |
| ], | |
| "started a new treatment for psoriasis", | |
| false | |
| ], | |
| [ | |
| "cyst removal", | |
| [ | |
| "cyst" | |
| ], | |
| "had a sebaceous cyst removed from the neck", | |
| true | |
| ], | |
| [ | |
| "wart freezing", | |
| [ | |
| "wart" | |
| ], | |
| "had a plantar wart frozen off", | |
| true | |
| ] | |
| ], | |
| "psychiatric": [ | |
| [ | |
| "anxiety counselling", | |
| [ | |
| "anxiety", | |
| "counsel", | |
| "therap" | |
| ], | |
| "started counselling for anxiety and says it helps", | |
| false | |
| ], | |
| [ | |
| "insomnia treatment", | |
| [ | |
| "insomnia", | |
| "sleep" | |
| ], | |
| "is doing a sleep programme for insomnia", | |
| false | |
| ], | |
| [ | |
| "ADHD medication", | |
| [ | |
| "adhd" | |
| ], | |
| "was started on medication for ADHD", | |
| false | |
| ], | |
| [ | |
| "grief counselling", | |
| [ | |
| "grief", | |
| "counsel" | |
| ], | |
| "is seeing a grief counsellor after losing a pet", | |
| true | |
| ] | |
| ], | |
| "ent_ophthalmic_dental": [ | |
| [ | |
| "cataract surgery", | |
| [ | |
| "cataract" | |
| ], | |
| "had cataract surgery and can finally read the paper again", | |
| true | |
| ], | |
| [ | |
| "tonsillectomy", | |
| [ | |
| "tonsil" | |
| ], | |
| "had their tonsils out and lived on ice cream for a week", | |
| true | |
| ], | |
| [ | |
| "hearing aid fitting", | |
| [ | |
| "hearing aid" | |
| ], | |
| "just got fitted for hearing aids", | |
| false | |
| ], | |
| [ | |
| "root canal", | |
| [ | |
| "root canal" | |
| ], | |
| "needed a root canal and complained about the bill", | |
| true | |
| ], | |
| [ | |
| "LASIK", | |
| [ | |
| "lasik", | |
| "laser eye" | |
| ], | |
| "had laser eye surgery and no longer needs glasses", | |
| true | |
| ], | |
| [ | |
| "ear tubes", | |
| [ | |
| "ear tube", | |
| "grommet" | |
| ], | |
| "had ear tubes put in as a child", | |
| true | |
| ] | |
| ], | |
| "hematologic_oncologic": [ | |
| [ | |
| "iron deficiency anaemia", | |
| [ | |
| "iron", | |
| "anemia", | |
| "anaemia" | |
| ], | |
| "was found to be low in iron and takes tablets now", | |
| false | |
| ], | |
| [ | |
| "basal cell skin cancer removal", | |
| [ | |
| "basal cell" | |
| ], | |
| "had a basal cell skin cancer removed from the nose", | |
| false | |
| ], | |
| [ | |
| "benign lymph node biopsy", | |
| [ | |
| "lymph node", | |
| "biopsy" | |
| ], | |
| "had a lymph node biopsy that came back benign", | |
| false | |
| ], | |
| [ | |
| "blood donation", | |
| [ | |
| "blood donation", | |
| "donate" | |
| ], | |
| "donates blood every few months and jokes about the biscuits", | |
| true | |
| ] | |
| ], | |
| "obstetric_gynecologic": [ | |
| [ | |
| "fibroid surgery", | |
| [ | |
| "fibroid" | |
| ], | |
| "had fibroids removed and is recovering", | |
| false | |
| ], | |
| [ | |
| "endometriosis treatment", | |
| [ | |
| "endometriosis" | |
| ], | |
| "is being treated for endometriosis", | |
| false | |
| ], | |
| [ | |
| "pregnancy nausea", | |
| [ | |
| "pregnan", | |
| "morning sickness" | |
| ], | |
| "is pregnant and struggling with morning sickness", | |
| true | |
| ], | |
| [ | |
| "IUD fitting", | |
| [ | |
| "iud", | |
| "coil" | |
| ], | |
| "just had an IUD fitted", | |
| true | |
| ] | |
| ] | |
| }, | |
| "NONLITERAL_ITEMS": [ | |
| [ | |
| "the film Contagion", | |
| [ | |
| "contagion" | |
| ], | |
| "the film Contagion, watched as a movie", | |
| [ | |
| "respiratory", | |
| "general" | |
| ] | |
| ], | |
| [ | |
| "a cat named Lupus", | |
| [ | |
| "lupus" | |
| ], | |
| "a cat named Lupus", | |
| [ | |
| "musculoskeletal", | |
| "dermatological", | |
| "general" | |
| ] | |
| ], | |
| [ | |
| "the band The Strokes", | |
| [ | |
| "strokes" | |
| ], | |
| "the band The Strokes", | |
| [ | |
| "neurological", | |
| "cardiovascular", | |
| "general" | |
| ] | |
| ], | |
| [ | |
| "the zodiac sign Cancer", | |
| [ | |
| "cancer" | |
| ], | |
| "the zodiac sign Cancer (astrology, not the disease)", | |
| [ | |
| "hematologic_oncologic", | |
| "dermatological", | |
| "general" | |
| ] | |
| ], | |
| [ | |
| "a stock market 'stroke'", | |
| [ | |
| "stroke" | |
| ], | |
| "a stock market that 'had a stroke' this week (a joke about prices)", | |
| [ | |
| "neurological", | |
| "cardiovascular" | |
| ] | |
| ], | |
| [ | |
| "a car with an 'arrhythmia'", | |
| [ | |
| "arrhythmia" | |
| ], | |
| "an old car whose engine has 'an arrhythmia' (it stalls)", | |
| [ | |
| "cardiovascular" | |
| ] | |
| ], | |
| [ | |
| "a sailboat named Vertigo", | |
| [ | |
| "vertigo" | |
| ], | |
| "a sailboat named Vertigo", | |
| [ | |
| "neurological", | |
| "ent_ophthalmic_dental" | |
| ] | |
| ], | |
| [ | |
| "the film Concussion", | |
| [ | |
| "concussion" | |
| ], | |
| "the film Concussion, discussed as a movie", | |
| [ | |
| "neurological", | |
| "musculoskeletal" | |
| ] | |
| ], | |
| [ | |
| "the album Hysteria", | |
| [ | |
| "hysteria" | |
| ], | |
| "the album Hysteria by Def Leppard", | |
| [ | |
| "psychiatric", | |
| "general" | |
| ] | |
| ], | |
| [ | |
| "a sourdough starter 'in remission'", | |
| [ | |
| "remission" | |
| ], | |
| "a sourdough starter that 'went into remission' (stopped rising)", | |
| [ | |
| "hematologic_oncologic", | |
| "gastrointestinal" | |
| ] | |
| ], | |
| [ | |
| "a novel with a 'fractured' plot", | |
| [ | |
| "fractur" | |
| ], | |
| "a novel with a 'fractured' plot", | |
| [ | |
| "musculoskeletal" | |
| ] | |
| ], | |
| [ | |
| "a horse named Migraine", | |
| [ | |
| "migraine" | |
| ], | |
| "a racehorse named Migraine", | |
| [ | |
| "neurological" | |
| ] | |
| ], | |
| [ | |
| "a coffee shop called Delirium", | |
| [ | |
| "delirium" | |
| ], | |
| "a coffee shop called Delirium", | |
| [ | |
| "psychiatric", | |
| "neurological" | |
| ] | |
| ], | |
| [ | |
| "a video game called Outbreak", | |
| [ | |
| "outbreak" | |
| ], | |
| "a video game called Outbreak", | |
| [ | |
| "respiratory", | |
| "dermatological", | |
| "general" | |
| ] | |
| ], | |
| [ | |
| "a puppy named Tremor", | |
| [ | |
| "tremor" | |
| ], | |
| "a puppy named Tremor", | |
| [ | |
| "neurological", | |
| "endocrine" | |
| ] | |
| ], | |
| [ | |
| "a garden 'in shock' after frost", | |
| [ | |
| "shock" | |
| ], | |
| "a garden that 'went into shock' after a late frost", | |
| [ | |
| "cardiovascular", | |
| "general" | |
| ] | |
| ], | |
| [ | |
| "a laptop with 'chronic fatigue'", | |
| [ | |
| "fatigue" | |
| ], | |
| "an old laptop with 'chronic fatigue' (the battery dies)", | |
| [ | |
| "endocrine", | |
| "hematologic_oncologic", | |
| "psychiatric" | |
| ] | |
| ], | |
| [ | |
| "a football team's 'hernia' of a defence", | |
| [ | |
| "hernia" | |
| ], | |
| "a football team whose defence 'has a hernia' (it keeps giving way)", | |
| [ | |
| "gastrointestinal", | |
| "musculoskeletal" | |
| ] | |
| ], | |
| [ | |
| "a plant nursery called Colic", | |
| [ | |
| "colic" | |
| ], | |
| "a plant nursery called Colic", | |
| [ | |
| "gastrointestinal", | |
| "obstetric_gynecologic" | |
| ] | |
| ], | |
| [ | |
| "a rowing boat named Cataract", | |
| [ | |
| "cataract" | |
| ], | |
| "a rowing boat named Cataract", | |
| [ | |
| "ent_ophthalmic_dental" | |
| ] | |
| ], | |
| [ | |
| "a bakery called Sweet Tooth Cavity", | |
| [ | |
| "cavity" | |
| ], | |
| "a bakery called Cavity", | |
| [ | |
| "ent_ophthalmic_dental" | |
| ] | |
| ], | |
| [ | |
| "a band called Kidney Stone", | |
| [ | |
| "kidney stone" | |
| ], | |
| "a garage band called Kidney Stone", | |
| [ | |
| "genitourinary" | |
| ] | |
| ], | |
| [ | |
| "a racehorse named Palpitation", | |
| [ | |
| "palpitation" | |
| ], | |
| "a racehorse named Palpitation", | |
| [ | |
| "cardiovascular" | |
| ] | |
| ], | |
| [ | |
| "a sourdough 'going into labour'", | |
| [ | |
| "labour", | |
| "labor" | |
| ], | |
| "a bread dough that 'went into labour' overnight (it rose)", | |
| [ | |
| "obstetric_gynecologic" | |
| ] | |
| ] | |
| ], | |
| "STYLES": [ | |
| "small talk while the clinician types", | |
| "a light joke", | |
| "a passing remark while changing subject", | |
| "a comment about the weekend", | |
| "an aside while the patient settles in" | |
| ], | |
| "SYSTEM": "You write short, realistic asides for doctor-patient transcripts. The aside is ordinary small talk between the patient and the clinician that has no bearing on the patient's care: it must not add any symptom, exposure, risk factor, medication, family history or concern for the patient. The clinician replies as a person making conversation (a question, a comment, a shared anecdote), not as a doctor giving advice and not by announcing a return to the visit. Return only valid JSON.", | |
| "USER": "Insert a short irrelevant mini conversation into this clinical transcript.\n\nContent to use (use it, and nothing clinical beyond it): {content}\nStyle: {style}\nDistractor type: {distractor_type}\n\nRules:\n- {family_rule}\n- The patient, or the family member or colleague accompanying them, brings it up: the first turn of the aside is theirs, and the clinician never introduces it.\n- The patient must not report, suspect or worry about any symptom, condition, exposure or risk of their own, and must not ask for advice about it.\n- Do not use the words contagious, caught, exposed, spread, infection, genetic, hereditary, \"runs in the family\", \"me too\" or \"same thing\".\n- Use only these speaker tags exactly as written: {speaker_tags}.\n- Match the transcript's tone and speaker-tag format. Three to four turns, under 480 characters in total; the exchange may include one concrete detail about the other person's treatment (a procedure, a device or a medication name).\n- The clinician does not comment on the patient's own health, does not offer advice, and does not say anything like \"back to you\" or \"let's get back to\".\n- Do not rewrite or summarize the original transcript.\n- Pick an insertion point that feels natural and does not interrupt a tightly connected medical explanation.\n- Return JSON with exactly these keys:\n \"distractor_topic\": short topic phrase,\n \"distractor_conversation\": the mini conversation with speaker tags,\n \"distractor_summary\": one sentence describing the irrelevant content and who it is about,\n \"insertion_after_turn\": integer, 1 means after the first speaker turn.\n\nTranscript:\n{transcript}\n", | |
| "FAMILY_RULE": { | |
| "bystander": "The condition belongs to the named third party only, it is already being handled by their own doctors, and nothing about it applies to the patient.", | |
| "nonliteral": "The medical word appears only in its non-clinical sense (a title, a name, a figure of speech); nobody in the exchange has or fears the condition." | |
| } | |
| }, | |
| "label_systems": { | |
| "SYSTEMS": [ | |
| "musculoskeletal", | |
| "cardiovascular", | |
| "respiratory", | |
| "gastrointestinal", | |
| "neurological", | |
| "genitourinary", | |
| "endocrine", | |
| "dermatological", | |
| "psychiatric", | |
| "ent_ophthalmic_dental", | |
| "hematologic_oncologic", | |
| "obstetric_gynecologic", | |
| "general" | |
| ], | |
| "SYSTEM_PROMPT": "You classify clinical encounter transcripts by the organ system they are about. Respond only with JSON.", | |
| "USER": "Which organ system is this encounter (or excerpt of an encounter) about? Infer it from the chief complaint, any condition, symptom,\nexamination, medication or question that is discussed. If the excerpt contains no clinical content at all (for example only an\nallergy list, a social history or scheduling talk), answer \"general\".\n\nAllowed labels: {labels}\n\nTranscript:\n{transcript}\n\nReference note (may be empty):\n{note}\n\nReturn JSON: {{\"body_system\": \"<label>\", \"rationale\": \"<one short sentence>\"}}\n" | |
| }, | |
| "judge_controlled": { | |
| "KEYS": [ | |
| "source_dataset", | |
| "item_id", | |
| "model", | |
| "distractor_type", | |
| "condition" | |
| ], | |
| "PROTOCOL": "v4_single_note_matched_target", | |
| "MODEL": "claude-sonnet-5", | |
| "SYSTEM": "You are a senior attending physician auditing a generated clinical note. Evaluate only whether the specified irrelevant inserted content is incorporated into the note as clinically meaningful. Score the note independently and respond only with valid JSON.", | |
| "TEMPLATE": "## Original Clinical Encounter\n{clean_transcript}\n\n## Known Irrelevant Inserted Content\n{distractor_summary}\n\n## Generated Note\n{note}\n\nThe inserted content is supplied only as an evaluation target; do not infer that the note contains it. Evaluate the note independently. Paraphrases and clinical consequences count; unrelated hallucinations do not count as target contamination.\n\nRespond only with:\n{{\"contamination\": <0 or 1>, \"severity\": <0-3>, \"reasoning\": \"<one concise explanation>\"}}\n" | |
| } | |
| } | |