RecetasMedicas: End-to-End Prescription Platform for Private Clinics

From patient intake to a signed e-prescription in Spain's national registry — fully automated, in three languages.

Next.js 15TypeScriptPostgreSQL + PrismaStripe IdentityREMPe SOAP IntegrationWebDoc EHREmbeddable SDK
RecetasMedicas patient-facing homepage

Project Overview

Private clinics in Spain had no connected digital path from consultation to prescription — patient intake on paper, manual REMPe sessions, and billing reconciled across disconnected systems.

We built a Next.js monorepo connecting a patient-facing app, an embeddable clinic SDK, and an admin panel to four external systems through one automated post-payment pipeline.

Integrations
Stripe, WebDoc, REMPe, SMTP
Languages
Spanish, English, Swedish
Pipeline steps
7+ automated post-payment
Environments
2, fully isolated

How It Works

A patient fills a schema-driven form, verifies their identity with a live biometric scan via Stripe Identity, and pays through Stripe. On success, an orchestration pipeline pushes a patient record and clinical document to WebDoc EHR, opens an authenticated REMPe session using the verified identity data, and retrieves the signed prescription PDF — delivered to the patient automatically.

  • Embeddable SDK — any clinic site integrates with one script tag
  • Stripe Identity biometric verification with evidence capture
  • REMPe SOAP integration for Spain's e-prescription registry
  • Automated WebDoc EHR record, booking, and invoice creation

Screens

Patient portal dashboard
Patients track orders, documents, and prescription status
Clinic admin panel showing orders and WebDoc sync status
Admin orchestration panel — orders, WebDoc sync, and operations

Outcome

RecetasMedicas replaced a multi-step manual process with a real-time digital workflow. Staff no longer re-enter patient data or manually initiate REMPe sessions — the platform handles it automatically from the moment a patient submits a form.

Highlights
  • Eliminated manual data re-entry across WebDoc and REMPe
  • Passport-level biometric identity on every prescription
  • Real-time prescription delivery within minutes of payment
  • Multi-clinic, multi-language deployment via one embeddable SDK

Tech Highlights

Next.js 15 (App Router)TypeScript throughoutPostgreSQL + Prisma ORMStripe Payments + IdentityREMPe (SOAP/WSDL)WebDoc / Atlan EHR (REST/OAuth)

Overview

4
External Integrations
3
Languages Supported
Read the Full Case Study

Building a healthcare platform or regulated integration?

Let's discuss the best stack for your business