Loops HouseDocSpecialCare

NEAR HACKATHON
Links
Team
1 member- ABOwner
AbdulGaniyu Afeez
Overview
In many hospitals, especially in Nigeria, patients queue for hours to see a GP, then again for a specialist, the lab and the pharmacy. Paper referrals get lost, results are passed around by hand, prescriptions can be forged or filled twice, and patients pay before receiving any care.
DocSpecialCare puts that whole care pathway online and uses a NEAR smart contract as the neutral referee between independent parties (patient, physician, specialist, laboratory, pharmacy). Consultation, lab and pharmacy fees are held in escrow and released only when care is delivered, with refunds on cancellation or doctor no-show. Referrals are on-chain, so a specialist can only be booked with one, by that patient, once. Prescriptions are signed by verified prescribers, expire, and can be dispensed exactly once; any pharmacy can verify them.
Medical content never touches the chain: notes, lab results and prescriptions are end-to-end encrypted in the browser (x25519 + XSalsa20-Poly1305), and NEAR stores only the sha-256 fingerprint and the patient-controlled access list. It uses NEAR named accounts and sub-accounts for roles, and function-call access keys so everyday clinical actions are one click while every payment still needs wallet approval.
Live on NEAR testnet with a hosted demo (https://docspecialcare.vercel.app), 12 contract tests and a one-command reproduction of the full journey.