Variable chartClassificationSchemaConst chartClassificationSchema : ZodObject < { authoredAt : ZodNullable < ZodString > ; dateOfService : ZodNullable < ZodString > ; summary : ZodString ; tags : ZodArray < ZodObject < { rationale : ZodString ; tag : ZodEnum < { admission : "admission" ; alcohol_withdrawal_assessment : "alcohol_withdrawal_assessment" ; appointment : "appointment" ; asam_assessment : "asam_assessment" ; benzodiazepine_withdrawal_assessment : "benzodiazepine_withdrawal_assessment" ; biopsychosocial : "biopsychosocial" ; case_management_note : "case_management_note" ; clinical_orders : "clinical_orders" ; consent_form : "consent_form" ; continuing_care_plan : "continuing_care_plan" ; diagnosis : "diagnosis" ; discharge_instructions : "discharge_instructions" ; discharge_summary : "discharge_summary" ; family_session_note : "family_session_note" ; glucose_log : "glucose_log" ; group_note : "group_note" ; history_and_physical : "history_and_physical" ; individual_therapy_note : "individual_therapy_note" ; insurance : "insurance" ; lab_result : "lab_result" ; level_of_care_determination : "level_of_care_determination" ; medication_administration_record : "medication_administration_record" ; medication_reconciliation : "medication_reconciliation" ; nursing_intake : "nursing_intake" ; opioid_withdrawal_assessment : "opioid_withdrawal_assessment" ; other : "other" ; program_history : "program_history" ; progress_note : "progress_note" ; psychiatric_evaluation : "psychiatric_evaluation" ; restraint_seclusion : "restraint_seclusion" ; safety_plan : "safety_plan" ; screening_instrument : "screening_instrument" ; transfer_note : "transfer_note" ; treatment_plan : "treatment_plan" ; utilization_review : "utilization_review" ; vital_signs : "vital_signs" ; } , > ; } , $strip , > , > ; } , $strict , > = ...
Defined in ai-agents/src/runners/chart-preprocessing/classifyAndSummarizeChart.prompt.ts:39
The classifier does not report signatures. They come from
extractEmrSignatures, which reads the structured signature field on the sixExternalDocumentTypes that have one, and.strict()here rejects asignatureskey rather than silently accepting one if the prompt ever drifts back.