Executive Summary
A municipal inspection technology provider needed a field-ready mobile workflow for food establishment inspections used by local public health teams. The application had to support structured food-code findings, repeat citations, re-inspections, inspection scoring, offline iPhone/iPad execution, and professional report generation from a Resco Mobile CRM questionnaire.
H1AI helped engineer and troubleshoot the mobile inspection experience across Woodford configuration, Resco Questionnaire Builder, JSBridge HTML/JavaScript, synchronization behavior, and field logs. The work turned a complex regulatory inspection form into a more reliable mobile process: inspectors could capture violations in repeatable sections, calculate scoring totals, identify repeat citations from prior inspections, create structured violation records, and generate reports after calculations had been written back to the questionnaire.
Customer Profile
The customer is a municipal inspection software provider supporting food-safety inspection workflows for local government users. Its field users work in mobile environments where connectivity can vary and where inspection data must remain reliable across sync, save, re-inspection, and reporting steps. The solution supports inspection types such as routine inspections, complaint-driven inspections, re-score visits, foodborne illness investigations, pre-operational inspections, and re-inspections.
Business Challenge
Food establishment inspections are operationally demanding. Inspectors need fast data entry in the field, but the underlying workflow must preserve regulatory detail: marking items in or out of compliance, selecting food-code violations, capturing observations, applying repeat-citation rules, calculating point totals, recording re-inspection due dates, and producing a clear inspection report.
The customer’s mobile workflow also had several platform-specific challenges. Repeatable questionnaire groups had to behave consistently on iOS. Calculated totals needed to be saved before reports were generated. Follow-up inspections needed to protect original cited observations while allowing new or corrected work. Food-code lookup data had to be available on the device for offline use. Logs showed JavaScript rule errors tied to questionnaire logic, and one reported data-loss scenario lacked the correct failed-session log, making disciplined evidence review essential.
Solution Delivered
H1AI worked through the system at the level where business rules, mobile UX, and Resco platform mechanics meet. The delivered solution included a JSBridge controller for the food inspection questionnaire, Woodford and questionnaire configuration review, and targeted rule fixes based on field logs.
Key capabilities included:
- A violation-points totaler that scans repeatable food-code sections, reads priority categories, and calculates points for priority, priority foundation, and core findings.
- Per-violation repeat handling so the 2x repeat multiplier applies to the specific cited violation rather than incorrectly applying to an entire item group.
- Automatic creation of structured food-code violation records when an inspection is finalized, with deduplication and links back to the inspection and establishment.
- Repeat-citation detection that checks prior routine inspection history and flags matching food codes in the current inspection.
- Delete and re-inspection protections that prevent accidental removal of observations cited in the original inspection.
- A calculate-save-report pipeline so report generation waits for scoring updates and other calculated fields to be persisted.
- A closing-statement rule fix that guards lookup and date calculations so they do not fire on every unrelated change or dereference missing data.
Technology Stack
The project used Resco Mobile CRM, Woodford, Resco Questionnaire Builder, Resco mobile reports, JSBridge HTML/JavaScript, FetchXML-style queries, Dataverse/Dynamics-style mobile entities, iOS mobile devices, offline sync filters, and log-driven troubleshooting.
Results & Benefits
The engagement produced a more resilient mobile inspection workflow for public health field operations. Source logs confirmed normal synchronization sessions, successful inspection finalization, and creation of violation records in the reviewed healthy session. Draft correspondence also documents that launch-day testing went well and that the repeat-scoring issue was isolated and corrected for mixed repeat/non-repeat food-code scenarios.
The business value was reliability and field trust. Inspectors need confidence that calculations, repeat citations, report output, and save behavior reflect the inspection they just completed. H1AI helped reduce avoidable rule popups, improve scoring correctness, protect re-inspection data, and make report generation more dependable by sequencing calculation, save, and report actions.
H1AI Perspective
This case demonstrates H1AI’s ability to stabilize complex mobile field workflows without treating the form as a black box. The work required reading Woodford artifacts, questionnaire XML, JavaScript controllers, email context, and device logs together, then translating that evidence into practical fixes. For inspection-heavy organizations, that combination of business-process understanding and low-level mobile platform engineering is what turns a fragile form into a dependable field application.