Normalized form_answers.context_sources element. At-rest variants observed in prod: the current 5-key {document_id, document_type, name, page, quote} shape, a 3-key {name, page, quote} shape, camelCase {documentId, documentType} rows, doc_id / patient_chart_id id-key variants, 4-key rows missing page, and page as a string on older rows. All normalize here, null-filling missing keys.
form_answers.context_sources
{document_id, document_type, name, page, quote}
{name, page, quote}
{documentId, documentType}
doc_id
patient_chart_id
page
pdf or patient_evaluation in prod; kept open for tolerance.
pdf
patient_evaluation
Normalized
form_answers.context_sourceselement. At-rest variants observed in prod: the current 5-key{document_id, document_type, name, page, quote}shape, a 3-key{name, page, quote}shape, camelCase{documentId, documentType}rows,doc_id/patient_chart_idid-key variants, 4-key rows missingpage, andpageas a string on older rows. All normalize here, null-filling missing keys.