Data problem
Medplum::Labs::UpstreamError
Health Gorilla practitioner sync failed: Medplum Practitioner Practitioner/<secret> missing NPI
In one line
A single lab launch failed because the acting practitioner's Medplum profile has no NPI, which the Health Gorilla sync bot needs.
Checked against the code
What happened
- Launching a lab order runs sync_practitioner!, which calls the Medplum sync bot.
- The bot replied that the Practitioner is missing an NPI, so the sync failed.
- The code deliberately raised UpstreamError and created a BotErrorTask telling staff to fix the NPI.
- There was 1 event for 1 user in 6 days. That points to one practitioner with bad data, not a code regression.
What to do next
- Check Open the Practitioner in Medplum (the id is redacted in the alert, so get it from Bugsnag metadata or the BotErrorTask). Add the NPI and full name, then have the user retry the lab order.
Queries are shown, never run. Check them before using them on production.
Ask a follow-up
Continues the same session, so it still remembers the error and the code it read.
Analysed 1 h ago · claude-sonnet-5-5 · $0.02