CareBridge AI: Helping Families Notice Change After a Hospital Stay
A care-coordination prototype built with Strands Agents on Amazon Bedrock. A deterministic policy sets alert levels, the model only writes the wording, and a person confirms every extracted fact. All data is synthetic.
All patient data is synthetic. CareBridge AI is a care-coordination prototype, not a medical device, and it does not diagnose.
The use case
When an older person comes home from hospital, the information that matters is scattered. The discharge summary is a PDF or a photo. A relative sees the patient daily, and a doctor sees them for ten minutes a month. Three things go wrong:
- The paperwork is hard to read. Families can't tell what a medication line or follow-up date means, or where in the document it comes from.
- Gradual decline goes unnoticed. Eating less, more confusion or a quieter mood are mentioned late, and nobody recorded what "usual" was.
- Sharing is all or nothing. A patient can't let a caregiver log daily observations without exposing everything, or take that permission back.
CareBridge AI covers two workflows end to end.
Daily observations and change detection
- The patient records a baseline and grants a caregiver named permissions.
- The caregiver logs a short daily check-in.
- An agent compares recent check-ins with the baseline and writes a neutral summary that cites the check-ins behind it.
- With no baseline, or fewer than three days of data, it says "insufficient information" instead of guessing.
- A clinician the patient authorised confirms, corrects, rejects or escalates.
Documents you can check
- A discharge summary is read with pypdf or Amazon Textract.
- An agent proposes fields, each with its exact source text.
- Nothing is verified until a person confirms it.
- "Explain this document" gives a plain-language version with sources.
- A recovery plan can be drafted from a verified document and stays a draft until approved.
AWS architecture
[Insert architecture diagram]
Request flow:
- The browser loads the app from CloudFront and S3.
- API calls go through CloudFront to the instance. The security group allows only CloudFront, and a secret header is checked.
- FastAPI authenticates the user, checks consent for that patient, then does the work.
- Agents run in the background and call Bedrock. Documents go to S3 and Textract.
Using Strands Agents
- Strands Agents SDK with Claude on Bedrock, using
Agent,@tool,BedrockModeland structured output.
- Four specialist agents: Observation, Document, Explain and Recovery. Each has a narrow prompt, read-only tools and a Pydantic output schema that is checked again on the server.
- Agents as tools: an orchestrator exposes the specialists as tools. It is implemented but not yet on the request path. Endpoints currently dispatch to the specialist directly after an authorised request.
- Tools never receive an id from the model. Each run is bound server-side to one actor and one patient. A model fooled by document text still can't ask for another patient's data.
- The agent proposes, policy decides. A versioned deterministic policy sets the alert level. The model writes only the wording. Red-flag rules, such as a reported fall, produce fixed guidance text without waiting for a model.
- Every run is recorded: agent, model id, tools called, validation result and failure category.
Safety design
- No diagnosis, no medication advice, no autonomously generated treatment plan.
- Insufficient data ends the run before any model call.
- AI output is labelled as AI-assisted and never auto-verified.
- If Bedrock is unavailable, the run is marked
unavailable. There is no fabricated fallback.
- Document text is treated as untrusted. Source quotes are checked against the document.
- Authorization is server-side and deny by default. Consent is scoped, and revocation takes effect on the next request.
- The alert thresholds are a draft and have not been clinically reviewed.
What we learned
- Putting the decision in code and only the wording in the model made the system easier to test and trust.
- Binding the patient to the run removes a whole class of authorization mistakes.
- "Insufficient information" and "unavailable" must be designed as first-class screens.
- Fixed-wording safety messages are less impressive than generated ones, and more defensible.
.
Try it
Open https://dekxhgmhypqwx.cloudfront.net , watch the video at /demo, or read the code at https://github.com/DHILIP-S-E/caremed .
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article