Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Next future date in a list (portal) of dates.

Featured Replies

Hello all,

I've got a table for patients and another table for visits. I need a list of patients with their next appointment date. Each patient has multiple appointments from the past and for the future.

I tried creating a calc in visits that said:

case(appointment date > get(currentdate); patient ID)

Then I could build a relationship from the patients table to the visits table based on Patient ID.

That of course works once: since you can't build a relationship on an unstored calc the current date doesn't update.

Is there a custom function I can use?

You don't need a custom function for this. In your Patients table, define an unstored calculation field cToday (result is Date) =

Get (CurrentDate)

Then define your relationship as:

Patients::PatientID = FutureVisits::PatientID

AND

Patients::cToday < FutureVisits::AppointmentDate

where FutureVisits is an occurence of the Visits table. This relationship will show all future visits of the current patient.

Edited by Guest
corrected a typo: reversed < sign

  • Author

Excellent.

Thank you!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.