ChangeLog
07/28/2000
Freemed-YiRC Beta 0.13
----------------------

- 07/28/2000 Beta 0.13
	MOVED ALL .php3 FILES TO .php FORMAT FOR COMPATIBILITY WITH PHP4!!!
		REPLACED ALL INSTANCES OF '.php3' IN EACH .php FILE WITH
		'.php' AS WELL.

	-=-=-=-=-=-=-=-=-=- IMPORTANT NOTE FOR PHP3 USERS: -=-=-=-=-=-=-=-=-=-
	YOU MUST MODIFY YOUR APACHE HTTPD.CONF (usually located in 
		/etc/httpd/conf/httpd.conf) AND ADD 'index.php' TO YOUR
		'Directory Index' IN ORDER FOR Freemed-YiRC TO WORK ON YOUR
		SYSTEM!!!
	-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

	Added the shell script 'convert_php3-to-php4', which will do a PHP3 ->
		php4 conversion on any install of Freemed-YiRC (I think :) ).
	Modified the following .php scripts so that one ONLY requires 
		'clinical_therapist' permission, NOT ALSO 'clinical_ccn', to
		read and write Clinical CaseNotes....:
			clinicalccn_input.php
			clinicalccn_input2.php
			clinicalccn_input3.php
			clinicalccn_groupinput1.php
			clinicalccn_groupinput2.php
			clinicalccn_groupinput3.php
			clinicalccn_viewnote.php
	Modified con_viewgroups.php to use the fy_textorblank() function.
	Modified the DB fill files 'filldb' and 'do_first' to give 'frank'
		the proper therapist permissions ('clinical_db' and
		'clinical_therapist').
		ALSO gave root 'con_hr' permissions....
		ALSO added 'N' for 'coordinator' in the do_first entries for
			the table fy_con_groups...
		ALSO added diagnosis codes for the two residents in do_first...
	Added the 'RELOAD' script in the DB directories.  This script will
		totally wipeout a database and re-load it (including the
		do_first file...)
	Added the field 'Clinical_Admin' to the Security Database DB schema...
		This field indicates whether or not a user is someone in an
		Administrative position relative to Clinical Casenotes.  The
		CCN Admin has the ability to read/edit/delete ANY Clinical
		Casenote.
	Modified the following .php scripts to make use of the new 
		'clinical_admin' field:
			secdb.php
			secdb_add.php
			secdb_add2.php
			secdb_mod.php
			secdb_mod2.php
	Modified con_res_viewdiags.php to use row colors in tables...
	Modified clinicalccn_input2.php so that it correctly enters data for
		fields with blank form names.  Before, for example, the
		'Staff ID' and 'Resident ID' fields were not entered correctly
		for individual casenotes.
	Modified clinicalccn_list.php to make use of the 'clinical_admin' 
		SecDB field.  If the user is the 'Staff' listed for a casenote,
		or has 'Clinical_Admin' permission, then he/she can view and
		delete a casenote.  Otherwise, they aren't even given the
		option.
	Fixed MAJOR bug in the following .php scripts.... instead of 
		referencing the $cookie_id variable for use with the SecDB,
		many scripts are looking up the fy_con:id of a person, and this
		may be different than the fy_users:id...
			Clinicaldb.php
			clinicalcasenote.php
			clinicalccn_list.php
			clinicalccn_viewnote.php
			clinicalccn_input.php
			clinicalccn_input1.php
			clinicalccn_input2.php
			clinicalccn_groupinput1.php
			clinicalccn_groupinput2.php
			clinicalccn_groupinput3.php
			clinicalccn.php
			clinicalccn_view.php
			clinicalccn_exp_1.php
			clinicalccn_exp_2.php	
			clinicalccn_imp_1.php
			clinicalccn_imp_2.php	
			clinicalccn_imp_3.php	
			clinicalccn_imp_4.php	
			clinicalccn_imp_5.php	
			clinicalccn_add.php
			clinicalccn_add_0.php
			clinicalccn_add_1.php
			clinicalccn_add_2.php
			clinicalccn_add_3.php
			clinicalccn_check.php
			clinicalccn_dosql.php
	Modified clinicalccn_input.php so that in the Staff section it 
		defaults to the person who is writing the note, if that person
		is in the list...
	Modified clinicalccn_list.php to add an 'Edit' function to the 'Admin'
		column if staff have proper permissions.
	Added the following .php scripts which are used to edit Clinical
		CaseNotes:
			clinicalccn_editnote.php
			clinicalccn_editnote2.php
	Added the table 'fy_secdb_help' to the DB schema.  This table contains
		short help info about the security permissions.
	Added Help capabilities to secdb_mod.php & secdb_add.php
	Added the following .php scripts which are used to edit Group
		Clinical CaseNotes:
			clinicalccn_editgrp.php
			clinicalccn_editgrp2.php
	Modified clinicalccn_add_2.php to add error checking to make sure
		a field name is not used more than once.
	Modified clinicalccn_add_1.php to enable the 'Add An Image' option.
	Modified clinicalccn_add_2.php to ask for an image name if 
		'Add An Image' was selected in clinicalccn_add_1.php.
	Added the PHP script clinicalccn_add_pic.php which follows
		clinicalccn_add_2.php if 'Add An Image' was selected.  This
		PHP script checks the extension of the uploaded filename to
		see if it's a valid Internet picture format (JPG, GIF, or PNG).
		If it's OK, it will copy it to the img/ccn directory with a 
		filename of XYY.ZZZ where X is the NID, YY is the ordernumber
		of the image in fy_clinical_formdata, and ZZZ is the picture
		extension.
	Added the PHP script clinicalccn_add_pic1.php which inserts an SQL
		entry into fy_clinical_formdata relating to an image.
	Modified the following PHP scripts to correctly display images in 
		forms:
			clinicalccn_add_1.php
			clinicalccn_add_2.php
			clinicalccn_view.php
			clinicalccn_input1.php
			clinicalccn_viewnote.php
			clinicalccn_editnote.php
			clinicalccn_groupinput2.php
			
			
			



