No-Code Analysis of 52,181 Prison Telehealth Records With a Large Language Model: Formative Case Study of a Natural Language–Only Workflow and Its Failure Modes in Brazil (Preprint)

BACKGROUND Large administrative health databases are often underused because the people who need answers depend on technical staff to translate operational questions into code. Dashboards expose predefined indicators but cannot answer new questions. Large language models (LLMs) can generate executable code from natural language and may offer a complementary interface, provided their outputs are checked and remain auditable. OBJECTIVE To test whether a natural language–only ("no-code") workflow, in which the operator never writes or edits code, can convert operational public health questions into reproducible analytical outputs from a real-world prison telehealth dataset; to document the errors that arise and how they were detected; and to make the process publicly inspectable. METHODS We applied a no-code workflow to 52,181 anonymized consultation records (293 variables) from TeleSAP, the prison telehealth program of São Paulo State, Brazil (June 2024–July 2025). One operator interacted with Gemini (Google) through its web interface in March 2026, in a single thread of 360 prompts, to obtain Python scripts for 17 management questions, executed in Google Colab. Execution errors and implausible numbers were returned to the model as corrective prompts; code was never edited by hand. Gemini then generated a public portal and reconstructed, from each final script, the prompt that reproduces it. RESULTS Of 17 scripts, 15 ran and answered their question; 1 was excluded because the model silently substituted simulated values for the absenteeism field; 6 were curated into public case studies (chronic disease burden by age, teleconsultation duration, first-contact resolution, gender identity and clinical complexity, respiratory seasonality, cardiovascular risk). Illustrative outputs: hypertension in 39.9% of consultations at age ≥45 years vs 11.3% under 45 (P<.001); 64.8% of consultations resolved at first contact; respiratory peak in August (7.9%; P=.008).

Link
https://doi.org/10.2196/preprints.116900
Found by
Crossref
Authors
Luiz Fernando Cardoso dos Santos Durão, Airha de Souza Silva, Bruna Natália Freire Ribeiro, Michelle Louvaes Garcia, Vanessa Queiroz Pereira Cubos, Roberta Rubia de Lima, Maria Cristina Coimbra Lages Balestrin de Andrade, Alexandre Lazinho Santos, Simone Pacheco Gomide da Silva, Giovanni Guido Cerri, Carlos Roberto Ribeiro de Carvalho, Helder Takashi Imoto Nakaya
Categories
dataset
Published
2026-11-13
Last seen by the radar
2026-11-15
Citations
0
Radar score
26.75 / 100 (how it is scored)
Why it scored so
Matched: dataset; Primary record: Crossref
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Crossref