When Boston Children’s Hospital posted a job listing for a prompt engineer in August 2023, emergency physician Dinesh Rai applied despite not expecting to get the position, bringing a self-taught coding background and a clinical informatics fellowship to what was then an unusual hospital role, Aidailypost reported.
Rai originally studied business as an undergraduate, earning a bachelor’s degree in supply-chain management and marketing sciences from Rutgers Business School, before earning his Doctor of Medicine from the Albert Einstein College of Medicine.
Three years later, Rai still works at the hospital, but advancements in AI models have made elaborate prompting less important, shifting his daily focus toward building artificial intelligence into actual health care systems and evaluating whether its answers can be trusted.
John Brownstein, chief innovation officer at Boston Children’s, said that early on the hospital needed internal expertise about how to begin using AI. “Knowing how to prompt AI properly was going to be the job function of the future,” Brownstein said.
Now, according to Brownstein, the questions they focus on have shifted: “How do you embed these tools in your day-to-day operations? How do you build agents to manage literally everything that you do?”

Reflecting on his expanded responsibilities, Rai said, “I’m more like a clinical AI engineer now,” (IEEE Spectrum) dividing his time equally between engineering tasks with developers and collaborating with clinicians to determine their actual needs, Urgent reported. Among his projects is a system called clinical doppelgangers, designed to help physicians treating complex or rare diseases find similar historical cases in hospital data.
Before joining Boston Children’s, Rai worked at the healthcare AI company Pieces, where he led work to bring large language model-based medical summarization into clinical use. “Stepping away was definitely a hard decision,” Rai said (IEEE Spectrum) of leaving patient care at the time, though he has since reactivated his medical license and hopes to return to clinical practice in some capacity within the next year.
Dinesh Rai began teaching himself to code in 2014, coinciding with the year he entered medical school as neural networks and image recognition gained wider attention. Throughout his medical training, he continued building software, including a platform named Academius that allowed students to track residency interviews and organize their rank lists.
His interest in full-time software development solidified during a 2021-2022 clinical informatics fellowship.
Dinesh Rai maintains that some skepticism toward artificial intelligence is healthy and notes that teams do not attempt to talk people out of having reservations.
Reflecting on the rapid evolution of his field, Rai remains cautious about advising people interested in similar careers to master any specific tool. By working at the intersection of medicine and engineering, his goal is to develop tools capable of making a positive impact on patient care.
“People trust it more when they’ve seen its mistakes than when we just tell them it’s good,” Rai said.