Business Requirements

Purpose. This document specifies the business requirements for Balinyaar, an MVP home-nursing marketplace in Iran where independent, individually-verified nurses list configurable services, families search and request a nurse, the nurse accepts, the family pays through the platform, the platform holds the money as an internal escrow ledger state, the nurse performs one or more visits with Electronic Visit Verification (EVV) check-in/out, and the platform pays the nurse weekly minus a commission. It is grounded in the verified payment/settlement research, the adversarial fact-checks, the database-model critiques, and the market/legal/verification research. It is written to be an MVP that is decisive but not naive about Iranian payment law, tax, and the realities of caring for vulnerable people at home. All monetary values are in IRR (Rials); Toman is a display concern only and is converted to/from Rials solely at an external provider's API boundary.

Date: 2026-06-20

These sections assume the four cross-cutting ground truths.


How to read this document

Each section covers one business area and states, in order:

  • (a) Business requirements — what the platform must do.
  • (b) Iran-specific considerations — the local legal, fiscal, cultural, and infrastructural realities that shape the requirement.
  • (c) MVP vs DEFERRED — an explicit callout of what ships at launch and what is intentionally postponed.
  • (d) Supporting database entities — the entities (using the final names from the refined data model) that implement the requirement.

Areas

  1. Actors & Onboarding — three actor types, phone-OTP login, the customer/patient split, and role-staged KYC.
  2. Nurse Verification & Credentials — the platform-owned, six-step verification pipeline and the structured credential registry.
  3. Service Catalog & Pricing — admin-defined catalog skeleton, nurse-priced variants, and the five price units.
  4. Search & Matching — geo/category search, the denormalized search index, and same-gender caregiver matching.
  5. Booking & Scheduling — the request→accept→pay→confirm lifecycle and multi-session engagements.
  6. EVV / Service Delivery — Electronic Visit Verification check-in/out and payout gating on proof of service.
  7. Cancellation & Refunds — tiered, snapshotted policies and admin-only, ticket-linked refunds.
  8. Payments & Escrow — merchant-of-record card flow, the internal double-entry ledger, and webhook idempotency.
  9. Installments / BNPL — full-upfront, provider-financed BNPL modeled as a single inbound settlement.
  10. Payouts to Nurses — weekly batches gated on EVV + dispute window, clawbacks, and holiday-aware scheduling.
  11. Reviews, Trust & Safety — one-per-booking moderated reviews, low-rating alerting, and incident handling.
  12. Messaging & On-Site Emergencies — ticket-only communication and the on-site emergency playbook.
  13. Tax, Invoicing & Legal — nurse-as-seller / platform-as-commission-seller split, VAT, and the partner-center launch vehicle.
  14. Notifications & Admin / Backoffice — in-app notifications, the admin operational spine, RBAC, and the audit trail.

Appendix — MVP vs Deferred at a glance

AreaMVPDeferred
Onboardingphone-OTP; customer/nurse/admin; patient splitcustomer KYC; org self-onboarding; push
Verification6-step data-driven pipeline; nurse_credentials; IBAN ownershipMoH/INO API; liability-insurance step; ML fraud
Catalogadmin categories/options; nurse variants & price unitsholiday/surge pricing; companionship tier
Searchgeo + category; nurse_search_index; same-gender filtermap discovery; availability hard-filter
Bookingrequest→accept→pay→confirm; booking_sessions multi-visitrecurring schedules; milestone-payment UX
EVVper-session GPS check-in/out; payout gatinggeofencing; tele-check-ins; cameras
Cancellationtiered policy + snapshot; admin/ticket refunds; per-sessionauto no-show penalty; self-service refunds
Payments/Escrowledger escrow; payment_webhook_events; provider abstractionnurse wallet; multi-PSP live; bank escrow product
BNPLfull-upfront bnpl_transactions; provider-revert refundsinstallment tracking (cut); tranched settlement; multi-provider
Payoutsweekly batches; clawbacks; holiday-aware; verified IBANinstant withdrawal; per-nurse frequency
Reviewsone-per-booking; moderation; low-rating alertstwo-way reviews; tag aggregation; incidents
Messagingticket-only; coordination ticket; emergency playbooklive chat; emergency-event entity
Tax/Legalpartner_centers; minimal invoices; 10% VAT on commission; e-namadfull مودیان automation; nurse-side invoicing; B2B
Notifications/Adminin-app + retention; verify/refund/payout tooling; RBACpush; analytics warehouse; ML console
↑ Back to top