Skip to content
Snippets Groups Projects
Monish Deb's avatar
83115ab5

tinflexbooker

Adds data from The Indigenous Network FlexBooker intake forms and custom fields for follow-up sessions to CiviCRM.

The extension is licensed under AGPL-3.0.

Requirements

  • PHP v7.2+
  • CiviCRM 5.39 (but should work in earlier versions)

Installation (Web UI)

Learn more about installing CiviCRM extensions in the CiviCRM Sysadmin Guide.

Installation (CLI, Zip)

Sysadmins and developers may download the .zip file for this extension and install it with the command-line tool cv.

cd <extension-dir>
cv dl tinflexbooker@https://github.com/FIXME/tinflexbooker/archive/master.zip

Installation (CLI, Git)

Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.

git clone https://github.com/FIXME/tinflexbooker.git
cv en tinflexbooker

Getting Started

Once enabled, data from TIN intake forms will be added to CiviCRM. There are no settings or user interface. Gender options will need to be manually configured in CiviCRM to match the settings in FlexBooker and CRM/Tinflexbooker/Page/Constants.php. Field Groups for Medical History, Client Particulars and Background will have to already exist in CiviCRM, with name as indicated in CRM/Tinflexbooker/Page/Constants.php under fg for each field, then custom fields can be added by uncommenting the code in the install hook in tinflexbooker.php and installing the extension.

Known Issues

If any changes are made to the FlexBooker intake form, these will need to be also made in the array in CRM/Tinflexbooker/Page/Constants.php and in custom fields and option groups (if required) in CiviCRM. If these don't match exactly, this extension will not work as intended. If the date of birth fields are changed in FlexBooker, they will need to be changed in tinflexbooker.php and not in Constants.php, as these three fields are combined to one date of birth field. No custom data or fields will be removed on uninstall, but there is commented out code to remove them included in the uninstall hook.