How medplum/foomedical works
Foo Medical is a patient-facing medical-practice sample app backed by Medplum, with patient and health data represented as FHIR resources. The principal workflow is a patient signing in, navigating routed care features, and viewing or updating records, questionnaires, care plans, or messages. Scheduling and SMART Health Links are separate capabilities. The graph follows the visible app/router structure and sampled page behavior; several major features are documented or routed but their implementations were not sampled, so their internal relationships are not inferred.
Main entry points: Router.tsx Page router · App.tsx App shell · Measurement.tsx Measurements · CheckInPage.tsx Check-in
Components 25
App and access
- App shell
src/App.tsx - Page router
src/Router.tsx - Sign in
src/pages/SignInPage.tsx - Registration
src/pages/RegisterPage.tsx - Patient home
src/pages/HomePage.tsx - Account settings
src/pages/account
Health records
- Health record
src/pages/health-record - Measurements
src/pages/health-record/Measurement.tsx - Measurement definitions
src/pages/health-record/Measurement.data.ts - Measurement chart
src/components/LineChart.tsx - Observation detail
src/pages/ObservationPage.tsx
Care workflows
- Care plan
src/pages/care-plan - Action items
src/pages/care-plan/ActionItems.tsx - Scheduling
src/pages/GetCarePage.tsx - Check-in
src/pages/CheckInPage.tsx - Check-in content
src/pages/CheckInPage.data.ts - Save check-in
src/utils/save-check-in.ts - Screening questionnaire
src/pages/ScreeningQuestionnairePage.tsx - Patient intake
src/pages/PatientIntakeQuestionnairePage.tsx - Questionnaire
src/pages/QuestionnairePage.tsx
Patient engagement
- Messaging
src/pages/MessagesPage.tsx - Message search
src/utils/communication-search.ts - SMART Health Links
src/pages/SmartHealthLinksPage.tsx
Other components
- Patient
- Medplum service
Connections 26
- Patient → App shell: opens
src/App.tsx - App shell → Page router: renders
src/App.tsx - App shell → Sign in: routes unauthenticated
src/App.tsx - App shell → Registration: routes unauthenticated
src/App.tsx - Page router → Patient home: routes
src/Router.tsx - Page router → Account settings: routes
src/Router.tsx - Page router → Health record: routes
src/Router.tsx - Page router → Measurements: routes
src/Router.tsx - Page router → Care plan: routes
src/Router.tsx - Page router → Action items: routes
src/Router.tsx - Page router → Scheduling: routes
src/Router.tsx - Page router → Check-in: routes
src/Router.tsx - Page router → Screening questionnaire: routes
src/Router.tsx - Page router → Patient intake: routes
src/Router.tsx - Page router → Questionnaire: routes
src/Router.tsx - Page router → Messaging: routes
src/Router.tsx - Page router → SMART Health Links: routes
src/Router.tsx - Page router → Observation detail: routes
src/Router.tsx - Measurements → Medplum service: searches and creates observations
src/pages/health-record/Measurement.tsx - Measurements → Measurement definitions: reads definitions
src/pages/health-record/Measurement.tsx - Measurements → Measurement chart: renders
src/pages/health-record/Measurement.tsx - Action items → Medplum service: searches care plans
src/pages/care-plan/ActionItems.tsx - Check-in → Check-in content: uses questionnaire content
src/pages/CheckInPage.tsx - Check-in → Save check-in: saves through
src/pages/CheckInPage.tsx - Messaging → Message search: normalizes search
src/pages/MessagesPage.tsx - Medplum service → Patient: hosts FHIR records