الفيديو الطبي
Sehhaty Telemedicine · Cura · Altibbi · المرحلة 2
الحالة الحالية:
Mock (development)
جلسات فيديو آمنة مع بقاء البيانات داخل السعودية (data residency).
المواصفات
| Contract | App\Integrations\Contracts\TelehealthVideo |
|---|---|
| Mock adapter | App\Integrations\Mock\MockSehhatyTelehealth |
| Production adapter (مخطط) | App\Integrations\Production\SehhatyAdapter |
| Driver key | config('safw.integrations.telehealth.driver') |
| الوثائق الرسمية | https://sehhaty.sa/developer |
الميزات المعتمدة عليه
live_therapy_sessionsgroup_therapy
الاستخدام في الـ Code
use App\Integrations\Contracts\TelehealthVideo;
class MyController {
public function __construct(
private readonly TelehealthVideo $service,
) {}
public function action() {
// $this->service يتحقن تلقائياً (mock أو production)
// حسب config('safw.integrations.telehealth.driver')
}
}
لرفع التكامل إلى Production
-
اطلب credentials من الموزود الرسمي
تواصل مع: Sehhaty Telemedicine · Cura · Altibbi -
ابنِ Production Adapter
// app/Integrations/Production/SehhatyAdapter.php namespace App\Integrations\Production; use App\Integrations\Contracts\TelehealthVideo; use Illuminate\Support\Facades\Http; class SehhatyAdapter implements TelehealthVideo { public function __construct( private string $apiKey = config('safw.integrations.telehealth.api_key'), ) {} // Implement all interface methods using real HTTP calls // Use Laravel's Http::withToken($this->apiKey)->post(...) } -
ضع credentials في .env
TELEHEALTH_DRIVER=production TELEHEALTH_API_KEY=your_real_key_here - اختبر — كتب feature test يستخدم mock أولاً، ثم integration test على staging
-
أعد تشغيل —
php artisan config:clear
موافقات + Compliance
- تحقق من شروط الموزود الرسمي (في الـ docs URL أعلاه)
- وثّق DPA (Data Processing Agreement) موقّع
- أضف الموزود إلى قائمة الـ subprocessors المنشورة للمستخدمين
- إذا الموزود يخزّن PHI، تأكد أنه ضمن السعودية (data residency)