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
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      Couldn't cast array of type
struct<answers: int64, text: string>
to
{'answer_start': Value('int64'), 'text': Value('string')}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 644, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2223, in cast_table_to_schema
                  arrays = [
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2224, in <listcomp>
                  cast_array_to_feature(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1795, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1795, in <listcomp>
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2052, in cast_array_to_feature
                  casted_array_values = _c(array.values, feature.feature)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1797, in wrapper
                  return func(array, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2001, in cast_array_to_feature
                  arrays = [
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2002, in <listcomp>
                  _c(array.field(name) if name in array_fields else null_array, subfeature)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1797, in wrapper
                  return func(array, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2052, in cast_array_to_feature
                  casted_array_values = _c(array.values, feature.feature)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1797, in wrapper
                  return func(array, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2001, in cast_array_to_feature
                  arrays = [
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2002, in <listcomp>
                  _c(array.field(name) if name in array_fields else null_array, subfeature)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1797, in wrapper
                  return func(array, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2052, in cast_array_to_feature
                  casted_array_values = _c(array.values, feature.feature)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1797, in wrapper
                  return func(array, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2092, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<answers: int64, text: string>
              to
              {'answer_start': Value('int64'), 'text': Value('string')}
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1456, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1055, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

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.

paragraphs
list
title
string
[ { "context": "Información del paciente: Varón, 38 años, conductor de autobús y jugador de rugby. Vive en casa de sus padres.\n\nQueja principal: El paciente presenta un dolor sordo torácico repentino en el lado izquierdo (desde hace 30 minutos) que ha ido empeorando desde su inicio, mientras estaba quitando la ...
CAN doc:1520422
[ { "context": "Información al paciente: Adulto de mediana edad, trabaja como cajero y vive solo en un apartamento.\n\nLa queja principal: El paciente se presenta con una historia de dos meses de disnea de esfuerzo progresiva y ortopnea, que ha estado afectando a su rutina. También tiene otros síntomas como tos p...
CAN doc:1520416
[ { "context": "Información del paciente: Mujer de mediana edad.\n\nQueja principal: La paciente experimenta dolor torácico agudo en el lado izquierdo desde hace dos semanas, que se ha mantenido constante con una duración de 20-30 minutos cada vez, valorado en 4/10 en una escala de dolor. Empeora cuando está en e...
CAN doc:1520432
[ { "context": "Información del paciente: La paciente es una mujer. Vive con su compañero de cuarto.\n\nMotivo de consulta: La paciente presenta náuseas persistentes, que empeoran con los malos olores y son más intensas por la mañana. Las náuseas han durado aproximadamente 9 días, con vómitos intermitentes una o ...
CAN doc:1520672
[ { "context": "Información al paciente: Niño de 6 años. Vive con sus padres y 2 hermanos. Sin mascotas.\n\nLa queja principal: Ha estado experimentando dolor abdominal, vómitos y diarrea durante los últimos tres días. El niño también tuvo fiebre ayer (38.3 grados centígrados) y escalofríos. Ha tenido otros sínto...
CAN doc:1520417
[ { "context": "Información del paciente: El paciente es un hombre, camionero. Vive con su mujer e hijo.\n\nQueja principal: Dolor intenso en el glúteo derecho que se irradia a la pierna derecha, se volvió intenso hace dos días, pero ya tenia dolor anteriormente. El dolor es persistente y empeora con cualquier mo...
CAN doc:1520436
[ { "context": "Información al paciente: Trabaja en una cadena de montaje Chtysler y jugaba al golf hasta que comenzó el dolor.\n\nQueja principal: El paciente presenta una queja de dolor en el codo izquierdo que ha estado en curso durante tres meses, con empeoramiento de los síntomas en las últimas tres semanas....
CAN doc:1520421
[ { "context": "Información al paciente: Paciente mujer de mediana edad. Trabaja desde casa cuidando a los niños. Vive con su marido.\n\nQueja principal: La paciente ha estado experimentando dolor en la parte baja de la espalda y las nalgas durante el último mes, que recientemente ha comenzado a irradiarse a la p...
CAN doc:1520510
[ { "context": "Información al paciente: Paciente hombre de mediana edad. Vive con su mujer en el centro de la ciudad. Trabaja desde casa.\n\nLa queja principal: El paciente tiene entumecimiento y hormigueo en los pies, así como heridas abiertas que no las siente. Los síntomas han estado presentes durante los últ...
CAN doc:1520522
[ { "context": "Información sobre el paciente: Anne, varón de avanzada edad, jubilado. Vive en un pequeño adosado en la ciudad, con su mujer, que todavía trabaja, y su hija. Puede hacer la mayoría de las tareas de la casa él solo. Su mujer se encarga de la compra y de cocinar.\n\nPrincipal queja: El paciente pres...
CAN doc:1520519
[ { "context": "Información del paciente: El paciente trabaja en una tienda de comestibles.\nLa queja principal: Tos seca de 5 días que empeora por la noche, tiene dolor torácico, dolor de garganta y se asocia con fiebre, fatiga y disminución del sentido del olfato. También tiene un aumento de peso de 5 o 10 libr...
CAN doc:1521755
[ { "context": "Información del paciente: Niña de 8 años que vive con sus padres y su hermano menor.\n\nMotivo de consulta: La paciente ha estado experimentando dolor de oído y fiebre durante los últimos dos días. No presenta fluido en el oído, tos, secreción nasal, dolor de garganta o algún síntoma viral o de re...
CAN doc:1521637
[ { "context": "Información del paciente: El paciente vive en un pequeño bungalow en Londres. No se dan más datos.\n\nLa queja principal: El paciente tiene tos desde hace una semana y ha empeorado en los últimos días, hasta el punto de que ahora tiene dificultad para respirar, sobre todo con el esfuerzo físico, y...
CAN doc:1521629
[ { "context": "Información al paciente: Ingeniero de Software, vive solo en un apartamento. No se proporciona sexo ni edad.\n\nLa queja principal: El paciente presenta dolor sordo en la parte exterior del tobillo derecho tras una mala pisada ocurrida el día anterior. Describe la lesión como si se le hubiese inve...
CAN doc:1520434
[ { "context": "Información al paciente: Paciente varón de edad avanzada. Vive en un pequeño condominio con su mujer.\n\nLa queja principal: El paciente ha estado experimentando dolor y rigidez en sus caderas y rodillas, sobre todo por las mañanas, durante los últimos dos meses, lo que le ha hecho interrumpir alg...
CAN doc:1521590
[ { "context": "Información al paciente: El paciente tiene 12 años. Pesa 130 libras y mide alrededor de 1,36 metros. Vive con sus padres y hermana. \n\nLa queja principal: El paciente presenta dolor en la cadera derecha y en la ingle tras una caída ayer. El dolor es agudo y ha empeorado desde la caída, que fue ju...
CAN doc:1520603
[ { "context": "Información del paciente: Paciente joven. Vive en una casa a las afueras de la ciudad con su padres.\n\nLa queja principal: El paciente presenta dolor en el hombro derecho tras una caída durante un partido de rugby. El dolor es agudo si intenta moverlo y no ha remitido. El paciente no puede mover ...
CAN doc:1520517
[ { "context": "Información del paciente: Paciente joven de 15 años, en décimo curso. Vive con sus padres, su hermana pequeña de 8 años y un perro. Juega a baloncesto.\n\nQueja principal: Presenta dolor agudo en la rodilla izquierda, que comenzó inmediatamente después de aterrizar de un salto durante un entrenami...
CAN doc:1520524
[ { "context": "Información del paciente: Paciente hombre de mediana edad. Vive en un apartamento con su mujer y su hijo adolescente. Lleva trabajando 30 años en una fábrica moviendo cajas. Actualmente está de baja.\n\nLa queja principal: El paciente ha estado experimentando dolor de espalda durante el último mes...
CAN doc:1520526
[ { "context": "Información del paciente: Paciente de mediana edad. Vive con dos de sus hijos. Trabaja de profesora desde casa.\n\nLa queja principal: La paciente tiene dolor agudo de espalda baja que ha progresado a entumecimiento en ambas zonas de la ingles e incontinencia urinaria. Empezó hace dos meses y ha i...
CAN doc:1520620
[ { "context": "Información al paciente: Paciente hombre de mediana edad. Vive con su mujer y su hija en un condominio en la ciudad. Es contable y trabaja desde casa. Ha empezado este año a hacer ejercicio después de cierto tiempo.\n\nLa queja principal: El paciente tiene un dolor agudo punzante en el hombro y c...
CAN doc:1520617
End of preview.

VirPat-2024

In this repository, you will find the QA corpora used in the following paper: https://aclanthology.org/2024.lrec-main.182/

Introduction

Virtual patients (VPs) have emerged as potent educational tools in medical training and healthcare simulation. They offer medical students the opportunity to simulate authentic clinical consultations, allowing them to practice a wide range of scenarios and gain valuable experience before engaging with real patients during medical exams or interviews. These VPs are built upon dialogue systems, which are automated AI systems designed to interact with users through natural language conversations. The primary objective of a dialogue system is to facilitate effective communication between humans and computers, comprehend user input in the form of text or speech, and provide appropriate responses to user queries.

To achieve this objective, we have developed a medical domain QA corpus in Spanish to enable models to get better results.

VIR-PAT-QA corpus

The goal of the VIR-PAT-QA corpus is to align each dialogue with a corresponding clinical record in natural language, thereby enhancing the dialogue dataset with textual descriptions of each patient. This approach paves the way for the creation of new virtual patients by simply adding new clinical records to the dataset. To achieve this objective, we initially translated doctor-patient consultation dialogues from English to Spanish, which were recorded following the format of the OSCE exams and subsequently transcribed by (Fareez et al. (2022). Following translation, we manually corrected any errors in the translations. Subsequently, we created clinical records based on the doctor-patient dialogues. Finally, we associated each patient's answer with the clinical report in which it was given.

alt text

The ultimate dataset comprises 6,290 question-answer pairs derived from 129 distinct clinical cases, formatted according to the SQuAD v2.0 format proposed by Rajpurkar et al. (2016) with JSON structure. The dataset was partitioned into training, development, and test sets, constituting 75%, 10%, and 15% of the corpus, respectively. Within this dataset, three types of questions are present:

  • Questions that need to be answered: questions that require seeking the answer in the reports.

    • Answered questions: the response appears in the report

    • Unanswered questions: They refer to instances where the required information to formulate a response is absent in the clinical report. In the dataset, these instances are characterized by an empty span and the "is_impossible" attribute set to True. Such questions may arise when the patient fails to comprehend the inquiry or when the provided answer in the dialogue does not adequately address the question. Consequently, the "answer" section in the dataset remains empty for these instances.

  • Questions that do not need and answer pertain to instances where an answer is not required, typically occurring when a medical student or doctor makes a comment rather than solicits information. These comments might include expressions like "Thank you" or "OK," or statements indicating the next course of action, such as "Now I will check your temperature." Detecting and understanding these types of utterances is crucial, as a standard question-answering system might erroneously attempt to generate responses for each question posed, which is inappropriate for these types of statements. In the dataset, such instances are denoted by an "I" in the "answer" section, serving as a distinguishing marker from other question types.

In the following table you can find the distribution of each type of question:

Question type train dev test
Questions that need to be answered 4573 496 915
- Answered questions 2753 295 580
- Unanswered questions 1820 201 335
Questions that do not have to be answered 228 27 51
Total 4801 523 966

The corpus consists of several attributes: Beginning with the "data" section, it contains all the information regarding clinical reports, questions, and answers. Moving on to the "paragraphs" section, we encounter the clinical report, along with the associated questions and answers for a specific patient. Within this section, the "context" refers to the clinical report itself, while the "qas" section contains details regarding the questions and answers. From the questions, we extract the question text ("question"), an identifier ("id"), and a flag indicating whether the question can be answered based on the context ("is_impossible"). The "answer" element includes the actual text of the answer ("text") and the starting position of the answer within the context ("answer_start"). Lastly, there is a less relevant attribute known as the document ID or title ("title"), which is not utilized by the model.

Moreover, the QA corpus also contains different question formats: the one that has the only the question itself, other one with the question and the intention (intent) of the doctor together and the last one that only has the intention of the doctor.

References

Faiha Fareez, Tishya Parikh, Christopher Wavell, Saba Shahab, Meghan Chevalier, Scott Good, Isabella De Blasi, Rafik Rhouma, Christopher McMahon, Jean-Paul Lam, Thomas Lo, and Christopher W. Smith. A dataset of simulated patient-physician medical interviews with a focus on respiratory cases. Scientific Data, 9(1):313, 06 2022.ISSN 2052-4463. doi: 10.1038/s41597-022-01423-1. URL https://doi.org/10.1038/s41597-022-01423-1.

Downloads last month
52