- 07/22/2000 Beta 0.12
	Fixed a bug in 'clinicalccn_check.php3' so that it will correctly
		check for all the right STD fields.  It didn't work right 
		in Beta 0.11!  IT DOES NOW!
	Added 'fy_clinicalsessiontypelookup()' to freemed_yirc-funcs.inc.
		This function returns the session type (i.e. 'Individual' or
		'Group') of a service via it's passed CODE.
	Modified datamodel files 'CCNFORM1' and 'CCNFORM2' to reflect the
		'groupsame' field addition to the Clinical Casenote structure.
		The 'groupsame' field indicates whether or not the info in this
		field is the same for all sessions for one particular group.
		Please see CCNFORM1 and CCNFORM2 for more info...
	Modified the following scripts to implement the 'groupsame' field:
		clinicalccn_add_1.php3
		clinicalccn_add_2.php3
		clinicalccn_add_3.php3
 		clinicalccn_exp_2.php3 
		clinicalccn_imp_4.php3
	Modified clinicalccn_input1.php3 so 'Start Time' and 'End Time' would
		display correctly ( H>11 is PM, not H>12... it was displaying
		noon as midnight and midnight as noon...)
	Implemented the implied field 'Present' in clinicalccn_input1.php3
		(this was missing in Beta0.11).
	Added the following lookup functions to freemed_yirc-funcs.inc
		fy_posdescrlookup()  Looks up a POS descr using the POS code.
		fy_modifierdescrlookup()  Looks up a modifier descr using code.
	Modified clinicalccn_input.php3 to recognize whether it is starting an
		individual note or a group note.
	Added the following .php3 files for use with creating group clinical
		casenotes:
			clinicalccn_groupinput1.php3 (Static Data)
			clinicalccn_groupinput2.php3 (Dynamic Data)
			clinicalccn_groupinput2.php3 (SQL Data Insertion)
	Modified clinicalccn_viewnote.php3 to correct an error with time field
		display.
	Modified clinicalccn_input1.php3 to correct an error in which all the
		diagnosis codes for every resident were being displayed as
		opposed to just the diag codes for the resident in question...
		FIXED!
	Modified clinicalccn_list.php3 to correct an error in which all the
		records for a particular casenote type were listed, instead
		of just for the current group home.  
		FIXED!
	Modified function fy_option_date_minte() in freemed_yirc-funcs.inc
		to display 0-60, not 1-60!!!
		FIXED!
	Modified function fy_option_date_minte() in freemed_yirc-funcs.inc
		to display 0-9 as 00-09.  Otherwise, things would look like
		1:1 AM instead of 1:01 AM...
	Modified the following .php3 files to deal with DECIMAL fields:
		clinicalccn_view.php3
		clinicalccn_input1.php3
	Added the function fy_4letterid() to freemed_yirc-funcs.inc.
		This function creates a 4 letter abbr. of a person's name by
		taking the first letter of the first name of a person, and
		the first 3 letters of the last word in a person's last name.
		This is used primarily for invoicing purposes.
	Added Invoice Number code to the following .php3 files:
		clinicalccn_viewnote.php3
		clinicalccn_list.php3
	Added the field 'grouponly' to the DB schema file 'makedb_ccn'.
	Added an entry for 'sessionnumber' into the DB file 'filldb_ccn'.
	Modified the datamodel file 'CCNFORM2' in include the field
		'sessionnumber'.
	Added the table 'fy_clinical_groupcount' to the DB schema file
		 'makedb_ccn'.
	Implemented 'sessionnumber' functionality into:
		clinicalccn_input.php3
		clinicalccn_groupinput1.php3
		clinicalccn_groupinput2.php3
		clinicalccn_groupinput3.php3
		clinicalccn_viewnote.php3
		clinicalccn_list.php3
	Modified the following .php3 scripts to correctly export the decimal
		length in the export file.  If left alone, and a comma "," is
		used, it will screw up the import process.  Instead, a period
		(.) is used, and then made a comma (,) again in the import
		process to make this process work OK.
			clinicalccn_imp_4.php3
			clinicalccn_exp_2.php3
	Modified clinicalccn_input2.php3 so that it uses the 'intval' and
		'doubleval' PHP functions to ferret out bad info (i.e. string
		data in an int field will yeild a value of '0').
	Fixed the following .php3 scripts with patches to make certain non-fatal
		errors disappear when using MySQL:
			clinicalccn_exp_2.php3
			clinicalccn_imp_5.php3
	Fixed the following .php3 scripts to use the date wrapper functions
		fy_getdate() and fy_putdate(), which are MySQL friendly instead
		of my just blatant code which was causing MySQL errors...
			clinicalccn_input2.php3
			clinicalccn_list.php3
	FINALLY Added the function fy_puttime() to freemed_yirc-funcs.inc...	
		This was necessary due to the way PostgreSQL & MySQL store
		time.
	Added fy_puttime() functionality to the following .php3 files:
		clinicalccn_groupinput3.php3
		clinicalccn_input2.php3


