Architecture
System Overview
The following diagram illustrates the complete architecture of Form Lab and how its components interact:
Component Repositories
Form Lab integrates several open-source projects:
- Smart Forms - SDC Forms renderer and manager
- SMART Launcher - SMART on FHIR application launcher
- HAPI FHIR Server - Open source FHIR server implementation
Component Details
HAPI FHIR Server
- Serves as the Clinical Data Repository (CDR)
- Stores patient data and clinical information
- Connected to PostgreSQL for persistence
Smart Launcher
- Provides SMART on FHIR launch capabilities
- Creates trust context between apps and data store
- Acts as a proxy to add SMART capabilities
Smart Forms
- SDC Forms renderer and manager
- Connects to both FHIR servers (CDR and Forms)
- Handles form layouts and collected data
Data Flow
- Initial setup loads sample data into HAPI FHIR
- Smart Launcher establishes connection context
- Smart Forms retrieves and submits data through FHIR APIs
- All services communicate via RESTful FHIR interfaces