Skip to main content

Overview

Healthcare patient portal integrating with Electronic Medical Records (EMR) API for appointments, prescriptions, and medical records. What it does:
  • Schedule appointments
  • View medical records
  • Request prescription refills
  • Access test results
  • Message healthcare providers
APIs used: EMR/FHIR API (external) + Lua Data API

Complete Implementation

src/index.ts

This demo uses LuaAgent with preprocessors for HIPAA consent validation and postprocessors for medical disclaimers.

src/tools/HealthcareTools.ts

Environment Setup

Security & Compliance

HIPAA Compliance RequiredThis example shows the technical integration. For production:
  • Implement proper authentication (OAuth 2.0)
  • Encrypt all PHI (Protected Health Information)
  • Maintain audit logs
  • Use secure connections only
  • Follow HIPAA guidelines

Key Features

EMR Integration

FHIR-compliant API

Privacy First

HIPAA considerations

Vector Search

Health info search

Multi-System

EMR + Pharmacy APIs