Patients API
/v1/patientsจัดการข้อมูลคนไข้ทั้งหมด — สร้าง อัปเดต ค้นหา รวมถึง demographic, allergies, history
- GET
/v1/patients - POST
/v1/patients - GET
/v1/patients/:id - PATCH
/v1/patients/:id
REST API + FHIR R4 + Webhooks ครบในแพลตฟอร์มเดียว — เปิดให้ developer สร้าง app, dashboard, และ integration กับระบบของคุณ
17 service APIs · 200+ endpoints · OAuth 2.0 · Rate limit ตามแพ็กเกจ · Cloud-native
curl -X POST https://api.hexahealth.app/v1/visits \
-H "Authorization: Bearer hh_live_••••" \
-H "Content-Type: application/json" \
-d '{
"patientId": "pat_8f3a2",
"chief_complaint": "ไข้ ปวดหัว",
"doctorId": "doc_2k1"
}'REST API ครบทุกฟีเจอร์ของ HexaHealth Platform — จาก Patient Management ไปจนถึง AI Clinical Assistant
/v1/patientsจัดการข้อมูลคนไข้ทั้งหมด — สร้าง อัปเดต ค้นหา รวมถึง demographic, allergies, history
/v1/patients/v1/patients/v1/patients/:id/v1/patients/:id/v1/appointmentsนัดหมาย · เลื่อนนัด · ยกเลิก · ดูช่วงเวลาว่างของแพทย์ · multi-doctor scheduling
/v1/appointments/v1/appointments/v1/appointments/availability/v1/appointments/:id/v1/visitsVisit · SOAP Note · Vital Signs · Diagnosis (ICD-10) · Order Entry สำหรับห้องตรวจ
/v1/visits/v1/visits/:id/notes/v1/visits/:id/vitals/v1/visits/:id/v1/prescriptionsใบสั่งยา · Dispensing · Drug Interaction Check · Stock & Inventory
/v1/prescriptions/v1/prescriptions/:id/dispense/v1/drugs/search/v1/drugs/interactions/v1/labsสั่ง Lab · บันทึกผล · เชื่อม LIS / PACS · Critical value alert · HL7 ingestion
/v1/labs/orders/v1/labs/results/v1/labs/results/:patientId/v1/imaging/studies/v1/invoicesใบเสร็จ · ใบกำกับภาษี · e-Tax · QR PromptPay · รับ Webhook payment confirmation
/v1/invoices/v1/invoices/:id/pay/v1/invoices/:id/etax/v1/invoices/:id/receipt/v1/claimsส่ง Pre-authorization · Claim · Reconciliation กับบริษัทประกัน 30+ แห่ง
/v1/claims/preauth/v1/claims/v1/claims/:id/status/v1/claims/reconcile/v1/lineส่งแจ้งเตือนผ่าน LINE OA ของคลินิก · Broadcast · Template · CRM
/v1/line/notify/v1/line/broadcast/v1/line/templates/v1/line/contacts/v1/telemedVideo consultation · สร้างห้อง · บันทึก session · Recording · Transcript
/v1/telemed/sessions/v1/telemed/sessions/:id/v1/telemed/sessions/:id/record/v1/telemed/sessions/:id/transcript/v1/aiAI ช่วยเขียน SOAP · Differential Diagnosis · Drug Interaction · Lab interpretation
/v1/ai/soap/v1/ai/diagnose/v1/ai/lab-summary/v1/ai/triage/fhir/r4เชื่อมระบบ HIS/LIS อื่นด้วยมาตรฐาน HL7 FHIR R4 — Patient, Encounter, Observation, etc.
/fhir/r4/Patient/:id/fhir/r4/Encounter/fhir/r4/Observation/fhir/r4/MedicationRequest/v1/webhooksรับ Event แบบ Real-time — patient.created, appointment.confirmed, payment.completed
/v1/webhooks/v1/webhooks/v1/webhooks/:id/v1/webhooks/:id/test/v1/branchesจัดการสาขา · โอนสต๊อก · Multi-branch reporting · พนักงานข้ามสาขา
/v1/branches/v1/branches/:id/transfer/v1/branches/reports/v1/staffเพิ่ม/ลบพนักงาน · Role · Permission · Audit log · 2FA enforcement
/v1/staff/v1/staff/invites/v1/staff/:id/roles/v1/audit-logs/v1/analyticsQuery metrics · Custom report · Export · ดึงข้อมูล Dashboard ออกไปรวมระบบอื่น
/v1/analytics/query/v1/analytics/reports/v1/analytics/export/v1/coursesขายคอร์ส · ตัดครั้งใช้งาน · Voucher · Loyalty program · Gift card redemption
/v1/courses/v1/courses/:id/redeem/v1/vouchers/redeemสมัครบัญชี → ขอ API Key ใน Dashboard → เลือกภาษาที่ถนัด → call API ครั้งแรก ได้ทันที
สมัครและขอ API Key
ใน Dashboard → Settings → API Keys คลิก 'Generate'
เลือก SDK / language
Node.js · Python · PHP · Go หรือใช้ raw cURL ก็ได้
Call API แรก
Sandbox จะมีข้อมูลทดสอบให้เล่นทันที ไม่ต้องสร้างเอง
Subscribe Webhooks
รับ event แบบ real-time มาที่ endpoint ของคุณ
curl -X POST https://api.hexahealth.app/v1/patients \
-H "Authorization: Bearer hh_live_•••••••••••••••" \
-H "Content-Type: application/json" \
-d '{
"firstName": "สมชาย",
"lastName": "ใจดี",
"nationalId": "1100400123456",
"dateOfBirth": "1985-04-12",
"gender": "male",
"phone": "081-234-5678"
}'id, createdAtเลือกได้ระหว่าง API Key (server-to-server) และ OAuth 2.0 (third-party app) ทุก request เข้ารหัส TLS 1.3
Server-to-server integration · Long-lived secret · scope per environment
Authorization: Bearer hh_live_•••••••••••••Third-party apps · ผู้ใช้ authorize ผ่าน HexaHealth · refresh tokens
https://auth.hexahealth.app/oauth/authorize?client_id=...Subscribe event ที่สนใจ — เราจะ POST ข้อมูลไป endpoint ของคุณทันทีเมื่อเกิดเหตุการณ์ พร้อม HMAC signature สำหรับ verify
patient.createdเมื่อมีคนไข้ใหม่ลงทะเบียน
patient.updatedข้อมูลคนไข้ถูกแก้ไข
appointment.createdนัดหมายใหม่ถูกสร้าง
appointment.confirmedคนไข้ยืนยันนัดผ่าน LINE / Portal
appointment.cancelledนัดหมายถูกยกเลิก
visit.completedOPD visit เสร็จสิ้น
prescription.dispensedห้องยา dispense ยาให้คนไข้
lab.result_readyผล Lab พร้อมแล้ว
payment.completedชำระเงินสำเร็จ
invoice.overdueใบเสร็จเกินกำหนดชำระ
claim.approvedบริษัทประกันอนุมัติเคลม
telemed.session_endedTelemedicine session จบ
ทุก SDK type-safe · auto retry · pagination helpers · webhook signature verification ในตัว
@hexahealth/sdk
npm install @hexahealth/sdkhexahealth
pip install hexahealthhexahealth/sdk
composer require hexahealth/sdkgithub.com/hexahealth/go-sdk
go get github.com/hexahealth/go-sdkเริ่มฟรี · จ่ายตาม volume · upgrade-downgrade ได้ตลอดเวลา
Sandbox & Development
0 บาท
Side projects & startups
990 บาท/เดือน
Production-grade integrations
4,990 บาท/เดือน
Custom + on-premise option
Custom
Sandbox พร้อมใช้ทันที · ไม่ต้องใช้บัตรเครดิต · เริ่ม integrate ได้ใน 5 นาที
✓ Setup ในไม่กี่นาที · ✓ ใช้ฟีเจอร์ครบ · ✓ ยกเลิกได้ทุกเมื่อ