Product EngineeringFeaturesLab FormsFrontendlivehealth-frontend

History & Viewing

Viewing consent history, AOE values, and additional patient info values in livehealth-frontend.

👤 Ritu Kataria📅 Updated: Mar 13, 2026🏷️ feature

History & Viewing Responses

All history views share a common structure built on a reusable AG Grid component (FormValuesGrid) and a shared export header.


Shared Infrastructure

Components:

  • ValuesExportHeader — date picker (max 1-month range), Excel export button, branch filter
  • FormValuesGrid — AG Grid with 30 columns for viewing submitted form values

API Call: fetchLabFormValues(formType, from, to)GET api-v3/account/{formType}/values?from=...&to=...

Branch Filtering: filterLabFormDataByBranch() — supports dot-path keys and array branch IDs for multi-branch labs.


FormValuesGrid Column Definitions

ColumnVisibility
Patient ID, Full Name, DOB, GenderAlways visible
Bill IDAlways visible
Test ID, Test Name, Test Code, Report IDHidden for bill/patient/store/promotion process types
Promotion ID, Promotion NameOnly visible when processType === "promotion"
Process ID, Name, Code, TypeAlways visible
Sub Process ID, Name, CodeAlways visible
Question, Question Code, Field TypeAlways visible
Answer, Iteration, Form StatusAlways visible
Filled TimeAlways visible
Edit AOEOnly visible if allow_aoe_edit feature flag AND formType === "aoe"

Component: ConsentHistoryNew (src/components/Registration/Components/LabFormValues/Consent/ConsentHistoryNew.tsx)

Two sub-tabs:

  • Consent StatusConsentHistory component (separate date range stored in GENERIC.historyDateRange)
  • Form ValuesConsentValues component with 3 sub-tabs:
    • Patient Consents → FormValuesGrid(consent, patient)
    • Bill Consents → FormValuesGrid(consent, bill)
    • Test Consents → FormValuesGrid(consent, test)

8.2 AOE Values

Component: AOEValues (src/components/Registration/Components/LabFormValues/AOE/AOEValues.tsx)

Tabs rendered based on feature flags:

TabComponentCondition
Bill AOEFormValuesGrid(aoe, bill)Always
Test AOEFormValuesGrid(aoe, test)Always
Promotion AOEFormValuesGrid(aoe, promotion)Only if crm_access flag
Store AOEFormValuesGrid(aoe, store)Only if crm_access flag

Each grid includes an Edit AOE button column when the allow_aoe_edit feature flag is enabled. Clicking it opens the AOEDetailsModal (see Editing Responses).


8.3 Additional Patient Info Values

Component: PatientInfoValues (src/components/Registration/Components/LabFormValues/PatientInfo/PatientInfoValues.tsx)

Renders a single grid: FormValuesGrid(additional_patient_info, patient)

Because additional_patient_info is patient-scoped (not bill-scoped), the grid does not show Bill ID or Test ID columns.

On this page