Introduction

When Boston Children's Hospital posted an opening for a prompt engineer in 2023, Dinesh Rai applied almost on a whim. He had spent years training as an emergency physician, but he had also spent years teaching himself to code. The hospital hired him, and what began as a narrow experiment in writing instructions for large language models has since grown into something much broader. Today, Rai holds a title that barely existed when he started: clinical AI engineer. His job sits at the intersection of patient care and software development, and it offers a window into how artificial intelligence is actually being adopted inside one of the nation's leading pediatric hospitals.

What Happened

Rai's path to the hospital was unconventional. He earned a business degree from Rutgers before teaching himself programming in 2014, the same year he began medical school at Albert Einstein College of Medicine. While still a student, he built a software platform to help classmates manage residency applications. After a clinical informatics fellowship and a stint at a healthcare AI company called Pieces, he joined Boston Children's in August 2023.

At first, his responsibilities centered on prompt engineering—crafting the precise wording and context that guide generative AI models toward useful answers. Hospital leaders initially expected prompting to become a dedicated career track. But as models improved, the need for elaborate prompt crafting faded. Rai's role expanded instead. He now divides his time roughly evenly between writing code with developers and consulting with clinicians about their real-world needs. He has reactivated his medical license and hopes to return to some clinical work within the next year, though his primary focus remains building and integrating AI tools.

One of his team's projects, known internally as clinical doppelgangers, helps doctors search the hospital's historical records for patients with similar presentations. Because Boston Children's treats many rare and complex conditions, published guidelines do not always offer a clean match for an individual child. The system surfaces comparable past cases and outcomes, giving physicians another reference point without replacing clinical trials or a doctor's judgment.

Why This Matters

The shift in Rai's job description mirrors a larger change in healthcare AI. Early excitement focused on getting the perfect prompt out of a model. Now the harder challenge is embedding AI into daily workflows and verifying that its outputs can be trusted. Rai has seen this tension up close. While working with developers and clinicians on a tool to extract relevant findings from medical records, he noticed both sides made risky assumptions. Developers wanted to feed the model as much data as possible, while clinicians assumed the model would ignore anything irrelevant. Rai pushed back, noting that an abnormal lab result may have nothing to do with the question at hand, and that a language model can confidently invent a connection where none exists.

He also emphasizes that clinicians should remain skeptical. For a note-drafting tool his team built, frontline doctors reviewed AI-generated notes before they were finalized. Someone who had cared for a patient for weeks in the cardiac intensive care unit was far more likely to catch a subtle error than someone skimming the chart later. Rai's view is that trust grows when users see where the technology fails, not when they are simply told it works.

Key Takeaways

  • Boston Children's Hospital hired Dinesh Rai as a prompt engineer in 2023, but his role has evolved into a broader clinical AI engineering position.
  • Rai combines emergency medicine experience, self-taught programming skills, and clinical informatics training to bridge the gap between doctors and software teams.
  • Better AI models have reduced the need for expert prompting; the focus has shifted to integrating tools into hospital workflows and validating their outputs.
  • Projects such as clinical doppelgangers aim to help physicians find comparable historical cases for rare or complex patient presentations.
  • Rai argues that domain knowledge—understanding how healthcare data is created and where care breaks down—is more durable than mastery of any single AI tool.

Conclusion

Rai's story shows that AI jobs in medicine can change quickly, and that the most valuable professionals may be those who understand both sides of the stethoscope and the server. He advises aspiring clinical AI workers to prioritize fundamental programming and a deep grasp of healthcare operations over chasing the latest model or prompt trick. As hospitals continue to adopt generative AI, roles like his will likely become more common—and more essential to making sure the technology serves patients rather than distracting from them.