CCDM: omnichannel campaigns and a referral workflow for Clínica Ciudad del Mar

Scope: two systems in production for the same clinic. CCDM Omni sends campaigns over WhatsApp, email and SMS; CCDM Derivaciones runs referrals and medical orders through to cash reconciliation.

Sector
Healthcare
Role
CTO at Blanco Brand
My part
Technical direction, as CTO of Blanco Brand.
Period
CCDM Omni, since May 2026
Status
Both systems in production
Team
Eight authors on CCDM Derivaciones

System blueprint

System blueprint: CCDMCCDM Omni sends campaigns to Clínica Ciudad del Mar’s patients. The CCDM Omni API works with queues on BullMQ and Redis. Campaigns go out over WhatsApp, email and SMS. In CCDM Derivaciones, Excel spreadsheets are uploaded to the system. The workflow covers assignment and payer for referrals and medical orders. It has reminders and a WhatsApp inbox. The workflow includes cash reconciliation. Underneath, the foundation both systems share: NestJS, MongoDB and Cognito.CCDM Omni · campaigns01Patient campaigns02QueuesBullMQ and Redis03DeliveryWhatsApp, email and SMSCCDM Derivaciones · medical orders04Excel upload05Assignment and payer06Reminders and WhatsAppinbox07Cash reconciliationSystem blueprint: CCDMCCDM Omni sends campaigns to Clínica Ciudad del Mar’s patients. The CCDM Omni API works with queues on BullMQ and Redis. Campaigns go out over WhatsApp, email and SMS. In CCDM Derivaciones, Excel spreadsheets are uploaded to the system. The workflow covers assignment and payer for referrals and medical orders. It has reminders and a WhatsApp inbox. The workflow includes cash reconciliation. Underneath, the foundation both systems share: NestJS, MongoDB and Cognito.CCDM Omni · campaigns01Patient campaigns02QueuesBullMQ and Redis03DeliveryWhatsApp, email and SMSCCDM Derivaciones · medical orders04Excel upload05Assignment and payer06Reminders and WhatsApp inbox07Cash reconciliation

The flow, in text

  1. CCDM Omni sends campaigns to Clínica Ciudad del Mar’s patients.
  2. The CCDM Omni API works with queues on BullMQ and Redis.
  3. Campaigns go out over WhatsApp, email and SMS.
  4. In CCDM Derivaciones, Excel spreadsheets are uploaded to the system.
  5. The workflow covers assignment and payer for referrals and medical orders.
  6. It has reminders and a WhatsApp inbox.
  7. The workflow includes cash reconciliation. Underneath, the foundation both systems share: NestJS, MongoDB and Cognito.

Foundation both systems share: NestJS · MongoDB · Cognito · Diagram. Not live data.

Product in use

Product interface with demo dataCCDM Omni: messaging and campaign activity, with delivery and read rates per channel.
Product interface with demo dataCCDM Omni: the list of campaigns and their status.
Product interface with demo dataCCDM Derivaciones: the operational summary of referred patients.

Problem and constraints

Clínica Ciudad del Mar has two different tasks with its patients. One is sending them campaigns over several channels. The other is running the workflow for referrals and medical orders, including cash reconciliation.

Constraints

  • Campaigns go out on three channels: WhatsApp, email and SMS.
  • The referral workflow includes Excel upload and cash reconciliation.

Decisions and architecture

They are two separate systems, CCDM Omni and CCDM Derivaciones (referrals), built on the same foundation: NestJS, MongoDB and AWS Cognito.

CCDM Omni sends omnichannel campaigns to patients, over WhatsApp, email and SMS. Its API works with queues on BullMQ and Redis, and with Socket.IO. It integrates with Meta WhatsApp, Twilio, Microsoft Graph for email and SES for bulk sends.

CCDM Derivaciones runs the referral and medical-order workflow: assignment, payer and reminders. It has a WhatsApp inbox, Excel upload and cash reconciliation. It uses S3, Microsoft Graph, a Meta webhook and Socket.IO.

The CCDM Omni web app is React 19 with Vite 7, Tailwind CSS v4 and shadcn components, with tests on Vitest.

Results

Both systems are in production. CCDM Omni has been in development since May 2026.

  • 3channels for patient campaigns: WhatsApp, email and SMS.
  • 6functions in the referral workflow: assignment, payer, reminders, WhatsApp inbox, Excel upload and cash reconciliation.
  • 2systems for the same clinic: CCDM Omni and CCDM Derivaciones.

Limits

  • This case describes the scope of the system; it does not include measured results.
  • It does not publish campaign metrics.

Do you have a system that cannot be touched?

Tell me the problem

Want the full career history?

View the CV

Let’s talk. If you want to discuss AI, healthcare, fintech or research, propose a collaboration or invite me to give a talk, write to me.

  • Asturias, Spain
  • CET hours
  • Spanish native, English C1

Also on WhatsApp · GitHub