Editing AOE Responses
Flow for viewing and editing submitted AOE responses in livehealth-frontend.
👤 Ritu Kataria📅 Updated: Mar 13, 2026🏷️ feature
Editing AOE Responses
AOE values can be corrected after submission when the allow_aoe_edit feature flag is enabled. The flow involves a read-only view modal that transitions to an editable form on demand.
Entry Point
The Edit button appears in the FormValuesGrid AOE values grid (visible only when allow_aoe_edit is enabled for AOE form types). Clicking it opens AOEDetailsModal.
Edit Flow
Update Payload Structure
Only changed values are sent (diff-based payload):
interface UpdateAOESavePayload {
values: Array<{
id?: number; // Existing value record ID
process_id?: number;
question_id?: number;
report_id?: number;
value: string; // New answer value
}>;
comments?: string; // Reason for edit (required by save dialog)
}Files
| File | Description |
|---|---|
src/components/Registration/Components/LabFormValues/AOEDetailsModal.tsx | Outer modal shell — fetches bill AOE details, shows read-only view |
src/components/reusable/Modals/BillAOE/EditBillAOEResponses/index.tsx | Editable form modal with diff payload + save-with-reason |
src/services/LabForms/labForms.ts | getBillAOEDetails, updateBillAOEValues service functions |