A comprehensive digital health platform connecting pharmacies, clinics, doctors, and patients with integrated Healthcare Conformance Service support for seamless healthcare delivery across Australia.
Scripted
2.0.0
Scripted is a comprehensive digital health platform designed to streamline healthcare delivery across Australia. The platform consists of two interconnected applications:
The platform integrates with the Healthcare Conformance Service to support Individual Healthcare Identifier (IHI) search, verification, and management, ensuring compliance with Australian healthcare regulations.
PostgreSQL database hosted on Supabase, shared between high-level and low-level applications for data consistency.
Clerk authentication with role-based access control for pharmacyAdmin, clinicAdmin, doctor, and patient roles.
Convex for real-time messaging between doctors and patients with LiveKit integration for video consultations.
AWS-hosted HI Service proxy for IHI search, verification, and batch revalidation with full audit trail.
The high-level application serves as the administrative backbone of the Scripted platform, providing centralized management capabilities for pharmacies and clinic administrators.
The low-level application provides individual clinic portals with patient-facing and doctor-facing interfaces. Each clinic operates under their own subdomain with customizable branding and workflows.
Specialized workflow for products requiring pathology testing before consultation.
// URL Structure for clinic-specific portals
/[clinicSlug]/patient/dashboard → Patient Dashboard
/[clinicSlug]/doctor/dashboard → Doctor Dashboard
/[clinicSlug]/admin → Clinic Admin
// Example URLs:
/scripted-clinic/patient/dashboard
/wellness-centre/doctor/dashboardHealthcare Identifiers (HI) Service Integration: The platform has built-in conformance with the HI Service for healthcare identifier management, ensuring compliance with Australian digital health standards.
Search for Individual Healthcare Identifiers using demographic information including Medicare number, name, date of birth, and sex.
Verify and validate IHI numbers against the HI Service with automatic status tracking (Active, Deceased, Retired).
Bulk revalidation of existing IHI records to ensure currency and accuracy of patient identifiers.
Comprehensive logging of all HI Service errors including error codes, messages, timestamps, and auto-resolution tracking.
7-year retention audit trail for all healthcare identifiers disclosed by the HI Service, compliant with regulations.
IHI-verified patient record merging with full audit logging.
// IHI Search Request Format
POST /api/hi/search
{
"familyName": "SMITH",
"givenName": "JOHN",
"dateOfBirth": "1990-01-15",
"sex": "Male",
"medicareCardNumber": "1234567890",
"medicareIRN": "1"
}
// Response includes:
// - ihiNumber: 16-digit IHI
// - ihiStatus: Active, Deceased, Retired
// - ihiRecordStatus: Verified, Unverified, Provisional| Identifier | Entity | Fields Stored |
|---|---|---|
| IHI | Patient | ihiNumber, ihiStatus, ihiRecordStatus, ihiVerifiedAt |
| HPI-I | Doctor | hpiiNumber, hpiiStatus, hpiiRecordStatus, hpiiVerifiedAt |
| HPI-O | Organization | hpioNumber, hpioData, hpioUpdatedAt |
Scripted is committed to ongoing conformance with Australian digital health standards. Below is our roadmap for conformance initiatives:
Full integration with Healthcare Identifiers Service for IHI search, verification, batch revalidation, error logging, and audit trail compliance.
Integration with the Electronic Prescription Service for digital prescription creation, token generation, and prescription exchange.
Full dispensing workflow integration including prescription claiming, supply records, and integration with pharmacy dispensing systems.
The platform uses Prisma ORM with PostgreSQL (Supabase) as the primary database. Key entities and their relationships are outlined below.
Clerk-based authentication with multi-factor authentication support and session management.
Role-based access control (RBAC) with organization-level permissions for pharmacyAdmin, clinicAdmin, doctor, and patient roles.
Encrypted data at rest and in transit. PostgreSQL Row Level Security (RLS) policies via Supabase.
Comprehensive change logs for all data modifications. HI Service audit trail with 7-year retention.
For detailed onboarding instructions and setup guides, please refer to our comprehensive onboarding documentation.
View Onboarding Guide