Platform
Domain Examples
Pharmacy

Pharmacy

First production domain ของ PBCP — Pharmacy platform ใช้ PBCP เป็น Business Context foundation สำหรับร้านยาและคลินิก

Business problems solved

ปัญหาPBCP แก้อย่างไร
ไม่รู้ว่าคนไข้กลับมาหรือเปล่าCustomer Story → เห็น visit frequency
ไม่รู้ว่ายาตัวไหนขายดีProduct Story → ดู top SKUs จาก Business Pulse
ส่ง promotion ไม่ตรงกลุ่มIntelligence → segment ลูกค้าตาม behavior
ไม่รู้ว่าคนไข้ใช้ยาต่อเนื่องหรือหยุดChurn signal → แจ้งเตือนก่อนคนไข้หาย

Story types

Customer Story

คนไข้คนนี้เป็นใคร มาบ่อยแค่ไหน ซื้ออะไร

Order Story

order นี้มีอะไรบ้าง ชำระอย่างไร

Product Story

ยาตัวนี้ขายดีแค่ไหน ใครซื้อบ้าง

Prescription Story

ใบสั่งยานี้จ่ายครบไหม มี refill หรือเปล่า

Key events

Eventเกิดเมื่อ
customer.registeredคนไข้ลงทะเบียนใหม่
customer.visitedคนไข้มาที่ร้าน
product.searchedค้นหาชื่อยา
product.viewedดูรายละเอียดยา
cart.updatedเพิ่ม/ลบยาในตะกร้า
prescription.createdสร้างใบสั่งยา
prescription.dispensedจ่ายยาแล้ว
order.createdสร้าง order
order.completedรับยาครบ ชำระเงินแล้ว
payment.completedชำระเงินสำเร็จ
loyalty.points_earnedได้รับ points
coupon.redeemedใช้คูปอง

Intelligence use cases

Use caseSignalAction
คนไข้ยาเรื้อรังหยุดซื้อไม่มี order.completed >30 วันส่ง LINE reminder + คูปอง
คนไข้ใหม่ซื้อครั้งแรกcustomer.registeredorder.completedOnboarding reward
ยาขายดีหมดเร็วProduct Story → spike ใน prescription.dispensedแจ้ง stock alert
กลุ่มผู้สูงอายุSegment by purchase patternCampaign วิตามิน/ผลิตภัณฑ์ดูแลสุขภาพ

Full event catalog →

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.registeredorder.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 →