fix(consult): pass birth-time accuracy instead of treating every chart as unrectified
Hospital records and adopted rectification times were still fed to the model as not_auto_rectified because the chart request omitted declared_accuracy/time_source and mastra hardcoded the boundary. Map profile truth into the engine request, keep rectified for accepted/confirmed active times only, and leave window/general guards unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1181,6 +1181,7 @@ export async function POST(request: Request) {
|
||||
plan: prepared.preReserveResult,
|
||||
}),
|
||||
consultationMode,
|
||||
{ birthTimeSource: prepared.serverChart.truth.birthTimeSource },
|
||||
);
|
||||
const workflowReceipt = consultationWorkflowReceipt(workflowContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user