Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 5 new columns ({'language_version', 'model_id', 'generated_note', 'elapsed_seconds', 'prompt_condition'}) and 2 missing columns ({'description', 'dialogue_versions'}).

This happened while the json dataset builder was generating data using

hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication/raw_results.jsonl (at revision 5952d61954626f1f33e0efeed9091e3af7c15866), ['hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/consultation_dialogues.json', 'hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/raw_results.jsonl'], ['hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/consultation_dialogues.json', 'hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/raw_results.jsonl']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 784, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 795, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              scenario_id: string
              clinical_domain: string
              language_version: string
              prompt_condition: string
              model_id: string
              generated_note: string
              elapsed_seconds: double
              ground_truth_facts: list<item: extension<arrow.json>>
                child 0, item: extension<arrow.json>
              -- schema metadata --
              huggingface: '{"info": {"features": {"scenario_id": {"dtype": "string", "' + 433
              to
              {'scenario_id': Value('string'), 'clinical_domain': Value('string'), 'description': Value('string'), 'dialogue_versions': {'code_mixed_urdu_punjabi': List({'speaker': Value('string'), 'text': Value('string')}), 'standard_english': List({'speaker': Value('string'), 'text': Value('string')})}, 'ground_truth_facts': List(Json(decode=True))}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 5 new columns ({'language_version', 'model_id', 'generated_note', 'elapsed_seconds', 'prompt_condition'}) and 2 missing columns ({'description', 'dialogue_versions'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication/raw_results.jsonl (at revision 5952d61954626f1f33e0efeed9091e3af7c15866), ['hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/consultation_dialogues.json', 'hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/raw_results.jsonl'], ['hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/consultation_dialogues.json', 'hf://datasets/OrangeOfficial/Ahsan_FatimaFellowshipApplication@5952d61954626f1f33e0efeed9091e3af7c15866/raw_results.jsonl']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

scenario_id
string
clinical_domain
string
description
string
dialogue_versions
dict
ground_truth_facts
list
scen_01_gerd_heartburn
Gastroenterology / Acid Peptic Disease
Patient presents with persistent epigastric burning and retrosternal pulling sensation worsening in mornings. Self-medicated with OTC antacid without relief.
{ "code_mixed_urdu_punjabi": [ { "speaker": "Patient", "text": "Doctor sahab, taqreeban do hafton se na pait aur seene mein shaded jalan rehti hai. Subah uthte hi ulti jaisi lagti hai." }, { "speaker": "Doctor", "text": "Acha, jalan khana khane ke baad barhti hai ya khali pet zyada...
[ "{\"fact_id\":\"scen01_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Epigastric burning and retrosternal pulling sensation\\/tightness for approximately 2 weeks, accompanied by morning nausea\\/vomit sensation.\",\"colloquial_cue\":\"do hafton se pait aur seene mein shaded ...
scen_02_diabetic_neuropathy
Endocrinology / Diabetic Neuropathy
Known diabetic patient presents with bilateral burning soles and tingling sensations in feet, especially at night. Elevated fasting blood glucose reported.
{ "code_mixed_urdu_punjabi": [ { "speaker": "Patient", "text": "Doctor sahab, sugar ki wajah se pichle aik maah se dono talway jalte rehte hain. Raat ko jab bistar pe jaoon to ajeeb sunn hone da ehsaas aur sui chubhne jaisa dard hota hai." }, { "speaker": "Doctor", "text": "Acha, d...
[ "{\"fact_id\":\"scen02_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Bilateral burning soles, numbness, and tingling\\/pinprick sensations in feet for 1 month, nocturnal exacerbation causing insomnia.\",\"colloquial_cue\":\"dono talway jalte rehte hain, sunn hone da ehsaas ...
scen_03_hypertension_dyslipidemia
Cardiology / Preventive Health
Patient presents with persistent morning occipital heaviness and palpitations. Clinic blood pressure elevated, lipid panel shows high cholesterol.
{ "code_mixed_urdu_punjabi": [ { "speaker": "Patient", "text": "Doctor sahab, pichle das barah din se sar ke pichle hissay mein shaded bhari pan rehta hai, aur achanak dil dharakne lagta hai, ajeeb ghabrahat hundi ae." }, { "speaker": "Doctor", "text": "Chakkar bhi aate hain? Aur y...
[ "{\"fact_id\":\"scen03_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Occipital head heaviness for 10-12 days, episodic palpitations, and rest-onset anxiety\\/ghabrahat.\",\"colloquial_cue\":\"sar ke pichle hissay mein shaded bhari pan, dil dharakne lagta hai, ghabrahat hund...
scen_04_gastroenteritis_amoebiasis
Gastroenterology / Infectious Disease
Patient presents with painful abdominal cramping (maror) and loose mucus-containing stools for 3 days after street food. Self-medicated with 7Up and lemon without relief.
{ "code_mixed_urdu_punjabi": [ { "speaker": "Patient", "text": "Doctor sahab, teen din se pait mein shaded maror uth rahe hain, aur loose motions band nahi ho rahe. Thora sa kuch khao to foran washroom bhagna parta hai." }, { "speaker": "Doctor", "text": "Dast mein khoon ya aao (mu...
[ "{\"fact_id\":\"scen04_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe abdominal cramping (maror) and loose mucus-containing stools for 3 days, with postprandial urgency; denies vomiting.\",\"colloquial_cue\":\"teen din se pait mein shaded maror, loose motions, aao aa ...
scen_05_urinary_tract_infection
Urology / Infectious Disease
Patient presents with painful, burning urination and lower abdominal discomfort for 4 days. Measured low-grade fever previous night; tried cranberry juice without relief.
{ "code_mixed_urdu_punjabi": [ { "speaker": "Patient", "text": "Doctor sahab, char din se peshab karte waqt shadeed jalan aur dard hota hai. Har aadhe ghante baad peshab da ehsaas honda ae par aata thora sa hai." }, { "speaker": "Doctor", "text": "Bukhar ya kamar mein peeche dard t...
[ "{\"fact_id\":\"scen05_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe dysuria \\/ burning on urination, urinary frequency, and lower abdominal discomfort for 4 days; denies flank pain.\",\"colloquial_cue\":\"char din se peshab karte waqt shadeed jalan aur dard, aadhe ...
scen_06_acute_watery_diarrhea
Gastroenterology / Acute Care
Patient presents with acute watery diarrhea (5-6 episodes in 24 hours) after wedding food. Hydrated at home with ORS; needs symptomatic antidiarrheal control.
{ "code_mixed_urdu_punjabi": [ { "speaker": "Patient", "text": "Doctor sahab, kal raat shaadi ka khana khaya tha, us ke baad se subah se paanch chhay baar patlay dast aa chukay hain. Bilkul paani jaisa dast nikalta hai." }, { "speaker": "Doctor", "text": "Pait mein shadeed dard ya ...
[ "{\"fact_id\":\"scen06_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute watery diarrhea (5-6 episodes in 24 hours) following wedding food, single morning vomiting episode, abdominal rumbling, and weakness.\",\"colloquial_cue\":\"subah se paanch chhay baar patlay dast, bi...
scen_07_positional_vertigo_nausea
Neurology / ENT / Acute Care
Patient presents with sudden-onset spinning sensation (chakkar) and associated nausea, exacerbated by head movements. Afebrile, normotensive.
{ "code_mixed_urdu_punjabi": [ { "speaker": "Patient", "text": "Doctor sahab, kal subah jab bistar se utha to achanak pura kamra ghumne laga. Shadeed chakkar aande ne te sar ghumda ae, aur sath mein jee kacha hota hai." }, { "speaker": "Doctor", "text": "Chakkar garden hilane se ba...
[ "{\"fact_id\":\"scen07_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute positional vertigo \\/ spinning sensation worsened by head motion, accompanied by nausea and 2 episodes of vomiting; denies auditory changes.\",\"colloquial_cue\":\"pura kamra ghumne laga, shadeed ch...
scen_01_gerd_heartburn
Gastroenterology / Acid Peptic Disease
null
null
[ "{\"fact_id\":\"scen01_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Epigastric burning and retrosternal pulling sensation\\/tightness for approximately 2 weeks, accompanied by morning nausea\\/vomit sensation.\",\"colloquial_cue\":\"do hafton se pait aur seene mein shaded ...
scen_01_gerd_heartburn
Gastroenterology / Acid Peptic Disease
null
null
[ "{\"fact_id\":\"scen01_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Epigastric burning and retrosternal pulling sensation\\/tightness for approximately 2 weeks, accompanied by morning nausea\\/vomit sensation.\",\"colloquial_cue\":\"do hafton se pait aur seene mein shaded ...
scen_01_gerd_heartburn
Gastroenterology / Acid Peptic Disease
null
null
[ "{\"fact_id\":\"scen01_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Epigastric burning and retrosternal pulling sensation\\/tightness for approximately 2 weeks, accompanied by morning nausea\\/vomit sensation.\",\"colloquial_cue\":\"do hafton se pait aur seene mein shaded ...
scen_01_gerd_heartburn
Gastroenterology / Acid Peptic Disease
null
null
[ "{\"fact_id\":\"scen01_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Epigastric burning and retrosternal pulling sensation\\/tightness for approximately 2 weeks, accompanied by morning nausea\\/vomit sensation.\",\"colloquial_cue\":\"do hafton se pait aur seene mein shaded ...
scen_01_gerd_heartburn
Gastroenterology / Acid Peptic Disease
null
null
[ "{\"fact_id\":\"scen01_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Epigastric burning and retrosternal pulling sensation\\/tightness for approximately 2 weeks, accompanied by morning nausea\\/vomit sensation.\",\"colloquial_cue\":\"do hafton se pait aur seene mein shaded ...
scen_01_gerd_heartburn
Gastroenterology / Acid Peptic Disease
null
null
[ "{\"fact_id\":\"scen01_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Epigastric burning and retrosternal pulling sensation\\/tightness for approximately 2 weeks, accompanied by morning nausea\\/vomit sensation.\",\"colloquial_cue\":\"do hafton se pait aur seene mein shaded ...
scen_02_diabetic_neuropathy
Endocrinology / Diabetic Neuropathy
null
null
[ "{\"fact_id\":\"scen02_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Bilateral burning soles, numbness, and tingling\\/pinprick sensations in feet for 1 month, nocturnal exacerbation causing insomnia.\",\"colloquial_cue\":\"dono talway jalte rehte hain, sunn hone da ehsaas ...
scen_02_diabetic_neuropathy
Endocrinology / Diabetic Neuropathy
null
null
[ "{\"fact_id\":\"scen02_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Bilateral burning soles, numbness, and tingling\\/pinprick sensations in feet for 1 month, nocturnal exacerbation causing insomnia.\",\"colloquial_cue\":\"dono talway jalte rehte hain, sunn hone da ehsaas ...
scen_02_diabetic_neuropathy
Endocrinology / Diabetic Neuropathy
null
null
[ "{\"fact_id\":\"scen02_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Bilateral burning soles, numbness, and tingling\\/pinprick sensations in feet for 1 month, nocturnal exacerbation causing insomnia.\",\"colloquial_cue\":\"dono talway jalte rehte hain, sunn hone da ehsaas ...
scen_02_diabetic_neuropathy
Endocrinology / Diabetic Neuropathy
null
null
[ "{\"fact_id\":\"scen02_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Bilateral burning soles, numbness, and tingling\\/pinprick sensations in feet for 1 month, nocturnal exacerbation causing insomnia.\",\"colloquial_cue\":\"dono talway jalte rehte hain, sunn hone da ehsaas ...
scen_02_diabetic_neuropathy
Endocrinology / Diabetic Neuropathy
null
null
[ "{\"fact_id\":\"scen02_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Bilateral burning soles, numbness, and tingling\\/pinprick sensations in feet for 1 month, nocturnal exacerbation causing insomnia.\",\"colloquial_cue\":\"dono talway jalte rehte hain, sunn hone da ehsaas ...
scen_02_diabetic_neuropathy
Endocrinology / Diabetic Neuropathy
null
null
[ "{\"fact_id\":\"scen02_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Bilateral burning soles, numbness, and tingling\\/pinprick sensations in feet for 1 month, nocturnal exacerbation causing insomnia.\",\"colloquial_cue\":\"dono talway jalte rehte hain, sunn hone da ehsaas ...
scen_03_hypertension_dyslipidemia
Cardiology / Preventive Health
null
null
[ "{\"fact_id\":\"scen03_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Occipital head heaviness for 10-12 days, episodic palpitations, and rest-onset anxiety\\/ghabrahat.\",\"colloquial_cue\":\"sar ke pichle hissay mein shaded bhari pan, dil dharakne lagta hai, ghabrahat hund...
scen_03_hypertension_dyslipidemia
Cardiology / Preventive Health
null
null
[ "{\"fact_id\":\"scen03_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Occipital head heaviness for 10-12 days, episodic palpitations, and rest-onset anxiety\\/ghabrahat.\",\"colloquial_cue\":\"sar ke pichle hissay mein shaded bhari pan, dil dharakne lagta hai, ghabrahat hund...
scen_03_hypertension_dyslipidemia
Cardiology / Preventive Health
null
null
[ "{\"fact_id\":\"scen03_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Occipital head heaviness for 10-12 days, episodic palpitations, and rest-onset anxiety\\/ghabrahat.\",\"colloquial_cue\":\"sar ke pichle hissay mein shaded bhari pan, dil dharakne lagta hai, ghabrahat hund...
scen_03_hypertension_dyslipidemia
Cardiology / Preventive Health
null
null
[ "{\"fact_id\":\"scen03_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Occipital head heaviness for 10-12 days, episodic palpitations, and rest-onset anxiety\\/ghabrahat.\",\"colloquial_cue\":\"sar ke pichle hissay mein shaded bhari pan, dil dharakne lagta hai, ghabrahat hund...
scen_03_hypertension_dyslipidemia
Cardiology / Preventive Health
null
null
[ "{\"fact_id\":\"scen03_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Occipital head heaviness for 10-12 days, episodic palpitations, and rest-onset anxiety\\/ghabrahat.\",\"colloquial_cue\":\"sar ke pichle hissay mein shaded bhari pan, dil dharakne lagta hai, ghabrahat hund...
scen_03_hypertension_dyslipidemia
Cardiology / Preventive Health
null
null
[ "{\"fact_id\":\"scen03_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Occipital head heaviness for 10-12 days, episodic palpitations, and rest-onset anxiety\\/ghabrahat.\",\"colloquial_cue\":\"sar ke pichle hissay mein shaded bhari pan, dil dharakne lagta hai, ghabrahat hund...
scen_04_gastroenteritis_amoebiasis
Gastroenterology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen04_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe abdominal cramping (maror) and loose mucus-containing stools for 3 days, with postprandial urgency; denies vomiting.\",\"colloquial_cue\":\"teen din se pait mein shaded maror, loose motions, aao aa ...
scen_04_gastroenteritis_amoebiasis
Gastroenterology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen04_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe abdominal cramping (maror) and loose mucus-containing stools for 3 days, with postprandial urgency; denies vomiting.\",\"colloquial_cue\":\"teen din se pait mein shaded maror, loose motions, aao aa ...
scen_04_gastroenteritis_amoebiasis
Gastroenterology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen04_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe abdominal cramping (maror) and loose mucus-containing stools for 3 days, with postprandial urgency; denies vomiting.\",\"colloquial_cue\":\"teen din se pait mein shaded maror, loose motions, aao aa ...
scen_04_gastroenteritis_amoebiasis
Gastroenterology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen04_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe abdominal cramping (maror) and loose mucus-containing stools for 3 days, with postprandial urgency; denies vomiting.\",\"colloquial_cue\":\"teen din se pait mein shaded maror, loose motions, aao aa ...
scen_04_gastroenteritis_amoebiasis
Gastroenterology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen04_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe abdominal cramping (maror) and loose mucus-containing stools for 3 days, with postprandial urgency; denies vomiting.\",\"colloquial_cue\":\"teen din se pait mein shaded maror, loose motions, aao aa ...
scen_04_gastroenteritis_amoebiasis
Gastroenterology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen04_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe abdominal cramping (maror) and loose mucus-containing stools for 3 days, with postprandial urgency; denies vomiting.\",\"colloquial_cue\":\"teen din se pait mein shaded maror, loose motions, aao aa ...
scen_05_urinary_tract_infection
Urology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen05_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe dysuria \\/ burning on urination, urinary frequency, and lower abdominal discomfort for 4 days; denies flank pain.\",\"colloquial_cue\":\"char din se peshab karte waqt shadeed jalan aur dard, aadhe ...
scen_05_urinary_tract_infection
Urology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen05_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe dysuria \\/ burning on urination, urinary frequency, and lower abdominal discomfort for 4 days; denies flank pain.\",\"colloquial_cue\":\"char din se peshab karte waqt shadeed jalan aur dard, aadhe ...
scen_05_urinary_tract_infection
Urology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen05_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe dysuria \\/ burning on urination, urinary frequency, and lower abdominal discomfort for 4 days; denies flank pain.\",\"colloquial_cue\":\"char din se peshab karte waqt shadeed jalan aur dard, aadhe ...
scen_05_urinary_tract_infection
Urology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen05_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe dysuria \\/ burning on urination, urinary frequency, and lower abdominal discomfort for 4 days; denies flank pain.\",\"colloquial_cue\":\"char din se peshab karte waqt shadeed jalan aur dard, aadhe ...
scen_05_urinary_tract_infection
Urology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen05_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe dysuria \\/ burning on urination, urinary frequency, and lower abdominal discomfort for 4 days; denies flank pain.\",\"colloquial_cue\":\"char din se peshab karte waqt shadeed jalan aur dard, aadhe ...
scen_05_urinary_tract_infection
Urology / Infectious Disease
null
null
[ "{\"fact_id\":\"scen05_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Severe dysuria \\/ burning on urination, urinary frequency, and lower abdominal discomfort for 4 days; denies flank pain.\",\"colloquial_cue\":\"char din se peshab karte waqt shadeed jalan aur dard, aadhe ...
scen_06_acute_watery_diarrhea
Gastroenterology / Acute Care
null
null
[ "{\"fact_id\":\"scen06_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute watery diarrhea (5-6 episodes in 24 hours) following wedding food, single morning vomiting episode, abdominal rumbling, and weakness.\",\"colloquial_cue\":\"subah se paanch chhay baar patlay dast, bi...
scen_06_acute_watery_diarrhea
Gastroenterology / Acute Care
null
null
[ "{\"fact_id\":\"scen06_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute watery diarrhea (5-6 episodes in 24 hours) following wedding food, single morning vomiting episode, abdominal rumbling, and weakness.\",\"colloquial_cue\":\"subah se paanch chhay baar patlay dast, bi...
scen_06_acute_watery_diarrhea
Gastroenterology / Acute Care
null
null
[ "{\"fact_id\":\"scen06_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute watery diarrhea (5-6 episodes in 24 hours) following wedding food, single morning vomiting episode, abdominal rumbling, and weakness.\",\"colloquial_cue\":\"subah se paanch chhay baar patlay dast, bi...
scen_06_acute_watery_diarrhea
Gastroenterology / Acute Care
null
null
[ "{\"fact_id\":\"scen06_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute watery diarrhea (5-6 episodes in 24 hours) following wedding food, single morning vomiting episode, abdominal rumbling, and weakness.\",\"colloquial_cue\":\"subah se paanch chhay baar patlay dast, bi...
scen_06_acute_watery_diarrhea
Gastroenterology / Acute Care
null
null
[ "{\"fact_id\":\"scen06_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute watery diarrhea (5-6 episodes in 24 hours) following wedding food, single morning vomiting episode, abdominal rumbling, and weakness.\",\"colloquial_cue\":\"subah se paanch chhay baar patlay dast, bi...
scen_06_acute_watery_diarrhea
Gastroenterology / Acute Care
null
null
[ "{\"fact_id\":\"scen06_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute watery diarrhea (5-6 episodes in 24 hours) following wedding food, single morning vomiting episode, abdominal rumbling, and weakness.\",\"colloquial_cue\":\"subah se paanch chhay baar patlay dast, bi...
scen_07_positional_vertigo_nausea
Neurology / ENT / Acute Care
null
null
[ "{\"fact_id\":\"scen07_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute positional vertigo \\/ spinning sensation worsened by head motion, accompanied by nausea and 2 episodes of vomiting; denies auditory changes.\",\"colloquial_cue\":\"pura kamra ghumne laga, shadeed ch...
scen_07_positional_vertigo_nausea
Neurology / ENT / Acute Care
null
null
[ "{\"fact_id\":\"scen07_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute positional vertigo \\/ spinning sensation worsened by head motion, accompanied by nausea and 2 episodes of vomiting; denies auditory changes.\",\"colloquial_cue\":\"pura kamra ghumne laga, shadeed ch...
scen_07_positional_vertigo_nausea
Neurology / ENT / Acute Care
null
null
[ "{\"fact_id\":\"scen07_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute positional vertigo \\/ spinning sensation worsened by head motion, accompanied by nausea and 2 episodes of vomiting; denies auditory changes.\",\"colloquial_cue\":\"pura kamra ghumne laga, shadeed ch...
scen_07_positional_vertigo_nausea
Neurology / ENT / Acute Care
null
null
[ "{\"fact_id\":\"scen07_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute positional vertigo \\/ spinning sensation worsened by head motion, accompanied by nausea and 2 episodes of vomiting; denies auditory changes.\",\"colloquial_cue\":\"pura kamra ghumne laga, shadeed ch...
scen_07_positional_vertigo_nausea
Neurology / ENT / Acute Care
null
null
[ "{\"fact_id\":\"scen07_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute positional vertigo \\/ spinning sensation worsened by head motion, accompanied by nausea and 2 episodes of vomiting; denies auditory changes.\",\"colloquial_cue\":\"pura kamra ghumne laga, shadeed ch...
scen_07_positional_vertigo_nausea
Neurology / ENT / Acute Care
null
null
[ "{\"fact_id\":\"scen07_fact01\",\"speaker\":\"Patient\",\"fact_type\":\"chief_complaint\",\"canonical_fact\":\"Acute positional vertigo \\/ spinning sensation worsened by head motion, accompanied by nausea and 2 episodes of vomiting; denies auditory changes.\",\"colloquial_cue\":\"pura kamra ghumne laga, shadeed ch...

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Whole-Consultation Information Preservation in Code-Mixed Clinical Encounters

Fatima Fellowship Technical Challenge: Blind Spots of Frontier Models
Evaluated Model: Qwen/Qwen3.5-4B (4 Billion parameters, open-weight on Hugging Face)
Repository / Bucket: Public Artifacts & Evaluation Suite


Abstract

In overburdened outpatient clinics across Pakistan, doctors see 50 to 70 patients in a single morning with zero digital records. Ambient AI scribes could transform this workflow, but modern models are built around Western, English clinical standards. In this project, I evaluated an open-weight 4B model (Qwen/Qwen3.5-4B) on outpatient visits conducted in colloquial code-mixed Urdu/Punjabi-English compared to standard English.

Evaluating 210 clinical facts across 42 generated notes revealed three critical blind spots:

  1. A 12.4% language penalty: Fact retention dropped from 90.5% in English to 78.1% in code-mixed dialogue simply because the patient spoke in their native language.
  2. Loss of the patient's voice: The model dropped colloquial symptom phrases (like morning nausea) and mixed up who said what (putting a patient's home remedy of 7Up into the doctor's active treatment plan).
  3. Medication collapse (47.6% retention): More than half of prescriptions were dropped or distorted. Without a glossary, the model didn't recognize local brands and guessed dangerous Western lookalikes—turning an anti-ulcer pill (Risek 40mg) into a drug that actively causes severe ulcers (Risedronate 40mg).

To fix this, we need a practical two-step approach:

  • Immediate zero-cost fixes: Giving the model a simple local drug lookup list in the prompt stopped brand hallucinations completely, while separating patient notes from doctor orders stops the model from mixing up speakers.
  • Better translation of local idioms: To stop models from dropping cultural phrases like "seene vich khich" (pulling chest tightness), small models should be fine-tuned with Direct Preference Optimization (DPO) so they learn to preserve descriptive physical feelings rather than dropping them.

Question 1: The Problem and Lived Experience

Recently I got the chance to work with my first overseas healthcare client, where i got first look at automated clinical documentation, electronic health records, and strict HIPAA compliance. It was impressive.

But when someone walks into an outpatient clinic in any city of Pakistan, the contrast is jarring. Doctors there see 50 to 70 patients in a single morning with no digital systems at all. A whole consultation ends up as a hurried, barely legible prescription slip (parchee) with a brand name and a scrawled dose. When you come back for a follow-up, or with a different problem, the doctor looks at a blank register and asks, "What medicine did I give you last time?" Nothing was recorded about your symptoms, the home remedies you tried, or the non-drug advice you were given.

An AI documentation assistant could really help these clinicians, but Western models struggle in this setting. Our consultations flow between Urdu, Punjabi, and English, with local brand names (Risek, Gabica) and colloquial symptom phrases ("seene vich khich", "talway jalna"). Before anyone talks about digital records, there’s a basic safety question to answer: when an AI documents a code-mixed consultation, does it keep the key clinical facts, including the patient’s symptoms and history? Or does it erase the patient’s voice, mix up who said what, and invent the wrong medicines?


Question 2: Methodology and Findings

Setup

I benchmarked an open-weight model, Qwen/Qwen3.5-4B, on 7 synthetic outpatient consultations. My brother, a medical student, wrote them with AI assistance. They cover GERD, diabetic neuropathy, hypertension, gastroenteritis, dysuria, diarrhea, and vertigo.

Each case existed in two versions with identical clinical facts:

  1. Code-mixed Urdu/Punjabi-English (natural clinic conversational register)
  2. Standard English (control condition)

Tested across three prompt conditions:

  • Faithful: Record only what was said, in a structured SOAP note.
  • Standardize: Convert brand names to generic names (INN) and colloquial terms to standard medical language.
  • Glossary: The same as Standardize, plus a 10-word local clinic glossary.

I scored 210 tagged clinical facts across 42 generated notes using a frozen five-way rubric (Preserved, Omitted, Distorted, Attribution Error, Hallucinated), with Wilson 95% confidence intervals.


What I Found

  1. A 12.4-point language penalty:
    Standard English retained 90.5% of facts (95/105; CI 83.4–94.7%). Code-mixed retained 78.1% (82/105; CI 69.3–84.9%). The exact same clinical case lost more than 12% of its information just because the conversation happened in the patient’s own language.

  2. The patient’s voice erodes:

    • Dropped symptoms: In Scenario 1, the patient’s morning nausea and vomiting ("subah uthte hi ulti jaisi lagti hai") vanished from the code-mixed notes. In English it was kept every time.
    • Dropped context: In Scenario 2, the patient said their sugar spiked because they’d run out of medicine for 4 days ("dawai beech mein choot gayi thi"). The code-mixed notes left this out, which could lead a reader to wrongly conclude the drug wasn’t working.
    • Wrong speaker: In Scenario 4, the patient had taken 7Up with lemon at home. One code-mixed note put it in the doctor’s treatment plan.
  3. Medication instructions collapsed:
    Vitals survived at 97.6% (41/42) and chief complaints at 95.2% (40/42), but medication facts fell to 47.6% (20/42; CI 33.4–62.3%). More than half were dropped or distorted.

  4. Dangerous brand hallucinations:
    Under the Standardize prompt without a glossary, distortions more than doubled (4 to 9). The model didn’t recognize local brands and guessed similar-sounding Western drugs. In Scenario 1, Risek 40mg (omeprazole, for stomach ulcers) became risedronate 40mg, an osteoporosis drug that can itself cause severe stomach irritation and ulceration. In Scenario 2, Gabica 75mg (pregabalin) became gabapentin.

  5. A simple in-context fix:
    With the 10-word glossary, brand hallucinations dropped to zero in this benchmark. The model correctly recorded Risek (omeprazole) 40mg and Gabica (pregabalin) 75mg.


Question 3: The Path Forward

The findings point to three targeted fixes, none of which need heavy retraining:

  1. Formulary grounding for local brands:
    Add a lightweight lookup that matches the doctor’s words against a national formulary (such as Pakistan’s PharmaGuide) and puts the generic mapping into the prompt. In this benchmark, a small glossary eliminated brand hallucinations at no training cost, and a full formulary should extend that, though it needs testing at scale.

  2. Role-gated, two-pass extraction for speaker errors:
    To keep patient self-treatments (7Up, Eno) out of the doctor’s plan, split generation in two. Pass 1 writes the Subjective section using only turns labeled [Patient]. Pass 2 writes the Plan using only turns labeled [Doctor]. This should sharply reduce cross-speaker errors, since the model can no longer see the wrong speaker’s words.

  3. Targeted DPO for symptom idioms:
    To stop small models from dropping phrases like "seene vich khich paindi ae" or "talway jalte hain", align them with Direct Preference Optimization (DPO) on paired examples. The training should reward keeping the patient’s descriptive sensations over aggressive summarizing or jumping to Western diagnoses.

  4. What not to do first: full end-to-end fine-tuning:
    The model’s core clinical reasoning looked sound, and retraining on scarce South Asian medical data risks catastrophic forgetting. In-context grounding and role-gated pipelines address these specific gaps more directly.


Limitations

  • The dialogues were written to resemble typical outpatient visits, with AI assistance by a medical student, not recorded from live consultations.
  • A single evaluator scored the notes, following a frozen rubric with automated consistency checks.
  • Only a 4B-parameter model was tested, and larger models may behave differently.

Repository Artifacts

  • README.md: Overview, full answers to required questions, key findings, and limitations.
  • evaluationnotebookran.ipynb: Executed Google Colab notebook demonstrating model loading, prompting, and inference.
  • consultation_dialogues.json: 7 full clinical consultation scenarios with tagged ground-truth clinical facts.
  • labels.csv: Complete 210-row dataset of scored facts with labels and evaluator notes.
  • raw_results.jsonl: All 42 generated clinical SOAP notes from the model.
  • application_responses.txt: Clean, plain-text copy of the application responses.
Downloads last month
25