Yes, we can set the referral visit counts for patients.
Navigate: Patient -> Manage patients -> Billing Form Information
Now add multiple appointments for the patient for a single day and mark all appointments as seen.
Mark all appointments are seen now
Only 1 visit will get deducted from the remaining visits.
Now if the visits for a patient are from different days than the remaining visits count is also allowed to go in negative.
Users are allowed to add appointments more than defined Allowed visits.
Users are also allowed to add appointments even if the appointment date exceed the given date range.