Dinesh Rai Transitions from ER Doctor to Clinical AI Engineer at Boston Children’s Hospital

When Boston Children’s Hospital posted a job listing for a prompt engineer in 2023, Dinesh Rai decided to apply, not expecting to secure the position. Prompt engineering was emerging as a sought-after role in generative AI, where organizations needed individuals to elicit optimal responses from large language models (LLMs).
Dinesh Rai
Employer: Boston Children’s Hospital
Occupation: Clinical AI Engineer
Education: Bachelor’s degree in supply-chain management and marketing sciences from Rutgers Business School; Doctor of Medicine from Albert Einstein College of Medicine
Rai’s background was unique for a hospital role. Although trained as an emergency physician, he had self-taught coding before medical school. After completing a fellowship in clinical informatics, which bridges clinical practice and IT systems, he transitioned into health technology.
Boston Children’s hired him in August 2023, and three years later, he continues to work there. However, prompt engineering has since diminished in significance within his role. Initially, there was an expectation that prompt engineering would become a standalone job. “Knowing how to prompt AI properly was going to be the job function of the future,” said John Brownstein, chief innovation officer at Boston Children’s.
As AI models advanced, the focus shifted from complex prompting to integrating AI into healthcare systems and assessing the reliability of its outputs. “How do you embed these tools in your day-to-day operations?” Brownstein noted. For Rai, this evolution has led to a broader job scope. “I’m more like a clinical AI engineer now,” he remarked.
Between Medicine and Engineering
Rai began his academic journey in business and started learning to code in 2014, coinciding with his entry into medical school. He continued developing software while training as a physician, creating a platform called Academius for medical students to track residency interviews.
Coding appealed to him due to its scalability; while emergency medicine impacted individual patients, software development could create solutions benefiting thousands. His informatics fellowship from 2021 to 2022 solidified his desire to pursue this path full-time. In 2022, he joined Pieces, a healthcare AI company, leading initiatives to implement LLM-based medical summarization in clinical settings.
Stepping away from practicing medicine was a hard decision for Rai, but he aimed to focus entirely on technology. He has since reactivated his medical license and hopes to return to clinical practice within the next year.
At Boston Children’s, his workday is split between engineering tasks—collaborating with developers, writing code, and advancing projects—and engaging with clinicians to understand their needs.
Uncovering “Clinical Doppelgangers”
One of Rai’s projects, called clinical doppelgangers, assists doctors in treating complex patients by identifying similar cases within the hospital’s historical data. This system helps clinicians find previous patients with relevant similarities, analyze their treatment paths, and evaluate outcomes. It serves as an additional evidence source when published literature offers limited guidance.
Such projects require understanding hospital data and how clinicians will utilize the information. Rai faced challenges while collaborating with clinical and development teams on another project, debating how much of a patient’s medical record to provide an AI model when seeking to identify findings pertinent to specific clinical outcomes.
Rai identified flaws in both perspectives. Clinically, an abnormal lab result might not be relevant, and technically, an LLM cannot be relied upon to discern irrelevance. “That’s where the dual perspective has been valuable,” Rai stated.
After the Prompt
In medicine, challenges surrounding the prompt have become more significant than refining the prompt itself. Key considerations include whether the model’s output aligns with the underlying data and how to assess its results. Clinicians who would use the tool reviewed a batch of generated notes before finalization, ensuring accuracy.
Despite the surge in AI adoption, some healthcare professionals remain skeptical about its implementation. Rai noted that skepticism is healthy, and the team informed clinicians that the generative AI tool was intended to support their judgment rather than replace their review of the chart.
An Evolving Career
Rai’s career trajectory illustrates the rapid evolution of AI-focused roles. He cautions those interested in similar paths against mastering any specific tool. Fundamental programming skills remain essential, along with familiarity with machine learning and experience in building systems. However, what Rai considers crucial is domain knowledge—understanding how workflows operate and what data signifies in healthcare.
This insight may be the most enduring lesson from a career that briefly held one of AI’s most talked-about job titles. “The value isn’t just knowing how to get an answer from a model,” Rai concluded. “It’s knowing what context it needs and whether that context supports the answer we’re asking it to give.”
Related link: linkedin.com
Source: IEEE Spectrum