Skip to content

improvement and secure method plan post hackathon to make it a full SaaS product #8

Description

@p4r1ch4y

post hackathon changes improvements to do :

next steps ( security )

  • dependency scanning: integrate npm audit / dependabot in ci and fail on high severity.

  • automated security tests: add zap or similar scanner in ci to catch common web vulns.

  • role tests: add automated tests to verify rbac on sensitive endpoints (patient data, prescriptions, tenant admin).

  • schema name validation: harden tenant slug parsing (allow only safe chars, length limits) to avoid any injection via schema names.

  • implement proper auth handling on the frontend side, use proper security standards



infrastructure, deployment & reliability

next steps

  • ci/cd automation: when we full build -> tag -> push -> deploy pipeline in github actions (currently partly manual)
  • [ ]
  • centralized logging: add azure monitor / elk with request_id, tenant_id, user_id for all logs.
  • [ ]
  • deep health checks: enrich /health to verify db and cross-service connectivity, not just process up.
  • [ ]
  • circuit breakers: add circuit breaker middleware (e.g. opossum) for inter-service calls to avoid cascading failures.
  • [ ]
  • queueing: introduce a message queue (rabbitmq / azure service bus) for async tasks (notifications, heavy reports).


clinical features & saas modules

current services (baseline)

  • auth service – user registration, login, jwt issuance and rbac
  • tenant service – phc onboarding, schema creation, tenant management
  • patient service – demographics, search, history
  • consultation service – vitals, notes, diagnosis
  • pharmacy service – inventory, stock, prescription fulfillment

planned / not yet implemented / feedbacks from real users to be implemented

  • lab service: separate microservice for lab orders, tests and results (cbc, lft, rft, etc.)

  • imaging & diagnostics: support structured logging + file links for mri, x-ray, ct, ultrasound, ecg reports

    • patient profile: ability to attach mri scan reports (pdf/link), blood test pdfs, ecg summary reports to visits

    • imaging order workflow: order -> performed -> report attached -> visible in patient history

  • billing & claims service: basic billing + hooks for abha / pm-jay claims integration

  • telemedicine module: add video consultation (webrtc / third-party api) for remote specialists

  • notification service: reminders for follow-ups, vaccination due, ncd clinics, internal staff alerts (low stock, lab ready).



user experience & workflows

already improved

  • rate limiting tuned to protect auth without breaking normal usage
  • login flow now stable (no instant logout) thanks to jwt fix and shared secret

to improve

  • richer patient profile:

    • show full clinical timeline (visits, vitals, prescriptions, labs, imaging) per patient.
    • add chronic conditions, allergies, risk flags and family history.
  • diagnostics & reports ux:

    • ui to upload and view mri, blood test, ecg, and other reports inside the patient record.
    • filters to quickly find last lab/imaging results for a patient.
  • role-based dashboards:

    • doctor dashboard: today’s schedule, waiting patients, new labs, follow-ups due.
    • nurse dashboard: vitals queue, injections/vaccines due, upcoming procedures.
    • pharmacist dashboard: pending prescriptions, low-stock list, expiring batches.
    • admin dashboard: opd counts, top diagnoses, stock usage trends.
  • appointments & schedule:

    • per-doctor schedule with time slots and status (booked, checked-in, done, no-show).
    • nurse-facing “today’s opd queue” linked to appointment / walk-in flows.
  • session ux:

    • “session expired” modal with re-login option instead of sudden redirect
  • offline & i18n:

    • pwa upgrade (service worker + caching) for low-bandwidth phcs
    • multi-language support (hindi + 1–2 regional languages) for key workflows

***#

developer experience & governance

we have already in place few docs ( to be added more for better DevEx )

to add

  • full ci pipeline: lint + tests + docker build + deploy per service
  • integration tests: automated flows for tnant onboarding / “patient visit + prescription / , pharmacy stock update /
  • contributor docs: per-service readmes (auth, tenant, patient, consultation, pharmacy) with api examples and architecture diagrams.
  • coding standards: documented conventions for modules, error handling, logging, and dto/validation patterns.


to be added soon / planned / so this comprehensive project becomes a ready to use in real world as a SaaS

contributions are welcomed and appriciated /

contribution guide Contributing
Architecture

devloper guide / add service guide in SaaS guide Dev SaaS Guide

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions