Biomarker Evaluation
The in-office (Core Assessment) evaluation: state, saving values, completing, correcting a completed attempt, retake. 403 for clinics without in-office assessments.
Edit a completed evaluation
Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.
Complete the evaluation
Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.
Start the evaluation again
Starts over: discards the evaluation in progress so the next save begins a new one. Completed evaluations and the readings they produced are kept. Safe to repeat.
Get evaluation state
Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. Same shape as skin-analysis /state. The serialized `form` object holds every captured field across the multi-step flow.
Save evaluation progress
Saves progress on the evaluation in progress, creating it on the first call. `form` is merged into the saved form, so a save can be sent on every change.