FreeMED Opensource EMR/PM Software |
Calendar APICalendar and date related functions. These are not included unless needed. Summary
date_in_range
Determine if a date falls between a beginning and end date. Parameters
ReturnsBoolean value, whether date falls between specified dates. fc_scroll_prev_month
Scroll a given date back by a month Parameters
ReturnsSQL formatted date string for a date approximately one month previous to the given date. fc_scroll_next_month
Scroll a given date forward by a month Parameters
ReturnsSQL formatted date string for a date approximately one month after the given date. fc_generate_interference_map
Create an “interference map” which allows the system to determine which appointments may conflict with others based on several criteria. Parameters
ReturnsMultidimentional hash/array (interference map). freemedCalendarSummary
freemedCalendar:: map_fitDetermine whether an appointment of the specified duration at the specified time will fit in the specified map. Parameters
ReturnsBoolean, whether specified appointment fits into the specified map. See AlsofreemedCalendar:: multimapCreates 3rd generation multiple scheduling map. This is used to automatically create additional columns due to overlapping and overbooking. Parameters
ReturnsMultimap (associative array). See Also |
Determine if a date falls between a beginning and end date.
function date_in_range ( $checkdate, $dtbegin, $dtend )
Check to see if date is in the past
function date_in_the_past ( $datestamp )
Get the text name of a day of the week
function day_of_the_week ( $this_date = "", $short = false )
Form a human readable time string from an hour and a minute.
function fc_get_time_string ( $hour, $minute )
Scroll a given date back by a month
function fc_scroll_prev_month ( $given_date = "" )
Scroll a given date forward by a month
function fc_scroll_next_month ( $given_date = "" )
Retrieve starting hour for booking in the scheduler.
function fc_starting_hour ()
Retrieve ending hour for booking in the scheduler.
function fc_ending_hour ()
Create an “interference map” which allows the system to determine which appointments may conflict with others based on several criteria.
function fc_generate_interference_map ( $query_part, $this_date, $privacy = false )
Check to see whether an entry exists in a particular interference map.
function fc_check_interference_map ( $hour, $minute, $check_date, $querystr )