Time shift from future/fixed time for chart prep

Hey, there -
I'm trying to create a time shift +15 mins from a future/fixed time as I'm chart prepping for appts later in the day.

E.g.,
current time & chart prepping at 10 am
appt start time 12 pm
appt end time 12:15 pm

thank you!

hi @Phuong_Quynh_Nguyen , welcome to the text blaze community!

Would something like this accomplish what you're trying to do?

Appointment start time: {formmenu: 9; 10; 11; 12; 1; 2; 3; 4; name=hour; cols=4}:{formmenu: 00;15;30;45; name=minutes; cols=5}{formmenu: am; pm; name=ampm; cols=5}{starttime=concat(hour,":",minutes," ", ampm)}
Appointment end time: {time: h[:]mm a; at={=starttime}; shift=+15m}

That lets you pick the start time, then it automatically calculates the end time as being 15 minutes later.

Here's a second version that determines the am/pm option automatically depending on what hour is selected:

Appointment start time: {formmenu: 9; 10; 11; 12; 1; 2; 3; 4; name=hour; cols=4}:{formmenu: 00;15;30;45; name=minutes; cols=5}{=ampm}{starttime=concat(hour,":",minutes," ", ampm)}{ampm="am" if (hour=9 or hour=10 or hour=11) else "pm"}
Appointment end time: {time: h[:]mm a; at={=starttime}; shift=+15m}

1 Like

this is great! thank you for your help!
is it possible to manually enter the start time in case appt runs late?
e.g.,
sched start: 12 pm
actual start 12:07 pm

@Phuong_Quynh_Nguyen Does something like this help?

Appointment start time: {formtext: name=hour; default=1; cols=4}:{formtext: name=minutes; default=6; cols=5}{formmenu: am; pm; name=ampm; cols=5}{starttime=concat(hour,":",minutes," ", ampm)}
Appointment end time: {time: h[:]mm a; at={=starttime}; shift=+15m; pattern=h:m a}

1 Like

That's it!!! Thank you so much!!!