How an ER doctor became a clinical AI engineer

Facebook
Twitter
LinkedIn
Pinterest
Pocket
WhatsApp

When Boston Children’s Hospital posted a role for a prompt engineer in 2023, emergency physician Dinesh Rai applied and ultimately evolved into a clinical AI engineer. At the time, prompt work was billed as a hot new specialty, focused on drawing reliable responses from large language models by crafting careful instructions and context.

Clinical AI engineer at Boston Children’s Hospital

Dinesh Rai

Employer: Boston Children’s Hospital

Occupation: Clinical AI Engineer

Education: Bachelor’s degree in supply-chain management and marketing sciences, Rutgers Business School; Doctor of Medicine, Albert Einstein College of Medicine

Rai’s background was atypical for a hospital hire. Trained in emergency medicine, he taught himself to code before medical school and later completed a fellowship in clinical informatics, which bridges clinical practice and IT systems.

He joined Boston Children’s in August 2023 and remains there three years later, even as pure prompt engineering has become a smaller part of the work. Leaders at the hospital expected prompting to be a distinct job function.

According to John Brownstein, the hospital’s chief innovation officer, the organization initially needed in-house expertise to get started with AI. As model quality improved, elaborate prompting mattered less, and the focus shifted to integrating AI into care delivery and assessing whether outputs can be trusted.

Brownstein said current priorities include embedding tools in daily operations and building agents to manage a wide range of tasks. Rai said the position has broadened accordingly.

He now identifies more as a clinical AI engineer.

Between medicine and engineering

Rai studied business as an undergraduate and began coding in 2014, the year he entered medical school, as neural networks and image recognition drew wider interest. He continued building software during his training, creating a platform called Academius to help medical students track residency interviews and assemble rank lists.

He was drawn to software’s scale. Emergency medicine allows direct impact on one patient at a time, but software can reach many clinicians and many more patients.

A 2021–22 informatics fellowship made full-time technology work feel feasible. In 2022 he joined health care AI company Pieces, leading efforts to bring LLM-based medical summarization into clinical use.

That required stepping away from clinical practice, a difficult decision he made to concentrate on the technology. He has since reactivated his medical license and hopes to return to patient care in some capacity within a year.

At Boston Children’s, roughly half of his day is engineering work with developers and code, and the other half is spent with clinicians refining needs and use cases. The combination defines the role.

Uncovering “clinical doppelgangers”

One initiative, clinical doppelgangers, aims to help clinicians treating complex cases find similar patients within the hospital’s historical records. Guidelines are built from large populations, but at a tertiary pediatric center that manages rare and intricate conditions, an individual child may not align with published cohorts.

The developing system is intended to surface prior patients with relevant similarities, trace their clinical courses, and compare outcomes across interventions. It is not a substitute for randomized trials, but a supplementary evidence source when literature offers limited guidance.

Projects like this require more than skilled prompting. They demand fluency in the meaning of hospital data, insight into how clinicians will apply results, and awareness of how AI systems can fail.

Rai encountered these issues on another effort involving a clinical team and a development team deciding how much of a patient’s chart to provide an AI model tasked with identifying findings tied to a specific outcome.

Both groups initially favored more data, for different reasons. Developers assumed any field might help.

Clinicians assumed the model would ignore irrelevant details. Rai flagged the risks.

Clinically, abnormal values are not always pertinent to the question at hand. Technically, an LLM may not recognize irrelevance and might generate a plausible but unsupported rationale connecting a finding to the outcome.

He said that a dual perspective helps not just in translation across teams but in spotting when reasonable-sounding approaches rest on shaky assumptions.

After the prompt

In clinical settings, challenges around the prompt now overshadow polishing the prompt itself. The key concerns are whether an output aligns with underlying data, how to evaluate results, and whether the end user can recognize errors.

That means relying on clinicians’ experience. For a tool that drafts clinical notes, prospective users reviewed generated notes before deployment.

Someone who had managed a complex cardiac intensive care patient for weeks was far more likely to catch subtle inaccuracies than a later reviewer. Although AI use in health care is growing, some clinicians remain cautious.

Rai said skepticism is healthy and that the team presents the tool as generative AI that supports, rather than replaces, clinician judgment. Users tend to trust it more after they have seen its mistakes than after reassurances that it performs well.

An evolving career

Rai’s path illustrates how quickly AI roles evolve, so he hesitates to recommend mastering any single tool. For hands-on engineering tracks, foundational programming remains important, as does familiarity with machine learning and practical experience building and testing systems.

Clinicians interested in AI do not all need to become database architects or deep algorithm specialists. What he views as indispensable is domain expertise.

In medicine, that includes understanding care workflows, how electronic health record data is generated, what those data represent, and where processes break down. For a career that briefly carried one of AI’s trendiest titles, the lasting lesson is that value comes from more than obtaining an answer from a model.

It comes from knowing the context the model needs and whether the available context truly supports the answer. For readers interested in how technical careers adapt to emerging tools and expectations, related advice appears in How personal branding for engineers keeps you findable.

Although AI is reshaping clinical roles, broader questions about model reliability and safety continue to drive research, including work on provenance signals as a defense against deepfakes. Across domains, the common theme is that human expertise and judgment remain central, even as systems grow more capable.

Facebook
Twitter
LinkedIn
Pinterest
Pocket
WhatsApp