Skip 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.

calculate 2nd serial number based on dates entered

Featured Replies

Hi guys!

I am scratching my head finding the way to create a calculation which create a 2nd serial number of transplants based on the transplant date. Here are the details:

A patient can be transplanted several times, my users want to know which number of transplant it is. Data sample here:

Pat Name Transplant Date Transplant No.

JD 08/01/2000 1

JD 09/13/2000 2

JD 01/01/2001 3

I want to create a calculation field to calculate the "transplant no" . . In addition, I must to say that some records might be marked as "deleted" (The table as a field called "deleted" which marks the record when the user deletes the record). The deleted records should be omitted from the calculation.

Thanks in advance,

Mary

Assuming your "data_sample" is a field, use Right(data_sample ; 1). This could be put into an If function: If ( deleted <> "deleted" ; Right ( data_sample ; 1 ); "" )

I'm assuming (hopefully!) you don't have patients with more than 9 transplants! Also, I'm assuming that patient initials are always 2 characters. In retrospect, I think it would be better to have a join file: patient_transplant, with one record per transplant. Really, you should use patientID as a key field. Then you could concatenate the patientID and an underscore and the transplant number as your serial number.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.