AI Cloud Architect

Automate medical coding with Step Functions and Amazon Bedrock AgentCore

AWSHow-to by Sachin Doshi, Andrei Maksimov and Rostislav MarkovAWS Architecture Blog

Learn how to combine deterministic orchestration with bounded agentic reasoning using AWS Step Functions and the Amazon Bedrock AgentCore harness. This medical coding workflow escalates cheapest-first: a safety block-list, then exact matching, then an AI agent only for terms that need judgment, keeping every routing decision auditable.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Step Functions runs a medical coding workflow that tries a block-list, then exact matching, then a Bedrock AgentCore agent only for ambiguous terms, with every routing decision recorded.

Who it is for

Architects building regulated AI workflows on AWS who need agent steps to stay bounded and auditable.

Key points

  • Agent is invoked only on a dictionary miss; the sample shows five of twelve cases resolved without the agent.
  • Routing uses agent-reported confidence, with a fixed 0.90 autocode gate in the workflow.
  • Sample uses Claude Sonnet 5 and Titan Text Embeddings V2; Anthropic models need a one-time usage form.
  • Sample is for demonstration only and uses licensed dictionaries (MedDRA, WHODrug) that need a subscription.

Timeline

  1. What it explainsAWS Step Functions adds 28 new service integrations, including Amazon Bedrock AgentCore · AWS · AnnouncementAlso published by What's New with AWS
  2. What it explainsAWS Step Functions adds AgentCore-powered agentic reasoning step · AWS · Announcement
  3. This postAutomate medical coding with Step Functions and Amazon Bedrock AgentCore

Go deeper