Medical Forms Management System

A comprehensive MERN-based application for managing medical forms with authentication.

Features

  • Authentication: LastLogin integration with Google OAuth
  • Form Categories:
    • CX INSTRUMENTAL (cx transforaminal, cx estenose, cx estenose elliquence)
    • CX TOMSHIDI
    • CX DE APOIO (cx apoio cervical, cx apoio crânio, cx apoio lombar)
    • EQUIPAMENTO
    • ARMÁRIO
    • ÓTICA (transforaminal, interlaminar, estenose)
    • PEÇA DE MÃO
  • Shared Components: Fixed header and signature areas across all forms
  • API Routes: RESTful endpoints for form data management

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema
│   │   └── queries.ts       # Database operations
│   ├── routes/
│   │   ├── auth.ts         # Authentication routes
│   │   ├── forms.ts        # Form CRUD operations
│   │   └── static.ts       # Static file serving
│   └── index.ts            # Main server entry point
├── frontend/
│   ├── components/
│   │   ├── App.tsx         # Main application
│   │   ├── FormHeader.tsx  # Shared form header
│   │   ├── FormSignature.tsx # Shared signature area
│   │   ├── FormSelector.tsx # Form type selector
│   │   └── forms/          # Individual form components
│   ├── index.html          # Main HTML template
│   └── index.tsx           # Frontend entry point
└── shared/
    ├── types.ts            # Shared TypeScript types
    └── utils.ts            # Shared utilities

Getting Started

  1. Set up environment variables for authentication
  2. Run the backend server
  3. Access the application through the web interface

Authentication

Uses LastLogin service for Google OAuth authentication. Users must be logged in to access forms.