From 9fa37954db814be214f8ab6b86fd39282d133b7b Mon Sep 17 00:00:00 2001 From: Ram Krishna Yadav Date: Thu, 23 Oct 2025 16:00:47 +0545 Subject: [PATCH] feat: Add discharge summary form template (#554) - Implement template selection system in new form modal - Add comprehensive discharge summary template with medical sections - Create reusable form template utilities - Update TypeScript and webpack config for template support This allows users to quickly create discharge summary forms from a predefined template instead of building from scratch. Fixes #554 --- .../dashboard/dashboard.component.tsx | 13 + .../interactive-builder.component.tsx | 20 +- .../modals/new-form/new-form.modal.tsx | 75 ++- src/templates/discharge-summary-template.json | 451 ++++++++++++++++++ src/utils/form-templates.ts | 51 ++ tsconfig.json | 1 + webpack.config.js | 1 + 7 files changed, 598 insertions(+), 14 deletions(-) create mode 100644 src/templates/discharge-summary-template.json create mode 100644 src/utils/form-templates.ts diff --git a/src/components/dashboard/dashboard.component.tsx b/src/components/dashboard/dashboard.component.tsx index ad23d9425..465203141 100644 --- a/src/components/dashboard/dashboard.component.tsx +++ b/src/components/dashboard/dashboard.component.tsx @@ -336,6 +336,19 @@ function FormsList({ forms, isValidating, mutate, t }: FormsListProps) { onChange={handleSearch} placeholder={t('searchThisList', 'Search this list')} /> +