- 06/27/2000 Beta 0.11
	Added 'Export' option to clinicalccn.php3.
	Added the following php3 scripts which export a chosen NID
		to an ASCII file to import into a Freemed-YiRC package.
		The file is placed in the 'usr' directory in Freemed-YiRC
		and is named 'export_ccn_X' where X is the NID.
			clinicalccn_exp_1.php3
			clinicalccn_exp_2.php3
		NOTE: the 'usr' directory MUST be chmod 777 in order to be
			written to by 'nobody'.
	Added 'Import clinical casenote design' link to clinicalccn.php3
		Added the following php3 scripts which import a NID from
			an export file:
				clinicalccn_imp_1.php3
				clinicalccn_imp_2.php3
				clinicalccn_imp_3.php3
				clinicalccn_imp_4.php3
				clinicalccn_imp_5.php3
	Modified secdb.php3 to include an 'ORDER BY ID' in the SQL statement
		so that it displays all entries in the secdb in order, not
		by who was modified last.
	Added the function 'fy_xorblank()' to freemed_yirc-funcs.inc.
		This function either outputs a blank character (ASCII #160)
		unless the input received is an "x" or an "X".  In that case
		it will display a "X".
	Added the function 'fy_textorblank()' to freemed_yirc-funcs.inc.
		This function either outputs a blank character (ASCII #160)
		unless the input received is NOT NULL or NOT "". In that case
		it will display the text received as input.
	Modified the following .php3 scripts to make use of the 'fy_xorblank()'
		function:
			secdb.php3
	Modified the following .php3 scripts to make use of the 
		'fy_textorblank()' function:
			groupdb.php3
			con.php3
			servicesdb_view.php3
			sessiontypesdb_view.php3
			posdb_view.php3
			diagcodesdb_view.php3
			modifiersdb_view.php3
	Modified clinicalcasenote.php3 to display all NIDs and a 'view' and
		'new' link next to each to allow 'clinical_therapist's to 
		view and/or create new clinical casenotes for this NID.
	Added the documentation file 'COOKIES'.  Please read for IMPORTANT
		information about Freemed-YiRC and cookies!!!
	Added the following functions to freemed_yirc-funcs.inc:
		fy_formnamelookup(NID) (Get's CCN Formname from NID)
		fy_option_date_month() (Returns <OPTION> list for month)
		fy_option_date_day() (Returns <OPTION> list for days of month)
		fy_option_date_year(UP,DOWN) (Returns <OPTION> list for YEARS)
		fy_option_date_hour() (Returns <OPTION> list for hours of day)
		fy_option_date_minutes() (Returns <OPTION> list for minsof hour)
	Added the following PHP3 scripts for adding a new clinical casenote:
		fy_clinicalccn_input.php3 (Gets Resident & Staff name)
		fy_clinicalccn_input1.php3 (Gets rest of data)
		fy_clinicalccn_input2.php3 (Error-checks & inserts SQL...)
	Added the following PHP3 script for viewing clinical casenotes:
		fy_clinicalccn_viewnote.php3 
	Updated the file documentation file CLINICALCCN.
			

- 06/09/2000 Beta 0.10
	FIXED ERROR with the make_psql and make_mysql scripts.  When first
		installed, a user would get an error in the 'GROUP MENUS'
		section of the main menu due to a dumb error on my part.
		FIXED!!!
	Modified the list of STANDARD fields in fy_clinical_stdform.  Reduced
		the number of 'STANDARD' fields.  These fields are now going
		to be REQUIRED by ANY Freemed-YiRC Clinical CaseNote (CCN) due
		to indexing and storage methods.
			PLEASE SEE CCNFORM2 (IN THE DATAMODELS!)
	Modified clinicalccn_add_1.php3 to display the above STANDARD fields	
		as ' --REQUIRED -- ' in the pop down list for 'Std. Field: '.
	Changed field 'formname' in fy_clinical_formdata from 30 to 40
		characters.  Modified clinicalccn_add_1.php3 for this change.
	Added the following PHP3 script to deal with creating SQL tables from
		the records in fy_clinical_formdata;
			clinicalccn_dosql.php3
		IMPORTANT NOTE:  The DB subdirectory, and all subdirectories
			under that (i.e. DB/postgresql and DB/mysql) MUST
			be CHMOD 777 so that the web user 'nobody' can create
			the necessary 'makedb_ccn_X' files via Freemed-YiRC.
			If these directories are not given the proper 
			permissions, then the SQL table creation will fail!
	Modified clinicalccn_del2.php3 so it will also remove the SQL table
		for the associated CCN NID.
	Made some changes to clinicalccn_add_1.php3 to correct some incorrect
		wording in the error messages.
	Modified clinicalccn_del.php3 so it can be linked to the CANCEL button
		throughout the Clinical CaseNote design process.  If a user
		chooses to cancel at any time in the process, they will be
		taken to this screen which will ask them if they're sure they
		want to cancel, and if so, all work done to this point will
		be deleted.
	Added the PHP3 script 'clinicalccn_check.php3'.  This script is 
		launched when the user clicks on the 'DONE' link in
		clinicalccn_add_1.php3.  This currently just checks to make
		sure that the user included all of the REQUIRED fields
		(as listed in fy_clinical_stdforms, as well as in the
		DATA MODELS).  More error checking SHOULD be added in the
		future.
	Disabled some of the PHP/SQL error reporting in clinicalccn_del2.php3
		because there was an error that I could not get around
		being displayed on the screen.  The error is intentional
		in some cases, but I don't need users seeing it!!!
	Did quite a bit of document updating in CLINICALCCN.  Please review
		this document carefully!!!


- 05/26/2000 Beta 0.09
	Added 'makedb_ccn' script to DB schema.
	Added the DB tables 'fy_clinical_forms' and 'fy_clinical_formdata'.
	Added the DB table 'fy_clinical_stdform' to makedb_ccn.
	Added 'filldb_ccn' script to DB schema.  Added the 'standard' fields
		from 'ccnform2'.
	Added 'clinical_ccn' to secdb DB schema.  This allows user to modify
		Clinical CaseNote (CCN) designs.  Updated:
			secdb.php3
			secdb_add.php3
			secdb_add2.php3
			secdb_mod.php3
			secdb_mod2.php3
	Added the script 'clinicalccn.php3' which can be accessed by those
		with the 'clinical_ccn' secdb permission on the
		clinicaldb.php3 script.
	Modified servicesdb_view.php3 to add column heading 'Type'.
	Added the following scripts for the Clinical Casenote Forms Designer:
		clinicalccn_add.php3
		clinicalccn_add_0.php3
		clinicalccn_add_1.php3
		clinicalccn_add_2.php3
		clinicalccn_add_3.php3
		clinicalccn_del.php3
		clinicalccn_del2.php3
		clinicalccn_view.php3
	Wrote the documentation file CLINICALCCN to help guide through the
		complex forms designer!!!  PLEASE READ!!!


- 05/02/2000 Beta 0.08
	Created table fy_clinical_sessiontypes to denote the 'session type'
		of a clinical service (i.e. 'Group' or 'Individual').
	Added .php3 scripts to view/add/delete 'Session Types':
		sessiontypesdb_view.php3
		sessiontypesdb_add.php3
		sessiontypesdb_add2.php3
	Added field 'session_type' to table fy_clinical_services to denote
		the session type (derived from fy_clinical_sessiontypes)
	Modified the following .php3 scripts to enable 'session_type':
		servicesdb_view.php3
		servicesdb_add.php3
		servicesdb_add2.php3
	FIXED bug in servicesdb_add.php3 where the 'CANCEL' link went to the
		wrong place... (con_viewnumbers instead of servicesdb_view)
	Added link from on the Clinical Databases Menu to the .php3 script:
		sessiontypesdb.php3
	Added field 'clinical_therapist' to Security Database DB Schema.  This
		field indicates that the contact has 'therapist' permissions.	
	Modified the following .php3 files to enable 'Clincal_Therapist' perm:
		secdb.php3
		secdb_add.php3
		secdb_add2.php3
		secdb_mod.php3
		secdb_mod2.php3
	Created .php3 script 'clinicalcasenote.php3' to be used for Clinical
		Casenote Functions.  Accessed via Group Home menus.
	Added spell checker!  Makes use of 'ispell' shell program. Uses scripts:
		spellindex.php3
		spell.php3
		spell2.php3
	Added variable in freemed_yirc-vars.inc for 'fy_spell'.  This is set to:
		ENABLE:  To enable all spell checking functionality (including 
			forcing spell checking functions in Freemed-YiRC).
		MENU:  Checks for errors and gives the option of fixing.
		DISABLE:  To disable all spell checking functionality in
			Freemed-YiRC (Use this setting if your system does
			not support 'ispell'!!!) 
	Added new 'GENERAL UTILITIES' section to main menu.
	Added 'Spell Checker' link on main menu under 'GENERAL UTILITIES'.
		Appears if $fy_spell is set to 'MENU' or 'ENABLE'.
	Added 'fy_spellcheck()' function to freemed_yirc-funcs.inc.  This
		Checks a string of text that is passed to it and returns the
		number of errors it finds.
	Added spell checker module scripts for use by the various scripts.
		spell_b.php3
		spell2_b.php3
		spell3_b.php3	
	Modified ir_mod.php3 to make use of the spell checker module scripts.
		'Spell Check' option will only appear if $fy_spell is set
		to 'ENABLE'.
	Made the TEXTAREAS in ir_add.php3 hard wrap instead of soft wrapping.
		This makes it easier if a user decides to do his/her own 
		formatting....
	Modified ir_view.php3 to not use FORM anymore for displaying TEXTAREA
		VARCHAR fields (i.e. Remarks-Summary, Action Taken, and Other
		Remarks).  Now no box is shown around the text, and it is
		properly formatted.

- 04/20/2000 Beta 0.07
	Added the following permissions to the security database schema:
		ir_enter (user allowed to enter (create) an IR)
		ir_edit_admin (user is a program administrator)
		ir_merge (user allowed to merge IRs into the 'old' file)
		ir_admin (the top IR administrative person)
		Modified the following .php3 files to do this:
			secdb.php3
			secdb_mod.php3
			secdb_mod2.php3
			secdb_add.php3
			secdb_add2.php3
	Modified following IR .php3 scripts to accomodate new permissions:
		ir.php3 (ir_enter for 'Add Incident Report')
	Added the table fy_ir_track to the IR database schema for use with
		tracking who edited & viewed IRs
	Modified following IR .php3 scripts to add entry to fy_ir_track
		upon execution:
			ir_add.php3
			ir_mod.php3
	Modified ir_del.php3 to delete all entries regarding to IR in
		fy_ir_track upon deletion.
	Added ir_track.php3 script to view tracking records in fy_ir_track:
	Modified ir.php3 to show 'Track' option to those with ir_admin secdb
		permission.  This links to ir_track.php3 and views the 
		tracking records related to selected IR.
	Added 'merged' field to fy_ir in database schema.  This field 
		identifies whether or not the record has been 'merged'.
	Added ir_merge.php3 and ir_merge2.php3 scripts for use in marking
		an IR as 'merged'.
	Modified ir.php3 to show 'Merge' option to those with ir_merge secdb
		permission.  This links to ir_merge.php3 which asks to make
		sure you want to merge, then ir_merge2.php3 actually marks the
		IR as merged.
	Modified ir.php3 to recognize if someone has ir_admin priv, and if so,
		that user can see ALL the IRs (including the merged ones).  If
		not, the user can only view the NON-MERGED IRs.
	Added 'incident_time_end' field to fy_ir in database schema.  This
		field indicates when the Incident ended.
	Modified the following .php3 scripts to reflect 'incident_time_end'
		ir_view.php3
		ir_add.php3
		ir_add2.php3
		ir_mod.php3
		ir_mod2.php3
	Added 'coordinator' field to fy_con_groups in the database schema.  
		This field indicates that the contact (staff-only) is the
		'Program Coordinator' for this group home.
	Added 'con_hr' field to fy_secdb in the database schema.  This field
		indicates whether or not a staff has the 'Contact Database
		Human Resources' privelidge.  Meaning this staff can acess and
		modify such things as 'Program Coordinator' and other things...
		Modified the following .php3 scripts to accomodate this:
		secdb.php3
		secdb_add.php3
		secdb_add2.php3
		secdb_mod.php3
		secdb_mod2.php3
	Modified following fy_con_group related .php3 files to add field
		'Program Coordinator (coordinator)' to staff-related contacts.
	Added variables '$bgcolor1' and '$bgcolor2' to freemed_yirc-vars.inc
		These are the colors going to be used for 'default background'
		and 'alternate table background'.
	Added feature to following .php3 scripts which makes reading large
		tables easier, alternating row background colors:
			con.php3
			con_viewgroups.php3
			con_viewaddresses.php3
			con_viewnumbers.php3
			con_viewemails.php3
			con_viewnotes.php3
			con_viewadminnotes.php3
			secdb.php3
			groupdb.php3
			servicesdb_view.php3
			posdb_view.php3
			diagcodesdb_view.php3
			modifiersdb_view.php3
			ir.php3
			ir_track.php3

- 04/14/2000 Beta 0.06
	Added an index.html file to each directory and subdirectory to 
		ward away prying eyes.  The index.html includes a META
		tag which should tell the browser to re-locate to the
		main index.php3 file to log-in.  If the browser is older,
		and does not support this META tag, a link is also included
		which should do the trick.
	Fixed bug in con_stf_mod_demo2.php3 that should have said 'Date of
		Birth' instead of 'Incident Date'.
	Added scripts to deal with total training hours in fy_con_stf (staff
		contacts)
			con_stf_viewtottrain.php3
			con_stf_mod_tottrain.php3
			con_stf_mod_tottrain2.php3
		Also edited con_stf.php3 to display current information...
		Total training hours accumulate during ANNIVERSARY years based
			on the staff's Date Of Hire (DOH).  When a new year is
			is detected, the con_stf_viewtottrain.php3 script will
			automagically create a new record for that individual.
	Added the BASH/SH (bourne shell) script fy_backup.  This script does a 
		complete FILE and DATA backup.  What it does is this:
			Does a tar -cvf * of the current directory (which should
				be the home directory of your Freemed-YiRC
				installation
				(for example: /home/httpd/html/freemed-yirc)
			GZIPs the tar file
			Does an SQL dump (pg_dump for PostgreSQL, mysqldump
			for MySQL)
			tar -cvf the dumped file
			GZIPs the dumped file
		So it leaves you with two GZIPped files that you can put 
			someplace safe, or even burn to a CD-ROM!
	Added the documentation file freemed_yirc-faq.html FAQ!
	Added the documentation file BACKUP.

- 04/06/2000 Beta 0.05
	ADDED VARIABLE $fy_dir TO freemed_yirc-vars.inc!!!
		This variable identifies the directory
		(in the webserver's html directory structure)
		which houses Freemed-YiRC.
	FIXED BUG in con_del.php3 where after you delete a contact, his/her
		notes, addresses, numbers, groups, etc... were left behind
		because they weren't deleted.  This was wrecking havoc with
		the IR system because there were group entries that belonged
		to no one, and it caused errors.  FIXED!  Now con_del.php3
		deletes the contact entry, it's notes, admin notes, addresses,
		numbers, emails, and groups.
	Added table fy_clinical_services to DB schema.  Has Clinical
		Service Types and abbrs in it.
	Added table fy_clinical_diagcodes to DB schema.  Has ICD9 (MACSIS)
		diagnosis codes and their descriptions in it.
	Added table fy_clinical_pos to DB schema.  Has Place Of Service codes.
	Added table fy_clinical_modifiers to DB schema.
		Has the service code modifiers in it.
	Added makedb_con_res and filldb_con_res to DB directories.  
		They contain the following resident contact specific tables:
			fy_con_res
			fy_con_res_diagcodes
			fy_con_res_mbpayors (MedBill Payors)
				fy_con_res_mbpayor_types
	Added con_res.php3 for resident-specific contact functions.
	Added con_res_mod_demo.php3 and con_res_mod_demo2.php3 to modify/update
		resident demographic information.
	Added fy_icd9descrlookup() to the freemed_yirc-funcs.inc functions file.
		It gets the description of an ICD9 code from it's code.
	Added fy_icd9abbrlookup() to the freemed_yirc-funcs.inc functions file.
		It gets the abbr of an ICD9 code's description from it's code.
		If there is no abbr, then the descr is given.
	Added the following .php3 scripts for adding/deleting res' diag codes:
		con_res_viewdigas.php3
		con_res_diags_del.php3
		con_res_diags_add.php3
		con_res_diags_add2.php3
	Modified ir_add.php3 and ir_add2.php3 for adding 'Others Involved'.
		Also modified makedb_ir to add the table fy_ir_othinv.
		Modified ir_view.php3 and ir_del.php3 to support fy_ir_othinv.
		Modified ir_mod.php3 and ir_mod2.php3 to support fy_ir_othinv.
	Added the following .php3 scripts for adding/deleting/viewing res'
		MedBill Payors (mbpayors):
			con_res_mbpayors_view.php3
			con_res_mbpayors_add.php3
			con_res_mbpayors_add2.php3
			con_res_viewmbpayors.php3
			con_res_mbpayors_del.php3
		NOTE:  Only MACSIS capability is currently working in the
			mbpayors section... the insurance and other payor
			sections will be completed at a later time.
	Added the ability to display/upload pictures of contacts in the
		following contact scripts:
			con_res.php3
			con_stf.php3
		using the following scripts:
			con_res_uploadpic.php3
			con_res_uploadpic2.php3
			con_stf_uploadpic.php3
			con_stf_uploadpic2.php3
		The pictures go into the directory
			img/contacts
		So it MUST be made world-writable!!!
	Added 'clinical_db' field to fy_secdb in the DB schema.
		This field determines whether or not a user is allowed
		to access/edit the clinical reference databases 
		(i.e. fy_clinical_services, fy_clinical_pos, etc...)
		Made appropriate modifications to:
			secdb.php3
			secdb_add.php3
			secdb_add2.php3
			secdb_mod.php3
			secdb_mod2.php3
	Added the script clinicaldb.php3 which is used to gain 
		access to the clinical databases.  Put a link
		up on main.php3.
	Added scripts to view/add/delete Clinical Services
		servicesdb_view.php3
		servicesdb_add.php3
		servicesdb_add2.php3
	Added scripts to view/add/delete Place of Service (POS) Codes
		posdb_view.php3
		posdb_add.php3
		posdb_add2.php3
	Added scripts to view/add/delete Diagnostic Code
		diagcodesdb_view.php3
		diagcodesdb_add.php3
		diagcodesdb_add2.php3
	Added scripts to view/add/delete Modifier Code
		modifiersdb_view.php3
		modifiersdb_add.php3
		modifiersdb_add2.php3
	Modifed grouphome.php3 to reflect group in HTML TITLE line...
		was incorrectly saying 'Main Menu'...
	Created two new scripts to have a uniform way of deleting records
		using a ARE YOU SURE/YES-NO prompt:
			delete.php3
			delete2.php3
		Modified the following scripts:
			secdb.php3
			groupdb.php3
			con_viewgroups.php3
			con_viewaddresses.php3
			con_viewnumbers.php3
			con_viewnotes.php3
			con_notes_view.php3
			con_viewadminnotes.php3
			con_notes_admin_view.php3
			con_viewemails.php3
			con_res_viewdiags.php3
			con_res_viewmbpayors.php3
		Removed the following (now defunct) delete scripts:
			secdb_del.php3
			groupdb_del.php3
			con_groups_del.php3
			con_addresses_del.php3
			con_numbers_del.php3
			con_notes_del.php3
			con_adminnotes_del.php3
			con_emails_del.php3
			con_res_diags_del.php3
			con_res_mbpayors_del.php3

- 03/24/2000 Beta 0.04
	Had wrong functions in the main.php3 and grouphome.php3 scripts 
		pertaining to assessing a users' groups.  Would only work
		correctly if a users' ID was the same in fy_users and fy_con!!!
		CORRECTED!!!
	Had same problems with the Incident Report Add function.  Corrected!
	Had same problems with the Incident Report Modify function.
	Had MAJOR time problems with Incident Report System.  Sometimes would
		not convert AM to PM correctly or vice versa.  Should be CORRECTED!
	Added con_stf.php3 to view staff-contact specific functions (no modify
		or delete functions yet).
	Added links for staff-specific or resident-specific info in con.php3.
	Added con_stf.php3 to view Staff-Specific Contact info.
	Added con_stf_mod_demo.php3 and con_stf_mod_demo2.php3 to update/modify
		the info in the fy_con_stf table.
	Added con_stf_mod_acct.php3 and con_stf_mod_acct2.php3 to update/modify
		the info in the fy_con_stf_acct table.
	Added con_stf_mod_train.php3 and con_stf_mod_train2.php3 to update
		modify the info in the fy_con_stf_train table.
	Added con_stf_mod_drv.php3 and con_stf_mod_drv2.php3 to update
		modify the info in the fy_con_stf_drvlic table.
	Added fy_con_stf creation/deletion stuff to the DB/mysql directory.
	Added fy_states to system.  Contains the name and abbr of each state
		including the District of Columbia (DC).
		Modified fy_con_stf_drv.php3 to make use of this.
		Modified fy_con_addresses_add.php3 to make use of this.
		Modified groupdb_add.php3 and groupdb_mod.php3 to use this.
		

- 03/09/2000 Beta 0.03
	Added MySQL functionality to entire Freemed-YiRC script base!
		$fydb_type variable added to freemed_yirc-vars.inc to
			reflect if user is using MySQL or PostgreSQL database.
		Also added 2 subdirectories to the DB directory:
			'postgresql' and 'mysql'.  Also created scripts in 
			these directories to set up tables (make_xxxx).
	Added a Group Menu section to the main menu
		Only the groups that the user has permission to use show up.
		Moved the Incident Report DB from Main Menu to the Group Menu.
		Added fy_ghshortnamelookup() function to look up 'shortname'
		in fy_groupdb from it's 'abbr'.
	Added some Mandrake-friendly updates to the following docs:
		INSTALL
	Modified con_groups_add.php3 to reflect ONLY the group homes the user
		isn't already associated with.  Also properly sets the
		'Primary?' field now.  If contact already has a primary,
		but the new one is set to be the primary, then the old one
		is automatically set to NO and the new one becomes the primary.
	Added the functions fy_getdate() and fy_putdate() to make up for 
		differences between the 'date' format in PostgreSQL and
		MySQL.  All dates shown in MM/DD/YYYY.  This may be a 
		configurable option in the FUTURE.
	Added the function fy_gettime() to make up for the differences
		between the 'time' format in PostgreSQL and MySQL.
		PostgreSQL automatically does conversions between '02:04pm'
		and '14:04', where MySQL will simply ignore the 'pm',
		and enter it as '02:04'!  Made some modifications to ir*.php3
		to make sure time is entered in 24 hour format.
	Made MANY minor bug fixes.  Including, but not limited to:
		CANCEL and BACK links going to the wrong place.

- 02/28/2000 Beta 0.02
	Added Incident Report 'Modify' function... ir_mod.php3, ir_mod2.php3
	Added staff/resident specific relation tables:
		fy_con_races
	Added all staff specific relation tables:
		fy_con_stf
			fy_con_stf_jobtypes
		fy_con_stf_acct
			fy_con_sft_acct_stftypes
			fy_con_stf_acct_paytypes
			fy_con_stf_acct_accounts
		fy_con_stf_timecard
		fy_con_stf_training
		fy_con_stf_drvlic
	Added PHP3/Apache problem solving techniques into INSTALL file
	Removed '$field' variable from most header fy_winprn statements

- 02/23/2000 Beta 0.01
	First public release of Freemed-YiRC.
