Platform
Domain Examples
Pharmacy

Pharmacy

The first production domain of PBCP — the Pharmacy platform uses PBCP as its Business Context foundation for pharmacies and clinics.

Business problems solved

ProblemHow PBCP solves it
No way to know if a patient is returningCustomer Story → see visit frequency
No visibility into which medications sell bestProduct Story → view top SKUs from Business Pulse
Promotions reach the wrong audienceIntelligence → segment customers by behavior
No way to know if a patient is continuing or has stopped their medicationChurn signal → alert before the patient disappears

Story types

Customer Story

Who is this patient? How often do they visit? What do they buy?

Order Story

What does this order contain? How was it paid?

Product Story

How well does this medication sell? Who buys it?

Prescription Story

Was this prescription fully dispensed? Is there a refill?

Key events

EventOccurs when
customer.registeredA new patient registers
customer.visitedA patient visits the store
product.searchedA medication name is searched
product.viewedMedication details are viewed
cart.updatedA medication is added to or removed from the cart
prescription.createdA prescription is created
prescription.dispensedMedication is dispensed
order.createdAn order is created
order.completedMedication received in full and payment made
payment.completedPayment completed successfully
loyalty.points_earnedPoints earned
coupon.redeemedCoupon used

Intelligence use cases

Use caseSignalAction
Chronic medication patient stops buyingNo order.completed for >30 daysSend LINE reminder + coupon
New patient makes first purchasecustomer.registered → order.completedOnboarding reward
High-selling medication running lowProduct Story → spike in prescription.dispensedTrigger stock alert
Elderly patient segmentSegment by purchase patternCampaign for vitamins / health care products

Full event catalog →