Project

General

Profile

Actions

Feature #854

open
FM FM

Free consultation days per visit type in Hospital Settings

Feature #854: Free consultation days per visit type in Hospital Settings

Added by Fiza M. about 9 hours ago. Updated about 9 hours ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/12/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

Description

h3. What

Today a hospital sets one number of free consultation days and ticks the visit types it applies to. Every ticked type shares that number. Hospitals need different days per type, for example Follow-up free for 3 days and Emergency free for 5 days.

Hospital Settings (Admin) now has one row per visit type. Tick a type and set its own free days. Unticked types are always charged.

h3. How it works

  • Admin > Hospital Settings > OPD consultation fee: one row per visit type (Walk-in, Follow-up, Emergency, Referral, Appointment) with a days stepper (1 to 365).
  • The window starts from the patient's last paid consultation of any visit type. The visit type of the new visit decides how many days apply.
  • Reset unticks every type. Save then stores "charge every visit".
  • Billing (OPD registration fee preview and Quick Bill) uses the days of the visit type being billed. The Quick Bill discount reason shows that type's days.

h3. Existing hospitals

Nothing changes until someone saves the card. A hospital that only has the older two settings (free revisit days and free revisit visit types, for example VVMC at 3 days for all types) keeps working. The card shows those as per-type rows. After the first save the new setting replaces the older two.

h3. For release

  • New hospital setting: opd.consultation.free_revisit_days_by_type, value like FollowUp:3,Emergency:5. No migration.
  • Release OPD before or together with Admin. If Admin goes first, the saved days are ignored by OPD until OPD is released.
  • An unreadable entry charges the visit. It never waives it.

h3. What QA should check

Set Follow-up 3 and Emergency 5, save. A patient who paid 4 days ago: Follow-up is charged, Emergency is free.

A visit type that is unticked is charged inside any window.

A patient who paid for a Walk-in 4 days ago and now comes as Emergency (5 days): free.

Untick everything, Save: every visit is charged.

A hospital that only has the older settings (for example VVMC): the card shows its days on each ticked type and billing is unchanged until it is saved.

Days of 0, blank, 366 or text cannot be saved.

A user without admin.settings.update sees the card read-only.

h3. Branches (not pushed)

  • nuvita-opd: feat/free-consultation-days-by-visit-type
  • nuvita-admin: feat/free-consultation-days-by-visit-type

FM Updated by Fiza M. about 9 hours ago Actions #1

  • Status changed from New to In Progress
Actions

Also available in: PDF Atom