Flag a reading
POST/api/patient/biomarker-flags
Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.
Optional biomarker_id narrows the match when the name is ambiguous.
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 429
- 500
Success
Bad Request
Unauthorized (X-Api-Key missing, malformed, unknown or disabled)
Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)
Conflict
Too Many Requests (rate limit exceeded)
Internal Server Error