Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.52 KB

File metadata and controls

74 lines (50 loc) · 1.52 KB

FHIR Patients

A React application for browsing patient data from a FHIR R4 server.

Features

  • Patient list with pagination
  • Patient detail view (name, gender, birth date, addresses)
  • FHIR R4 API integration (using public HAPI FHIR server)

Prerequisites

  • Node.js 16+
  • npm 8+

Getting Started

  1. Install dependencies:
cd frontend
npm install
  1. Start the development server:
cd frontend
npm install
npm start
  1. Open http://localhost:3000 in your browser.

Available Scripts

npm start

Runs the app in development mode at http://localhost:3000.

npm test

Launches the test runner in interactive watch mode.

npm run build

Builds the app for production to the build folder.

Project Structure

src/
├── api/
│   ├── fhirClient.ts    # FHIR API client with error handling
│   └── patients.ts      # Patient-specific API functions
├── pages/
│   ├── PatientListPage.tsx    # Patient list with pagination
│   └── PatientDetailPage.tsx  # Patient detail view
├── types/
│   └── fhir.ts          # FHIR type definitions
├── utils/
│   └── patient.ts       # Patient utility functions
├── App.tsx              # Main app with routing
├── App.css              # Application styles
└── index.tsx            # Entry point

API

This app uses the public HAPI FHIR R4 Server as a data source.

License

MIT