Skip to content

Migrate Frontend to @aehrc/smart-form-renderer v1.0.0 and Validate Related Features #322

@lamurian

Description

@lamurian

User Story

As a frontend engineer,
I want to upgrade the smart form renderer to version 1.0.0 and ensure all dependent behaviors continue working,
so that the frontend remains compatible with the latest supported library version and leverages new improvements without breaking existing workflows.

Description

The frontend is currently using @aehrc/smart-form-renderer version 0.45.1, which must be migrated to 1.0.0. This version upgrade includes several breaking changes, requiring code adjustments following the official migration guide. After migration, critical functionalities that depend on the renderer must be thoroughly tested to ensure no regressions.

Proposed Flow

  • Upgrade dependency from 0.45.1 to 1.0.0 in package.json
  • Follow migration steps outlined in the official guide
  • Refactor code to comply with breaking changes in v1.0.0
  • Validate and fix rendering logic for Questionnaire
  • Ensure proper submission flow for QuestionnaireResponse
  • Confirm Konsulin webhook calls still trigger correctly after form submission
  • Verify Observation extraction is still functional post-migration
  • Conduct full regression testing for all questionnaire-related workflows
  • Add/update documentation and notes related to new behaviors and API changes

Reference

Notes:

  • Watch for changes in props, event handlers, output formats, and FHIR resource mapping.
  • Ensure stable integration with backend expectations (FHIR structure, webhook flow).
  • Implement fallback or log errors for any breaking changes discovered during QA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions