Skip to content

oyin-moh/Telemedicine-Token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Telemedicine Token (TMT) Smart Contract

A comprehensive Clarity smart contract for managing telemedicine services on the Stacks blockchain. This contract implements a fungible token system with built-in appointment booking, escrow payments, and reputation management for healthcare providers.

Overview

The Telemedicine Token contract enables secure, decentralized telemedicine consultations by providing:

  • Token-based payment system for medical consultations
  • User registration for patients and doctors
  • Appointment booking with automatic escrow
  • Reputation system for healthcare providers
  • Secure payment release upon service completion

Token Details

  • Name: Telemedicine Token
  • Symbol: TMT
  • Decimals: 6
  • Total Supply: 1,000,000 TMT
  • Standard: SIP-010 Fungible Token

Key Features

1. User Management

  • Registration: Separate registration for patients and doctors
  • Verification: Admin verification system for healthcare providers
  • Reputation Tracking: Automatic reputation scoring based on patient ratings

2. Appointment System

  • Booking: Patients can book appointments with registered doctors
  • Escrow: Automatic token escrow during appointment booking
  • Completion: Doctors can mark appointments as completed to release payment
  • Rating: Patients can rate completed appointments (1-5 stars)

3. Payment Security

  • Escrow Protection: Funds held in contract until service completion
  • Emergency Withdrawal: Admin can refund patients in dispute cases
  • Automatic Release: Payments automatically released to doctors upon completion

Contract Functions

Read-Only Functions

(get-name) → Returns token name
(get-symbol) → Returns token symbol  
(get-decimals) → Returns token decimals
(get-total-supply) → Returns total token supply
(get-balance account) → Returns account balance
(get-user-profile user) → Returns user profile data
(get-appointment appointment-id) → Returns appointment details
(get-doctor-rate doctor) → Returns doctor's consultation rate

About

The Telemedicine Token (TMT) is a comprehensive Clarity smart contract designed to facilitate secure, decentralized telemedicine services on the Stacks blockchain. This contract creates a complete ecosystem for managing digital healthcare consultations through a native fungible token with built-in escrow and reputation systems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors