diff --git a/EhealthportalInstallerScript.php b/EhealthportalInstallerScript.php
new file mode 100644
index 0000000..c6e8dd7
--- /dev/null
+++ b/EhealthportalInstallerScript.php
@@ -0,0 +1,3490 @@
+
+ @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
+ @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+
+ Portal for mobile health clinics
+
+/-----------------------------------------------------------------------------------------------------------------------------*/
+
+use Joomla\CMS\Factory;
+use Joomla\CMS\Language\Text;
+use Joomla\CMS\Filesystem\File;
+use Joomla\CMS\Installer\InstallerAdapter;
+use Joomla\CMS\Installer\InstallerScriptInterface;
+use Joomla\CMS\Application\CMSApplication;
+use Joomla\CMS\Log\Log;
+use Joomla\CMS\Version;
+use Joomla\CMS\HTML\HTMLHelper as Html;
+use Joomla\Filesystem\Folder;
+use Joomla\Database\DatabaseInterface;
+
+// No direct access to this file
+defined('_JEXEC') or die;
+
+/**
+ * Script File of Ehealthportal Component
+ *
+ * @since 3.6
+ */
+class Com_EhealthportalInstallerScript implements InstallerScriptInterface
+{
+ /**
+ * The CMS Application.
+ *
+ * @var CMSApplication
+ * @since 4.4.2
+ */
+ protected CMSApplication $app;
+
+ /**
+ * The database class.
+ *
+ * @since 4.4.2
+ */
+ protected $db;
+
+ /**
+ * The version number of the extension.
+ *
+ * @var string
+ * @since 3.6
+ */
+ protected $release;
+
+ /**
+ * The table the parameters are stored in.
+ *
+ * @var string
+ * @since 3.6
+ */
+ protected $paramTable;
+
+ /**
+ * The extension name. This should be set in the installer script.
+ *
+ * @var string
+ * @since 3.6
+ */
+ protected $extension;
+
+ /**
+ * A list of files to be deleted
+ *
+ * @var array
+ * @since 3.6
+ */
+ protected $deleteFiles = [];
+
+ /**
+ * A list of folders to be deleted
+ *
+ * @var array
+ * @since 3.6
+ */
+ protected $deleteFolders = [];
+
+ /**
+ * A list of CLI script files to be copied to the cli directory
+ *
+ * @var array
+ * @since 3.6
+ */
+ protected $cliScriptFiles = [];
+
+ /**
+ * Minimum PHP version required to install the extension
+ *
+ * @var string
+ * @since 3.6
+ */
+ protected $minimumPhp;
+
+ /**
+ * Minimum Joomla! version required to install the extension
+ *
+ * @var string
+ * @since 3.6
+ */
+ protected $minimumJoomla;
+
+ /**
+ * Extension script constructor.
+ *
+ * @since 3.0.0
+ */
+ public function __construct()
+ {
+ $this->minimumJoomla = '4.3';
+ $this->minimumPhp = JOOMLA_MINIMUM_PHP;
+ $this->app = Factory::getApplication();
+ $this->db = Factory::getContainer()->get(DatabaseInterface::class);
+
+ // check if the files exist
+ if (is_file(JPATH_ROOT . '/administrator/components/com_ehealthportal/ehealthportal.php'))
+ {
+ // remove Joomla 3 files
+ $this->deleteFiles = [
+ '/administrator/components/com_ehealthportal/ehealthportal.php',
+ '/administrator/components/com_ehealthportal/controller.php',
+ '/components/com_ehealthportal/ehealthportal.php',
+ '/components/com_ehealthportal/controller.php',
+ '/components/com_ehealthportal/router.php',
+ ];
+ }
+
+ // check if the Folders exist
+ if (is_dir(JPATH_ROOT . '/administrator/components/com_ehealthportal/modules'))
+ {
+ // remove Joomla 3 folder
+ $this->deleteFolders = [
+ '/administrator/components/com_ehealthportal/controllers',
+ '/administrator/components/com_ehealthportal/helpers',
+ '/administrator/components/com_ehealthportal/modules',
+ '/administrator/components/com_ehealthportal/tables',
+ '/administrator/components/com_ehealthportal/views',
+ '/components/com_ehealthportal/controllers',
+ '/components/com_ehealthportal/helpers',
+ '/components/com_ehealthportal/modules',
+ '/components/com_ehealthportal/views',
+ ];
+ }
+ }
+
+ /**
+ * Function called after the extension is installed.
+ *
+ * @param InstallerAdapter $adapter The adapter calling this method
+ *
+ * @return boolean True on success
+ *
+ * @since 4.2.0
+ */
+ public function install(InstallerAdapter $adapter): bool {return true;}
+
+ /**
+ * Function called after the extension is updated.
+ *
+ * @param InstallerAdapter $adapter The adapter calling this method
+ *
+ * @return boolean True on success
+ *
+ * @since 4.2.0
+ */
+ public function update(InstallerAdapter $adapter): bool {return true;}
+
+ /**
+ * Function called after the extension is uninstalled.
+ *
+ * @param InstallerAdapter $adapter The adapter calling this method
+ *
+ * @return boolean True on success
+ *
+ * @since 4.2.0
+ */
+ public function uninstall(InstallerAdapter $adapter): bool
+ {
+ // Remove Related Component Data.
+
+ // Remove Payment Data
+ $this->removeViewData("com_ehealthportal.payment");
+
+ // Remove General medical check up Data
+ $this->removeViewData("com_ehealthportal.general_medical_check_up");
+
+ // Remove Antenatal care Data
+ $this->removeViewData("com_ehealthportal.antenatal_care");
+
+ // Remove Immunisation Data
+ $this->removeViewData("com_ehealthportal.immunisation");
+
+ // Remove Vmmc Data
+ $this->removeViewData("com_ehealthportal.vmmc");
+
+ // Remove Prostate and testicular cancer Data
+ $this->removeViewData("com_ehealthportal.prostate_and_testicular_cancer");
+
+ // Remove Tuberculosis Data
+ $this->removeViewData("com_ehealthportal.tuberculosis");
+
+ // Remove Hiv counseling and testing Data
+ $this->removeViewData("com_ehealthportal.hiv_counseling_and_testing");
+
+ // Remove Family planning Data
+ $this->removeViewData("com_ehealthportal.family_planning");
+
+ // Remove Health education Data
+ $this->removeViewData("com_ehealthportal.health_education");
+
+ // Remove Cervical cancer Data
+ $this->removeViewData("com_ehealthportal.cervical_cancer");
+
+ // Remove Breast cancer Data
+ $this->removeViewData("com_ehealthportal.breast_cancer");
+
+ // Remove Test Data
+ $this->removeViewData("com_ehealthportal.test");
+
+ // Remove Foetal lie Data
+ $this->removeViewData("com_ehealthportal.foetal_lie");
+
+ // Remove Immunisation vaccine type Data
+ $this->removeViewData("com_ehealthportal.immunisation_vaccine_type");
+
+ // Remove Foetal engagement Data
+ $this->removeViewData("com_ehealthportal.foetal_engagement");
+
+ // Remove Foetal presentation Data
+ $this->removeViewData("com_ehealthportal.foetal_presentation");
+
+ // Remove Testing reason Data
+ $this->removeViewData("com_ehealthportal.testing_reason");
+
+ // Remove Counseling type Data
+ $this->removeViewData("com_ehealthportal.counseling_type");
+
+ // Remove Health education topic Data
+ $this->removeViewData("com_ehealthportal.health_education_topic");
+
+ // Remove Immunisation type Data
+ $this->removeViewData("com_ehealthportal.immunisation_type");
+
+ // Remove Strength Data
+ $this->removeViewData("com_ehealthportal.strength");
+
+ // Remove Referral Data
+ $this->removeViewData("com_ehealthportal.referral");
+
+ // Remove Planning type Data
+ $this->removeViewData("com_ehealthportal.planning_type");
+
+ // Remove Diagnosis type Data
+ $this->removeViewData("com_ehealthportal.diagnosis_type");
+
+ // Remove Nonpay reason Data
+ $this->removeViewData("com_ehealthportal.nonpay_reason");
+
+ // Remove Medication Data
+ $this->removeViewData("com_ehealthportal.medication");
+
+ // Remove Payment type Data
+ $this->removeViewData("com_ehealthportal.payment_type");
+
+ // Remove Administration part Data
+ $this->removeViewData("com_ehealthportal.administration_part");
+
+ // Remove Site Data
+ $this->removeViewData("com_ehealthportal.site");
+
+ // Remove Unit Data
+ $this->removeViewData("com_ehealthportal.unit");
+
+ // Remove Clinic Data
+ $this->removeViewData("com_ehealthportal.clinic");
+
+ // Remove Asset Data.
+ $this->removeAssetData();
+
+ // Revert the assets table rules column back to the default.
+ $this->removeDatabaseAssetsRulesFix();
+
+ // Remove component from action logs extensions table.
+ $this->removeActionLogsExtensions();
+
+ // Remove Payment from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.payment');
+
+ // Remove General_medical_check_up from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.general_medical_check_up');
+
+ // Remove Antenatal_care from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.antenatal_care');
+
+ // Remove Immunisation from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.immunisation');
+
+ // Remove Vmmc from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.vmmc');
+
+ // Remove Prostate_and_testicular_cancer from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.prostate_and_testicular_cancer');
+
+ // Remove Tuberculosis from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.tuberculosis');
+
+ // Remove Hiv_counseling_and_testing from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.hiv_counseling_and_testing');
+
+ // Remove Family_planning from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.family_planning');
+
+ // Remove Health_education from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.health_education');
+
+ // Remove Cervical_cancer from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.cervical_cancer');
+
+ // Remove Breast_cancer from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.breast_cancer');
+
+ // Remove Test from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.test');
+
+ // Remove Foetal_lie from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.foetal_lie');
+
+ // Remove Immunisation_vaccine_type from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.immunisation_vaccine_type');
+
+ // Remove Foetal_engagement from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.foetal_engagement');
+
+ // Remove Foetal_presentation from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.foetal_presentation');
+
+ // Remove Testing_reason from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.testing_reason');
+
+ // Remove Counseling_type from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.counseling_type');
+
+ // Remove Health_education_topic from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.health_education_topic');
+
+ // Remove Immunisation_type from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.immunisation_type');
+
+ // Remove Strength from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.strength');
+
+ // Remove Referral from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.referral');
+
+ // Remove Planning_type from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.planning_type');
+
+ // Remove Diagnosis_type from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.diagnosis_type');
+
+ // Remove Nonpay_reason from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.nonpay_reason');
+
+ // Remove Medication from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.medication');
+
+ // Remove Payment_type from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.payment_type');
+
+ // Remove Administration_part from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.administration_part');
+
+ // Remove Site from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.site');
+
+ // Remove Unit from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.unit');
+
+ // Remove Clinic from action logs config table.
+ $this->removeActionLogConfig('com_ehealthportal.clinic');
+ // little notice as after service, in case of bad experience with component.
+ echo '
+
Did something go wrong? Are you disappointed?
+
Please let me know at joomla@vdm.io .
+ We at Vast Development Method are committed to building extensions that performs proficiently! You can help us, really!
+ Send me your thoughts on improvements that is needed, trust me, I will be very grateful!
+ Visit us at https://git.vdm.dev/joomla/eHealth-Portal today!
';
+
+ return true;
+ }
+
+ /**
+ * Function called before extension installation/update/removal procedure commences.
+ *
+ * @param string $type The type of change (install or discover_install, update, uninstall)
+ * @param InstallerAdapter $adapter The adapter calling this method
+ *
+ * @return boolean True on success
+ *
+ * @since 4.2.0
+ */
+ public function preflight(string $type, InstallerAdapter $adapter): bool
+ {
+ // Check for the minimum PHP version before continuing
+ if (!empty($this->minimumPhp) && version_compare(PHP_VERSION, $this->minimumPhp, '<'))
+ {
+ Log::add(Text::sprintf('JLIB_INSTALLER_MINIMUM_PHP', $this->minimumPhp), Log::WARNING, 'jerror');
+
+ return false;
+ }
+
+ // Check for the minimum Joomla version before continuing
+ if (!empty($this->minimumJoomla) && version_compare(JVERSION, $this->minimumJoomla, '<'))
+ {
+ Log::add(Text::sprintf('JLIB_INSTALLER_MINIMUM_JOOMLA', $this->minimumJoomla), Log::WARNING, 'jerror');
+
+ return false;
+ }
+
+ // Extension manifest file version
+ $this->extension = $adapter->getName();
+ $this->release = $adapter->getManifest()->version;
+
+ // do any updates needed
+ if ($type === 'update')
+ {
+ }
+
+ // do any install needed
+ if ($type === 'install')
+ {
+ }
+
+ return true;
+ }
+
+ /**
+ * Function called after extension installation/update/removal procedure commences.
+ *
+ * @param string $type The type of change (install or discover_install, update, uninstall)
+ * @param InstallerAdapter $adapter The adapter calling this method
+ *
+ * @return boolean True on success
+ *
+ * @since 4.2.0
+ */
+ public function postflight(string $type, InstallerAdapter $adapter): bool
+ {
+ // We check if we have dynamic folders to copy
+ $this->moveFolders($adapter);
+
+ // set the default component settings
+ if ($type === 'install')
+ {
+
+ // Install Payment Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Payment',
+ // typeAlias
+ 'com_ehealthportal.payment',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_payment","key": "id","type": "PaymentTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","payment_category":"payment_category","payment_type":"payment_type","payment_amount":"payment_amount","nonpay_reason":"nonpay_reason","receipt_no":"receipt_no","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/payment.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","payment_type","nonpay_reason"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "payment_type","targetTable": "#__ehealthportal_payment_type","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "nonpay_reason","targetTable": "#__ehealthportal_nonpay_reason","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install General medical check up Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal General_medical_check_up',
+ // typeAlias
+ 'com_ehealthportal.general_medical_check_up',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_general_medical_check_up","key": "id","type": "General_medical_check_upTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","bp_diastolic_one":"bp_diastolic_one","bp_systolic_one":"bp_systolic_one","temp_one":"temp_one","weight":"weight","pulse":"pulse","chronic_medication":"chronic_medication","bp_diastolic_two":"bp_diastolic_two","bp_systolic_two":"bp_systolic_two","temp_two":"temp_two","height":"height","bmi":"bmi","complaint":"complaint","investigations":"investigations","notes":"notes","diagnosis":"diagnosis","referral":"referral","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/general_medical_check_up.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","bp_diastolic_one","bp_systolic_one","pulse","bp_diastolic_two","bp_systolic_two","diagnosis","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "diagnosis","targetTable": "#__ehealthportal_diagnosis_type","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Antenatal care Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Antenatal_care',
+ // typeAlias
+ 'com_ehealthportal.antenatal_care',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_antenatal_care","key": "id","type": "Antenatal_careTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","foetal_lie":"foetal_lie","foetal_presentation":"foetal_presentation","foetal_engagement":"foetal_engagement","foetal_heart_rate":"foetal_heart_rate","foetal_movements":"foetal_movements","guid":"guid","caesarean_sections":"caesarean_sections","last_menstrual_period":"last_menstrual_period","normal_births":"normal_births","still_births":"still_births","miscarriages":"miscarriages","live_births":"live_births","pregnancies_excl":"pregnancies_excl"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/antenatal_care.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","foetal_lie","foetal_presentation","foetal_engagement","foetal_heart_rate","caesarean_sections","normal_births","still_births","miscarriages","live_births","pregnancies_excl"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "foetal_lie","targetTable": "#__ehealthportal_foetal_lie","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "foetal_presentation","targetTable": "#__ehealthportal_foetal_presentation","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "foetal_engagement","targetTable": "#__ehealthportal_foetal_engagement","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Immunisation Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Immunisation',
+ // typeAlias
+ 'com_ehealthportal.immunisation',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_immunisation","key": "id","type": "ImmunisationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","referral":"referral","immunisation_up_to_date":"immunisation_up_to_date","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/immunisation.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Vmmc Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Vmmc',
+ // typeAlias
+ 'com_ehealthportal.vmmc',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_vmmc","key": "id","type": "VmmcTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","are_you_circumcised":"are_you_circumcised","info_ben_vmcc":"info_ben_vmcc","interested_in_vmmc":"interested_in_vmmc","vmmc_gender":"vmmc_gender","reason":"reason","referral":"referral","guid":"guid","partner_circumcised":"partner_circumcised"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/vmmc.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Prostate and testicular cancer Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Prostate_and_testicular_cancer',
+ // typeAlias
+ 'com_ehealthportal.prostate_and_testicular_cancer',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_prostate_and_testicular_cancer","key": "id","type": "Prostate_and_testicular_cancerTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","ptc_age":"ptc_age","ptc_fam_history":"ptc_fam_history","ptc_diet":"ptc_diet","ptc_phy_activity":"ptc_phy_activity","ptc_overweight":"ptc_overweight","ptc_urinate":"ptc_urinate","ptc_urine_freq":"ptc_urine_freq","referral":"referral","reason":"reason","txt_ptc_urine_freq":"txt_ptc_urine_freq","txt_ptc_urinate":"txt_ptc_urinate","txt_ptc_age":"txt_ptc_age","txt_ptc_phy_activity":"txt_ptc_phy_activity","txt_ptc_diet":"txt_ptc_diet","txt_ptc_fam_history":"txt_ptc_fam_history","guid":"guid","txt_ptc_overweight":"txt_ptc_overweight"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/prostate_and_testicular_cancer.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Tuberculosis Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Tuberculosis',
+ // typeAlias
+ 'com_ehealthportal.tuberculosis',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_tuberculosis","key": "id","type": "TuberculosisTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","recurring_night_sweats":"recurring_night_sweats","tb_fever":"tb_fever","persistent_cough":"persistent_cough","blood_streaked_sputum":"blood_streaked_sputum","unusual_tiredness":"unusual_tiredness","pain_in_chest":"pain_in_chest","shortness_of_breath":"shortness_of_breath","diagnosed_with_disease":"diagnosed_with_disease","tb_exposed":"tb_exposed","tb_treatment":"tb_treatment","date_of_treatment":"date_of_treatment","treating_dhc":"treating_dhc","sputum_collection_one":"sputum_collection_one","tb_reason_one":"tb_reason_one","sputum_result_one":"sputum_result_one","referred_second_sputum":"referred_second_sputum","tb_reason_two":"tb_reason_two","sputum_result_two":"sputum_result_two","weight_loss_wdieting":"weight_loss_wdieting","reason":"reason","guid":"guid","referral":"referral"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/tuberculosis.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Hiv counseling and testing Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Hiv_counseling_and_testing',
+ // typeAlias
+ 'com_ehealthportal.hiv_counseling_and_testing',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_hiv_counseling_and_testing","key": "id","type": "Hiv_counseling_and_testingTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","counseling_type":"counseling_type","testing_reason":"testing_reason","last_test_date":"last_test_date","prev_test_result":"prev_test_result","test_result_one":"test_result_one","test_result_two":"test_result_two","final_test_result":"final_test_result","eqa":"eqa","referral":"referral","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/hiv_counseling_and_testing.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","testing_reason","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "testing_reason","targetTable": "#__ehealthportal_testing_reason","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Family planning Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Family_planning',
+ // typeAlias
+ 'com_ehealthportal.family_planning',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_family_planning","key": "id","type": "Family_planningTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "diagnosis","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","diagnosis":"diagnosis","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/family_planning.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","diagnosis"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "diagnosis","targetTable": "#__ehealthportal_planning_type","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Health education Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Health_education',
+ // typeAlias
+ 'com_ehealthportal.health_education',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_health_education","key": "id","type": "Health_educationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"education_type":"education_type","health_education_topic":"health_education_topic","patient":"patient","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/health_education.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","health_education_topic"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "health_education_topic","targetTable": "#__ehealthportal_health_education_topic","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Cervical cancer Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Cervical_cancer',
+ // typeAlias
+ 'com_ehealthportal.cervical_cancer',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_cervical_cancer","key": "id","type": "Cervical_cancerTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","cc_viginal_bleeding":"cc_viginal_bleeding","cc_v_discharge":"cc_v_discharge","cc_periods":"cc_periods","cc_smoking":"cc_smoking","cc_sex_actve":"cc_sex_actve","cc_sex_partner":"cc_sex_partner","pap_smear_collection":"pap_smear_collection","cc_result":"cc_result","referral":"referral","reason":"reason","cc_reason":"cc_reason","txt_cc_v_discharge":"txt_cc_v_discharge","txt_cc_sex_partner":"txt_cc_sex_partner","txt_cc_viginal_bleeding":"txt_cc_viginal_bleeding","txt_cc_smoking":"txt_cc_smoking","txt_cc_periods":"txt_cc_periods","guid":"guid","txt_cc_sex_actve":"txt_cc_sex_actve"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/cervical_cancer.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Breast cancer Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Breast_cancer',
+ // typeAlias
+ 'com_ehealthportal.breast_cancer',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_breast_cancer","key": "id","type": "Breast_cancerTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","bc_age_range":"bc_age_range","bc_family_history":"bc_family_history","bc_race":"bc_race","bc_breastfeeding":"bc_breastfeeding","bc_preg_freq":"bc_preg_freq","bc_preg_age":"bc_preg_age","bc_history_hrt":"bc_history_hrt","bc_reg_exercise":"bc_reg_exercise","bc_overweight":"bc_overweight","bc_lump_near_breast":"bc_lump_near_breast","bc_dimpling":"bc_dimpling","bc_inward_nipple":"bc_inward_nipple","bc_nipple_discharge":"bc_nipple_discharge","bc_abnormal_skin":"bc_abnormal_skin","bc_breast_shape":"bc_breast_shape","referral":"referral","reason":"reason","guid":"guid","txt_bc_breast_shape":"txt_bc_breast_shape","txt_bc_abnormal_skin":"txt_bc_abnormal_skin","txt_bc_nipple_discharge":"txt_bc_nipple_discharge","txt_bc_dimpling":"txt_bc_dimpling","txt_bc_lump_near_breast":"txt_bc_lump_near_breast","txt_bc_inward_nipple":"txt_bc_inward_nipple"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/breast_cancer.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","bc_preg_freq","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Test Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Test',
+ // typeAlias
+ 'com_ehealthportal.test',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_test","key": "id","type": "TestTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","urine_test_result":"urine_test_result","glucose_first_reading":"glucose_first_reading","glucose_second_reading":"glucose_second_reading","haemoglobin_reading":"haemoglobin_reading","cholesterol_reading":"cholesterol_reading","syphilis_first_reading":"syphilis_first_reading","syphilis_second_reading":"syphilis_second_reading","hepatitis_first_reading":"hepatitis_first_reading","hepatitis_second_reading":"hepatitis_second_reading","malaria_first_reading":"malaria_first_reading","malaria_second_reading":"malaria_second_reading","pregnancy_first_reading":"pregnancy_first_reading","pregnancy_second_reading":"pregnancy_second_reading","referral":"referral","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/test.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","glucose_first_reading","glucose_second_reading","haemoglobin_reading","cholesterol_reading","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Foetal lie Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Foetal_lie',
+ // typeAlias
+ 'com_ehealthportal.foetal_lie',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_foetal_lie","key": "id","type": "Foetal_lieTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/foetal_lie.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Immunisation vaccine type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Immunisation_vaccine_type',
+ // typeAlias
+ 'com_ehealthportal.immunisation_vaccine_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_immunisation_vaccine_type","key": "id","type": "Immunisation_vaccine_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","administration_part":"administration_part","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/immunisation_vaccine_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","administration_part"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "administration_part","targetTable": "#__ehealthportal_administration_part","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Foetal engagement Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Foetal_engagement',
+ // typeAlias
+ 'com_ehealthportal.foetal_engagement',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_foetal_engagement","key": "id","type": "Foetal_engagementTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/foetal_engagement.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Foetal presentation Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Foetal_presentation',
+ // typeAlias
+ 'com_ehealthportal.foetal_presentation',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_foetal_presentation","key": "id","type": "Foetal_presentationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/foetal_presentation.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Testing reason Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Testing_reason',
+ // typeAlias
+ 'com_ehealthportal.testing_reason',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_testing_reason","key": "id","type": "Testing_reasonTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/testing_reason.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Counseling type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Counseling_type',
+ // typeAlias
+ 'com_ehealthportal.counseling_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_counseling_type","key": "id","type": "Counseling_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/counseling_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Health education topic Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Health_education_topic',
+ // typeAlias
+ 'com_ehealthportal.health_education_topic',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_health_education_topic","key": "id","type": "Health_education_topicTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/health_education_topic.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Immunisation type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Immunisation_type',
+ // typeAlias
+ 'com_ehealthportal.immunisation_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_immunisation_type","key": "id","type": "Immunisation_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/immunisation_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Strength Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Strength',
+ // typeAlias
+ 'com_ehealthportal.strength',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_strength","key": "id","type": "StrengthTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/strength.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Referral Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Referral',
+ // typeAlias
+ 'com_ehealthportal.referral',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_referral","key": "id","type": "ReferralTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/referral.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Planning type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Planning_type',
+ // typeAlias
+ 'com_ehealthportal.planning_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_planning_type","key": "id","type": "Planning_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/planning_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Diagnosis type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Diagnosis_type',
+ // typeAlias
+ 'com_ehealthportal.diagnosis_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_diagnosis_type","key": "id","type": "Diagnosis_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/diagnosis_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Nonpay reason Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Nonpay_reason',
+ // typeAlias
+ 'com_ehealthportal.nonpay_reason',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_nonpay_reason","key": "id","type": "Nonpay_reasonTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/nonpay_reason.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Medication Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Medication',
+ // typeAlias
+ 'com_ehealthportal.medication',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_medication","key": "id","type": "MedicationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/medication.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Payment type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Payment_type',
+ // typeAlias
+ 'com_ehealthportal.payment_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_payment_type","key": "id","type": "Payment_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/payment_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Administration part Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Administration_part',
+ // typeAlias
+ 'com_ehealthportal.administration_part',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_administration_part","key": "id","type": "Administration_partTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/administration_part.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Site Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Site',
+ // typeAlias
+ 'com_ehealthportal.site',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_site","key": "id","type": "SiteTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "site_name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"site_name":"site_name","description":"description","site_region":"site_region","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/site.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Unit Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Unit',
+ // typeAlias
+ 'com_ehealthportal.unit',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_unit","key": "id","type": "UnitTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/unit.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Install Clinic Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Clinic',
+ // typeAlias
+ 'com_ehealthportal.clinic',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_clinic","key": "id","type": "ClinicTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "clinic_name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"clinic_name":"clinic_name","description":"description","guid":"guid","clinic_type":"clinic_type","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/clinic.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+
+
+ // Fix the assets table rules column size.
+ $this->setDatabaseAssetsRulesFix(43040, "TEXT");
+ // Install the global extension params.
+ $this->setExtensionsParams(
+ '{"autorName":"Llewellyn van der Merwe","autorEmail":"joomla@vdm.io","check_in":"-1 day","save_history":"1","history_limit":"10"}'
+ );
+
+
+ echo '';
+
+ // Add component to the action logs extensions table.
+ $this->setActionLogsExtensions();
+
+ // Add Payment to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PAYMENT',
+ // typeAlias
+ 'com_ehealthportal.payment',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_payment',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add General_medical_check_up to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'GENERAL_MEDICAL_CHECK_UP',
+ // typeAlias
+ 'com_ehealthportal.general_medical_check_up',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_general_medical_check_up',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Antenatal_care to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'ANTENATAL_CARE',
+ // typeAlias
+ 'com_ehealthportal.antenatal_care',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_antenatal_care',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Immunisation to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'IMMUNISATION',
+ // typeAlias
+ 'com_ehealthportal.immunisation',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_immunisation',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Vmmc to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'VMMC',
+ // typeAlias
+ 'com_ehealthportal.vmmc',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_vmmc',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Prostate_and_testicular_cancer to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PROSTATE_AND_TESTICULAR_CANCER',
+ // typeAlias
+ 'com_ehealthportal.prostate_and_testicular_cancer',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_prostate_and_testicular_cancer',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Tuberculosis to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'TUBERCULOSIS',
+ // typeAlias
+ 'com_ehealthportal.tuberculosis',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_tuberculosis',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Hiv_counseling_and_testing to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'HIV_COUNSELING_AND_TESTING',
+ // typeAlias
+ 'com_ehealthportal.hiv_counseling_and_testing',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_hiv_counseling_and_testing',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Family_planning to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FAMILY_PLANNING',
+ // typeAlias
+ 'com_ehealthportal.family_planning',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'diagnosis',
+ // tableName
+ '#__ehealthportal_family_planning',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Health_education to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'HEALTH_EDUCATION',
+ // typeAlias
+ 'com_ehealthportal.health_education',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_health_education',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Cervical_cancer to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'CERVICAL_CANCER',
+ // typeAlias
+ 'com_ehealthportal.cervical_cancer',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_cervical_cancer',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Breast_cancer to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'BREAST_CANCER',
+ // typeAlias
+ 'com_ehealthportal.breast_cancer',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_breast_cancer',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Test to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'TEST',
+ // typeAlias
+ 'com_ehealthportal.test',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_test',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Foetal_lie to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FOETAL_LIE',
+ // typeAlias
+ 'com_ehealthportal.foetal_lie',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_foetal_lie',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Immunisation_vaccine_type to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'IMMUNISATION_VACCINE_TYPE',
+ // typeAlias
+ 'com_ehealthportal.immunisation_vaccine_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_immunisation_vaccine_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Foetal_engagement to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FOETAL_ENGAGEMENT',
+ // typeAlias
+ 'com_ehealthportal.foetal_engagement',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_foetal_engagement',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Foetal_presentation to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FOETAL_PRESENTATION',
+ // typeAlias
+ 'com_ehealthportal.foetal_presentation',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_foetal_presentation',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Testing_reason to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'TESTING_REASON',
+ // typeAlias
+ 'com_ehealthportal.testing_reason',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_testing_reason',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Counseling_type to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'COUNSELING_TYPE',
+ // typeAlias
+ 'com_ehealthportal.counseling_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_counseling_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Health_education_topic to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'HEALTH_EDUCATION_TOPIC',
+ // typeAlias
+ 'com_ehealthportal.health_education_topic',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_health_education_topic',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Immunisation_type to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'IMMUNISATION_TYPE',
+ // typeAlias
+ 'com_ehealthportal.immunisation_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_immunisation_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Strength to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'STRENGTH',
+ // typeAlias
+ 'com_ehealthportal.strength',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_strength',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Referral to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'REFERRAL',
+ // typeAlias
+ 'com_ehealthportal.referral',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_referral',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Planning_type to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PLANNING_TYPE',
+ // typeAlias
+ 'com_ehealthportal.planning_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_planning_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Diagnosis_type to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'DIAGNOSIS_TYPE',
+ // typeAlias
+ 'com_ehealthportal.diagnosis_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_diagnosis_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Nonpay_reason to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'NONPAY_REASON',
+ // typeAlias
+ 'com_ehealthportal.nonpay_reason',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_nonpay_reason',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Medication to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'MEDICATION',
+ // typeAlias
+ 'com_ehealthportal.medication',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_medication',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Payment_type to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PAYMENT_TYPE',
+ // typeAlias
+ 'com_ehealthportal.payment_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_payment_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Administration_part to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'ADMINISTRATION_PART',
+ // typeAlias
+ 'com_ehealthportal.administration_part',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_administration_part',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Site to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'SITE',
+ // typeAlias
+ 'com_ehealthportal.site',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'site_name',
+ // tableName
+ '#__ehealthportal_site',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Unit to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'UNIT',
+ // typeAlias
+ 'com_ehealthportal.unit',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_unit',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add Clinic to the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'CLINIC',
+ // typeAlias
+ 'com_ehealthportal.clinic',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'clinic_name',
+ // tableName
+ '#__ehealthportal_clinic',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+ }
+
+ // do any updates needed
+ if ($type === 'update')
+ {
+
+ // Update Payment Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Payment',
+ // typeAlias
+ 'com_ehealthportal.payment',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_payment","key": "id","type": "PaymentTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","payment_category":"payment_category","payment_type":"payment_type","payment_amount":"payment_amount","nonpay_reason":"nonpay_reason","receipt_no":"receipt_no","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/payment.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","payment_type","nonpay_reason"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "payment_type","targetTable": "#__ehealthportal_payment_type","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "nonpay_reason","targetTable": "#__ehealthportal_nonpay_reason","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update General medical check up Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal General_medical_check_up',
+ // typeAlias
+ 'com_ehealthportal.general_medical_check_up',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_general_medical_check_up","key": "id","type": "General_medical_check_upTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","bp_diastolic_one":"bp_diastolic_one","bp_systolic_one":"bp_systolic_one","temp_one":"temp_one","weight":"weight","pulse":"pulse","chronic_medication":"chronic_medication","bp_diastolic_two":"bp_diastolic_two","bp_systolic_two":"bp_systolic_two","temp_two":"temp_two","height":"height","bmi":"bmi","complaint":"complaint","investigations":"investigations","notes":"notes","diagnosis":"diagnosis","referral":"referral","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/general_medical_check_up.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","bp_diastolic_one","bp_systolic_one","pulse","bp_diastolic_two","bp_systolic_two","diagnosis","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "diagnosis","targetTable": "#__ehealthportal_diagnosis_type","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Antenatal care Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Antenatal_care',
+ // typeAlias
+ 'com_ehealthportal.antenatal_care',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_antenatal_care","key": "id","type": "Antenatal_careTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","foetal_lie":"foetal_lie","foetal_presentation":"foetal_presentation","foetal_engagement":"foetal_engagement","foetal_heart_rate":"foetal_heart_rate","foetal_movements":"foetal_movements","guid":"guid","caesarean_sections":"caesarean_sections","last_menstrual_period":"last_menstrual_period","normal_births":"normal_births","still_births":"still_births","miscarriages":"miscarriages","live_births":"live_births","pregnancies_excl":"pregnancies_excl"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/antenatal_care.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","foetal_lie","foetal_presentation","foetal_engagement","foetal_heart_rate","caesarean_sections","normal_births","still_births","miscarriages","live_births","pregnancies_excl"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "foetal_lie","targetTable": "#__ehealthportal_foetal_lie","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "foetal_presentation","targetTable": "#__ehealthportal_foetal_presentation","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "foetal_engagement","targetTable": "#__ehealthportal_foetal_engagement","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Immunisation Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Immunisation',
+ // typeAlias
+ 'com_ehealthportal.immunisation',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_immunisation","key": "id","type": "ImmunisationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","referral":"referral","immunisation_up_to_date":"immunisation_up_to_date","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/immunisation.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Vmmc Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Vmmc',
+ // typeAlias
+ 'com_ehealthportal.vmmc',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_vmmc","key": "id","type": "VmmcTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","are_you_circumcised":"are_you_circumcised","info_ben_vmcc":"info_ben_vmcc","interested_in_vmmc":"interested_in_vmmc","vmmc_gender":"vmmc_gender","reason":"reason","referral":"referral","guid":"guid","partner_circumcised":"partner_circumcised"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/vmmc.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Prostate and testicular cancer Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Prostate_and_testicular_cancer',
+ // typeAlias
+ 'com_ehealthportal.prostate_and_testicular_cancer',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_prostate_and_testicular_cancer","key": "id","type": "Prostate_and_testicular_cancerTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","ptc_age":"ptc_age","ptc_fam_history":"ptc_fam_history","ptc_diet":"ptc_diet","ptc_phy_activity":"ptc_phy_activity","ptc_overweight":"ptc_overweight","ptc_urinate":"ptc_urinate","ptc_urine_freq":"ptc_urine_freq","referral":"referral","reason":"reason","txt_ptc_urine_freq":"txt_ptc_urine_freq","txt_ptc_urinate":"txt_ptc_urinate","txt_ptc_age":"txt_ptc_age","txt_ptc_phy_activity":"txt_ptc_phy_activity","txt_ptc_diet":"txt_ptc_diet","txt_ptc_fam_history":"txt_ptc_fam_history","guid":"guid","txt_ptc_overweight":"txt_ptc_overweight"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/prostate_and_testicular_cancer.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Tuberculosis Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Tuberculosis',
+ // typeAlias
+ 'com_ehealthportal.tuberculosis',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_tuberculosis","key": "id","type": "TuberculosisTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","recurring_night_sweats":"recurring_night_sweats","tb_fever":"tb_fever","persistent_cough":"persistent_cough","blood_streaked_sputum":"blood_streaked_sputum","unusual_tiredness":"unusual_tiredness","pain_in_chest":"pain_in_chest","shortness_of_breath":"shortness_of_breath","diagnosed_with_disease":"diagnosed_with_disease","tb_exposed":"tb_exposed","tb_treatment":"tb_treatment","date_of_treatment":"date_of_treatment","treating_dhc":"treating_dhc","sputum_collection_one":"sputum_collection_one","tb_reason_one":"tb_reason_one","sputum_result_one":"sputum_result_one","referred_second_sputum":"referred_second_sputum","tb_reason_two":"tb_reason_two","sputum_result_two":"sputum_result_two","weight_loss_wdieting":"weight_loss_wdieting","reason":"reason","guid":"guid","referral":"referral"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/tuberculosis.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Hiv counseling and testing Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Hiv_counseling_and_testing',
+ // typeAlias
+ 'com_ehealthportal.hiv_counseling_and_testing',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_hiv_counseling_and_testing","key": "id","type": "Hiv_counseling_and_testingTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","counseling_type":"counseling_type","testing_reason":"testing_reason","last_test_date":"last_test_date","prev_test_result":"prev_test_result","test_result_one":"test_result_one","test_result_two":"test_result_two","final_test_result":"final_test_result","eqa":"eqa","referral":"referral","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/hiv_counseling_and_testing.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","testing_reason","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "testing_reason","targetTable": "#__ehealthportal_testing_reason","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Family planning Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Family_planning',
+ // typeAlias
+ 'com_ehealthportal.family_planning',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_family_planning","key": "id","type": "Family_planningTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "diagnosis","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","diagnosis":"diagnosis","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/family_planning.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","diagnosis"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "diagnosis","targetTable": "#__ehealthportal_planning_type","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Health education Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Health_education',
+ // typeAlias
+ 'com_ehealthportal.health_education',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_health_education","key": "id","type": "Health_educationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"education_type":"education_type","health_education_topic":"health_education_topic","patient":"patient","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/health_education.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","health_education_topic"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "health_education_topic","targetTable": "#__ehealthportal_health_education_topic","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Cervical cancer Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Cervical_cancer',
+ // typeAlias
+ 'com_ehealthportal.cervical_cancer',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_cervical_cancer","key": "id","type": "Cervical_cancerTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","cc_viginal_bleeding":"cc_viginal_bleeding","cc_v_discharge":"cc_v_discharge","cc_periods":"cc_periods","cc_smoking":"cc_smoking","cc_sex_actve":"cc_sex_actve","cc_sex_partner":"cc_sex_partner","pap_smear_collection":"pap_smear_collection","cc_result":"cc_result","referral":"referral","reason":"reason","cc_reason":"cc_reason","txt_cc_v_discharge":"txt_cc_v_discharge","txt_cc_sex_partner":"txt_cc_sex_partner","txt_cc_viginal_bleeding":"txt_cc_viginal_bleeding","txt_cc_smoking":"txt_cc_smoking","txt_cc_periods":"txt_cc_periods","guid":"guid","txt_cc_sex_actve":"txt_cc_sex_actve"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/cervical_cancer.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Breast cancer Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Breast_cancer',
+ // typeAlias
+ 'com_ehealthportal.breast_cancer',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_breast_cancer","key": "id","type": "Breast_cancerTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","bc_age_range":"bc_age_range","bc_family_history":"bc_family_history","bc_race":"bc_race","bc_breastfeeding":"bc_breastfeeding","bc_preg_freq":"bc_preg_freq","bc_preg_age":"bc_preg_age","bc_history_hrt":"bc_history_hrt","bc_reg_exercise":"bc_reg_exercise","bc_overweight":"bc_overweight","bc_lump_near_breast":"bc_lump_near_breast","bc_dimpling":"bc_dimpling","bc_inward_nipple":"bc_inward_nipple","bc_nipple_discharge":"bc_nipple_discharge","bc_abnormal_skin":"bc_abnormal_skin","bc_breast_shape":"bc_breast_shape","referral":"referral","reason":"reason","guid":"guid","txt_bc_breast_shape":"txt_bc_breast_shape","txt_bc_abnormal_skin":"txt_bc_abnormal_skin","txt_bc_nipple_discharge":"txt_bc_nipple_discharge","txt_bc_dimpling":"txt_bc_dimpling","txt_bc_lump_near_breast":"txt_bc_lump_near_breast","txt_bc_inward_nipple":"txt_bc_inward_nipple"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/breast_cancer.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","bc_preg_freq","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Test Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Test',
+ // typeAlias
+ 'com_ehealthportal.test',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_test","key": "id","type": "TestTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "patient","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"patient":"patient","urine_test_result":"urine_test_result","glucose_first_reading":"glucose_first_reading","glucose_second_reading":"glucose_second_reading","haemoglobin_reading":"haemoglobin_reading","cholesterol_reading":"cholesterol_reading","syphilis_first_reading":"syphilis_first_reading","syphilis_second_reading":"syphilis_second_reading","hepatitis_first_reading":"hepatitis_first_reading","hepatitis_second_reading":"hepatitis_second_reading","malaria_first_reading":"malaria_first_reading","malaria_second_reading":"malaria_second_reading","pregnancy_first_reading":"pregnancy_first_reading","pregnancy_second_reading":"pregnancy_second_reading","referral":"referral","reason":"reason","guid":"guid"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/test.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","glucose_first_reading","glucose_second_reading","haemoglobin_reading","cholesterol_reading","referral"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "referral","targetTable": "#__ehealthportal_referral","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Foetal lie Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Foetal_lie',
+ // typeAlias
+ 'com_ehealthportal.foetal_lie',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_foetal_lie","key": "id","type": "Foetal_lieTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/foetal_lie.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Immunisation vaccine type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Immunisation_vaccine_type',
+ // typeAlias
+ 'com_ehealthportal.immunisation_vaccine_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_immunisation_vaccine_type","key": "id","type": "Immunisation_vaccine_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","administration_part":"administration_part","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/immunisation_vaccine_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","administration_part"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "administration_part","targetTable": "#__ehealthportal_administration_part","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Foetal engagement Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Foetal_engagement',
+ // typeAlias
+ 'com_ehealthportal.foetal_engagement',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_foetal_engagement","key": "id","type": "Foetal_engagementTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/foetal_engagement.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Foetal presentation Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Foetal_presentation',
+ // typeAlias
+ 'com_ehealthportal.foetal_presentation',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_foetal_presentation","key": "id","type": "Foetal_presentationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/foetal_presentation.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Testing reason Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Testing_reason',
+ // typeAlias
+ 'com_ehealthportal.testing_reason',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_testing_reason","key": "id","type": "Testing_reasonTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/testing_reason.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Counseling type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Counseling_type',
+ // typeAlias
+ 'com_ehealthportal.counseling_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_counseling_type","key": "id","type": "Counseling_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/counseling_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Health education topic Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Health_education_topic',
+ // typeAlias
+ 'com_ehealthportal.health_education_topic',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_health_education_topic","key": "id","type": "Health_education_topicTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/health_education_topic.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Immunisation type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Immunisation_type',
+ // typeAlias
+ 'com_ehealthportal.immunisation_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_immunisation_type","key": "id","type": "Immunisation_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/immunisation_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Strength Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Strength',
+ // typeAlias
+ 'com_ehealthportal.strength',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_strength","key": "id","type": "StrengthTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/strength.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Referral Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Referral',
+ // typeAlias
+ 'com_ehealthportal.referral',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_referral","key": "id","type": "ReferralTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/referral.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Planning type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Planning_type',
+ // typeAlias
+ 'com_ehealthportal.planning_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_planning_type","key": "id","type": "Planning_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/planning_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Diagnosis type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Diagnosis_type',
+ // typeAlias
+ 'com_ehealthportal.diagnosis_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_diagnosis_type","key": "id","type": "Diagnosis_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/diagnosis_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Nonpay reason Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Nonpay_reason',
+ // typeAlias
+ 'com_ehealthportal.nonpay_reason',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_nonpay_reason","key": "id","type": "Nonpay_reasonTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/nonpay_reason.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Medication Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Medication',
+ // typeAlias
+ 'com_ehealthportal.medication',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_medication","key": "id","type": "MedicationTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/medication.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Payment type Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Payment_type',
+ // typeAlias
+ 'com_ehealthportal.payment_type',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_payment_type","key": "id","type": "Payment_typeTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/payment_type.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Administration part Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Administration_part',
+ // typeAlias
+ 'com_ehealthportal.administration_part',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_administration_part","key": "id","type": "Administration_partTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/administration_part.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Site Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Site',
+ // typeAlias
+ 'com_ehealthportal.site',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_site","key": "id","type": "SiteTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "site_name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"site_name":"site_name","description":"description","site_region":"site_region","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/site.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Unit Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Unit',
+ // typeAlias
+ 'com_ehealthportal.unit',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_unit","key": "id","type": "UnitTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/unit.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+ // Update Clinic Content Types.
+ $this->setContentType(
+ // typeTitle
+ 'Ehealthportal Clinic',
+ // typeAlias
+ 'com_ehealthportal.clinic',
+ // table
+ '{"special": {"dbtable": "#__ehealthportal_clinic","key": "id","type": "ClinicTable","prefix": "JCB\Component\Ehealthportal\Administrator\Table"}}',
+ // rules
+ '',
+ // fieldMappings
+ '{"common": {"core_content_item_id": "id","core_title": "clinic_name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"clinic_name":"clinic_name","description":"description","guid":"guid","clinic_type":"clinic_type","alias":"alias"}}',
+ // router
+ '',
+ // contentHistoryOptions
+ '{"formFile": "administrator/components/com_ehealthportal/forms/clinic.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}'
+ );
+
+
+
+ echo '
+
+
+
Upgrade to Version 4.0.0 Was Successful! Let us know if anything is not working as expected. ';
+
+ // Add/Update component in the action logs extensions table.
+ $this->setActionLogsExtensions();
+
+ // Add/Update Payment in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PAYMENT',
+ // typeAlias
+ 'com_ehealthportal.payment',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_payment',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update General_medical_check_up in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'GENERAL_MEDICAL_CHECK_UP',
+ // typeAlias
+ 'com_ehealthportal.general_medical_check_up',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_general_medical_check_up',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Antenatal_care in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'ANTENATAL_CARE',
+ // typeAlias
+ 'com_ehealthportal.antenatal_care',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_antenatal_care',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Immunisation in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'IMMUNISATION',
+ // typeAlias
+ 'com_ehealthportal.immunisation',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_immunisation',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Vmmc in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'VMMC',
+ // typeAlias
+ 'com_ehealthportal.vmmc',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_vmmc',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Prostate_and_testicular_cancer in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PROSTATE_AND_TESTICULAR_CANCER',
+ // typeAlias
+ 'com_ehealthportal.prostate_and_testicular_cancer',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_prostate_and_testicular_cancer',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Tuberculosis in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'TUBERCULOSIS',
+ // typeAlias
+ 'com_ehealthportal.tuberculosis',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_tuberculosis',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Hiv_counseling_and_testing in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'HIV_COUNSELING_AND_TESTING',
+ // typeAlias
+ 'com_ehealthportal.hiv_counseling_and_testing',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_hiv_counseling_and_testing',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Family_planning in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FAMILY_PLANNING',
+ // typeAlias
+ 'com_ehealthportal.family_planning',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'diagnosis',
+ // tableName
+ '#__ehealthportal_family_planning',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Health_education in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'HEALTH_EDUCATION',
+ // typeAlias
+ 'com_ehealthportal.health_education',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_health_education',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Cervical_cancer in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'CERVICAL_CANCER',
+ // typeAlias
+ 'com_ehealthportal.cervical_cancer',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_cervical_cancer',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Breast_cancer in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'BREAST_CANCER',
+ // typeAlias
+ 'com_ehealthportal.breast_cancer',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_breast_cancer',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Test in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'TEST',
+ // typeAlias
+ 'com_ehealthportal.test',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'patient',
+ // tableName
+ '#__ehealthportal_test',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Foetal_lie in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FOETAL_LIE',
+ // typeAlias
+ 'com_ehealthportal.foetal_lie',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_foetal_lie',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Immunisation_vaccine_type in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'IMMUNISATION_VACCINE_TYPE',
+ // typeAlias
+ 'com_ehealthportal.immunisation_vaccine_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_immunisation_vaccine_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Foetal_engagement in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FOETAL_ENGAGEMENT',
+ // typeAlias
+ 'com_ehealthportal.foetal_engagement',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_foetal_engagement',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Foetal_presentation in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'FOETAL_PRESENTATION',
+ // typeAlias
+ 'com_ehealthportal.foetal_presentation',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_foetal_presentation',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Testing_reason in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'TESTING_REASON',
+ // typeAlias
+ 'com_ehealthportal.testing_reason',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_testing_reason',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Counseling_type in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'COUNSELING_TYPE',
+ // typeAlias
+ 'com_ehealthportal.counseling_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_counseling_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Health_education_topic in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'HEALTH_EDUCATION_TOPIC',
+ // typeAlias
+ 'com_ehealthportal.health_education_topic',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_health_education_topic',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Immunisation_type in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'IMMUNISATION_TYPE',
+ // typeAlias
+ 'com_ehealthportal.immunisation_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_immunisation_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Strength in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'STRENGTH',
+ // typeAlias
+ 'com_ehealthportal.strength',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_strength',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Referral in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'REFERRAL',
+ // typeAlias
+ 'com_ehealthportal.referral',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_referral',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Planning_type in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PLANNING_TYPE',
+ // typeAlias
+ 'com_ehealthportal.planning_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_planning_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Diagnosis_type in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'DIAGNOSIS_TYPE',
+ // typeAlias
+ 'com_ehealthportal.diagnosis_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_diagnosis_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Nonpay_reason in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'NONPAY_REASON',
+ // typeAlias
+ 'com_ehealthportal.nonpay_reason',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_nonpay_reason',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Medication in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'MEDICATION',
+ // typeAlias
+ 'com_ehealthportal.medication',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_medication',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Payment_type in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'PAYMENT_TYPE',
+ // typeAlias
+ 'com_ehealthportal.payment_type',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_payment_type',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Administration_part in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'ADMINISTRATION_PART',
+ // typeAlias
+ 'com_ehealthportal.administration_part',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_administration_part',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Site in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'SITE',
+ // typeAlias
+ 'com_ehealthportal.site',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'site_name',
+ // tableName
+ '#__ehealthportal_site',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Unit in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'UNIT',
+ // typeAlias
+ 'com_ehealthportal.unit',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'name',
+ // tableName
+ '#__ehealthportal_unit',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+
+ // Add/Update Clinic in the action logs config table.
+ $this->setActionLogConfig(
+ // typeTitle
+ 'CLINIC',
+ // typeAlias
+ 'com_ehealthportal.clinic',
+ // idHolder
+ 'id',
+ // titleHolder
+ 'clinic_name',
+ // tableName
+ '#__ehealthportal_clinic',
+ // textPrefix
+ 'COM_EHEALTHPORTAL'
+ );
+ }
+
+ // move CLI files
+ $this->moveCliFiles();
+
+ // remove old files and folders
+ $this->removeFiles();
+
+ return true;
+ }
+
+ /**
+ * Remove the files and folders in the given array from
+ *
+ * @return void
+ *
+ * @since 3.6
+ */
+ protected function removeFiles()
+ {
+ if (!empty($this->deleteFiles))
+ {
+ foreach ($this->deleteFiles as $file)
+ {
+ if (is_file(JPATH_ROOT . $file) && !File::delete(JPATH_ROOT . $file))
+ {
+ echo Text::sprintf('JLIB_INSTALLER_ERROR_FILE_FOLDER', $file) . ' ';
+ }
+ }
+ }
+
+ if (!empty($this->deleteFolders))
+ {
+ foreach ($this->deleteFolders as $folder)
+ {
+ if (is_dir(JPATH_ROOT . $folder) && !Folder::delete(JPATH_ROOT . $folder))
+ {
+ echo Text::sprintf('JLIB_INSTALLER_ERROR_FILE_FOLDER', $folder) . ' ';
+ }
+ }
+ }
+ }
+
+ /**
+ * Moves the CLI scripts into the CLI folder in the CMS
+ *
+ * @return void
+ *
+ * @since 3.6
+ */
+ protected function moveCliFiles()
+ {
+ if (!empty($this->cliScriptFiles))
+ {
+ foreach ($this->cliScriptFiles as $file)
+ {
+ $name = basename($file);
+
+ if (file_exists(JPATH_ROOT . $file) && !File::move(JPATH_ROOT . $file, JPATH_ROOT . '/cli/' . $name))
+ {
+ echo Text::sprintf('JLIB_INSTALLER_FILE_ERROR_MOVE', $name);
+ }
+ }
+ }
+ }
+
+ /**
+ * Set content type integration
+ *
+ * @param string $typeTitle
+ * @param string $typeAlias
+ * @param string $table
+ * @param string $rules
+ * @param string $fieldMappings
+ * @param string $router
+ * @param string $contentHistoryOptions
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function setContentType(
+ string $typeTitle,
+ string $typeAlias,
+ string $table,
+ string $rules,
+ string $fieldMappings,
+ string $router,
+ string $contentHistoryOptions): void
+ {
+ // Create the content type object.
+ $content = new stdClass();
+ $content->type_title = $typeTitle;
+ $content->type_alias = $typeAlias;
+ $content->table = $table;
+ $content->rules = $rules;
+ $content->field_mappings = $fieldMappings;
+ $content->router = $router;
+ $content->content_history_options = $contentHistoryOptions;
+
+ // Check if content type is already in content_type DB.
+ $query = $this->db->getQuery(true);
+ $query->select($this->db->quoteName(array('type_id')));
+ $query->from($this->db->quoteName('#__content_types'));
+ $query->where($this->db->quoteName('type_alias') . ' LIKE '. $this->db->quote($content->type_alias));
+
+ $this->db->setQuery($query);
+ $this->db->execute();
+
+ // Check if the type alias is already in the content types table.
+ if ($this->db->getNumRows())
+ {
+ $content->type_id = $this->db->loadResult();
+ if ($this->db->updateObject('#__content_types', $content, 'type_id'))
+ {
+ // If its successfully update.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) was found in the #__content_types table, and updated.', $content->type_alias)
+ );
+ }
+ }
+ elseif ($this->db->insertObject('#__content_types', $content))
+ {
+ // If its successfully added.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) was added to the #__content_types table.', $content->type_alias)
+ );
+ }
+ }
+
+ /**
+ * Set action log config integration
+ *
+ * @param string $typeTitle
+ * @param string $typeAlias
+ * @param string $idHolder
+ * @param string $titleHolder
+ * @param string $tableName
+ * @param string $textPrefix
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function setActionLogConfig(
+ string $typeTitle,
+ string $typeAlias,
+ string $idHolder,
+ string $titleHolder,
+ string $tableName,
+ string $textPrefix): void
+ {
+ // Create the content action log config object.
+ $content = new stdClass();
+ $content->type_title = $typeTitle;
+ $content->type_alias = $typeAlias;
+ $content->id_holder = $idHolder;
+ $content->title_holder = $titleHolder;
+ $content->table_name = $tableName;
+ $content->text_prefix = $textPrefix;
+
+ // Check if the action log config is already in action_log_config DB.
+ $query = $this->db->getQuery(true);
+ $query->select($this->db->quoteName(['id']));
+ $query->from($this->db->quoteName('#__action_log_config'));
+ $query->where($this->db->quoteName('type_alias') . ' LIKE '. $this->db->quote($content->type_alias));
+
+ $this->db->setQuery($query);
+ $this->db->execute();
+
+ // Check if the type alias is already in the action log config table.
+ if ($this->db->getNumRows())
+ {
+ $content->id = $this->db->loadResult();
+ if ($this->db->updateObject('#__action_log_config', $content, 'id'))
+ {
+ // If its successfully update.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) was found in the #__action_log_config table, and updated.', $content->type_alias)
+ );
+ }
+ }
+ elseif ($this->db->insertObject('#__action_log_config', $content))
+ {
+ // If its successfully added.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) was added to the #__action_log_config table.', $content->type_alias)
+ );
+ }
+ }
+
+ /**
+ * Set action logs extensions integration
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function setActionLogsExtensions(): void
+ {
+ // Create the extension action logs object.
+ $data = new stdClass();
+ $data->extension = 'com_ehealthportal';
+
+ // Check if ehealthportal action log extension is already in action logs extensions DB.
+ $query = $this->db->getQuery(true);
+ $query->select($this->db->quoteName(['id']));
+ $query->from($this->db->quoteName('#__action_logs_extensions'));
+ $query->where($this->db->quoteName('extension') . ' = '. $this->db->quote($data->extension));
+
+ $this->db->setQuery($query);
+ $this->db->execute();
+
+ // Set the object into the action logs extensions table if not found.
+ if ($this->db->getNumRows())
+ {
+ // If its already set don't set it again.
+ $this->app->enqueueMessage(
+ Text::_('The (com_ehealthportal) is already in the #__action_logs_extensions table.')
+ );
+ }
+ elseif ($this->db->insertObject('#__action_logs_extensions', $data))
+ {
+ // give a success message
+ $this->app->enqueueMessage(
+ Text::_('The (com_ehealthportal) was successfully added to the #__action_logs_extensions table.')
+ );
+ }
+ }
+
+ /**
+ * Set global extension assets permission of this component
+ * (on install only)
+ *
+ * @param string $rules The component rules
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function setAssetsRules(string $rules): void
+ {
+ // Condition.
+ $conditions = [
+ $this->db->quoteName('name') . ' = ' . $this->db->quote('com_ehealthportal')
+ ];
+
+ // Field to update.
+ $fields = [
+ $this->db->quoteName('rules') . ' = ' . $this->db->quote($rules),
+ ];
+
+ $query = $this->db->getQuery(true);
+ $query->update(
+ $this->db->quoteName('#__assets')
+ )->set($fields)->where($conditions);
+
+ $this->db->setQuery($query);
+
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // give a success message
+ $this->app->enqueueMessage(
+ Text::_('The (com_ehealthportal) rules was successfully added to the #__assets table.')
+ );
+ }
+ }
+
+ /**
+ * Set global extension params of this component
+ * (on install only)
+ *
+ * @param string $params The component rules
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function setExtensionsParams(string $params): void
+ {
+ // Condition.
+ $conditions = [
+ $this->db->quoteName('element') . ' = ' . $this->db->quote('com_ehealthportal')
+ ];
+
+ // Field to update.
+ $fields = [
+ $this->db->quoteName('params') . ' = ' . $this->db->quote($params),
+ ];
+
+ $query = $this->db->getQuery(true);
+ $query->update(
+ $this->db->quoteName('#__extensions')
+ )->set($fields)->where($conditions);
+
+ $this->db->setQuery($query);
+
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // give a success message
+ $this->app->enqueueMessage(
+ Text::_('The (com_ehealthportal) params was successfully added to the #__extensions table.')
+ );
+ }
+ }
+
+ /**
+ * Set database fix (if needed)
+ * => WHY DO WE NEED AN ASSET TABLE FIX?
+ * https://git.vdm.dev/joomla/Component-Builder/issues/616#issuecomment-12085
+ * https://www.mysqltutorial.org/mysql-varchar/
+ * https://stackoverflow.com/a/15227917/1429677
+ * https://forums.mysql.com/read.php?24,105964,105964
+ *
+ * @param int $accessWorseCase This is the max rules column size com_ehealthportal would needs.
+ * @param string $dataType This datatype we will change the rules column to if it to small.
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function setDatabaseAssetsRulesFix(int $accessWorseCase, string $dataType): void
+ {
+ // Get the biggest rule column in the assets table at this point.
+ $length = "SELECT CHAR_LENGTH(`rules`) as rule_size FROM #__assets ORDER BY rule_size DESC LIMIT 1";
+ $this->db->setQuery($length);
+ if ($this->db->execute())
+ {
+ $rule_length = $this->db->loadResult();
+ // Check the size of the rules column
+ if ($rule_length <= $accessWorseCase)
+ {
+ // Fix the assets table rules column size
+ $fix = "ALTER TABLE `#__assets` CHANGE `rules` `rules` {$dataType} NOT NULL COMMENT 'JSON encoded access control. Enlarged to {$dataType} by Ehealthportal';";
+ $this->db->setQuery($fix);
+
+ $done = $this->db->execute();
+ if ($done)
+ {
+ $this->app->enqueueMessage(
+ Text::sprintf('The #__assets table rules column was resized to the %s datatype for the components possible large permission rules.', $dataType)
+ );
+ }
+ }
+ }
+ }
+
+ /**
+ * Remove remnant data related to this view
+ *
+ * @param string $context The view context
+ * @param bool $fields The switch to also remove related field data
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeViewData(string $context, bool $fields = false): void
+ {
+ $this->removeContentTypes($context);
+ $this->removeViewHistory($context);
+ $this->removeUcmContent($context); // this might be obsolete...
+ $this->removeContentItemTagMap($context);
+ $this->removeActionLogConfig($context);
+
+ if ($fields)
+ {
+ $this->removeFields($context);
+ $this->removeFieldsGroups($context);
+ }
+ }
+
+ /**
+ * Remove content types related to this view
+ *
+ * @param string $context The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeContentTypes(string $context): void
+ {
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+
+ // Select id from content type table
+ $query->select($this->db->quoteName('type_id'));
+ $query->from($this->db->quoteName('#__content_types'));
+
+ // Where Item alias is found
+ $query->where($this->db->quoteName('type_alias') . ' = '. $this->db->quote($context));
+ $this->db->setQuery($query);
+
+ // Execute query to see if alias is found
+ $this->db->execute();
+ $found = $this->db->getNumRows();
+
+ // Now check if there were any rows
+ if ($found)
+ {
+ // Since there are load the needed item type ids
+ $ids = $this->db->loadColumn();
+
+ // Remove Item from the content type table
+ $condition = [
+ $this->db->quoteName('type_alias') . ' = '. $this->db->quote($context)
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__content_types'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove Item items
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully remove Item add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) type alias was removed from the #__content_type table.', $context)
+ );
+ }
+
+ // Make sure that all the items are cleared from DB
+ $this->removeUcmBase($ids);
+ }
+ }
+
+ /**
+ * Remove fields related to this view
+ *
+ * @param string $context The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeFields(string $context): void
+ {
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+
+ // Select ids from fields
+ $query->select($this->db->quoteName('id'));
+ $query->from($this->db->quoteName('#__fields'));
+
+ // Where context is found
+ $query->where(
+ $this->db->quoteName('context') . ' = '. $this->db->quote($context)
+ );
+ $this->db->setQuery($query);
+
+ // Execute query to see if context is found
+ $this->db->execute();
+ $found = $this->db->getNumRows();
+
+ // Now check if there were any rows
+ if ($found)
+ {
+ // Since there are load the needed release_check field ids
+ $ids = $this->db->loadColumn();
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+
+ // Remove context from the field table
+ $condition = [
+ $this->db->quoteName('context') . ' = '. $this->db->quote($context)
+ ];
+
+ $query->delete($this->db->quoteName('#__fields'));
+ $query->where($condition);
+
+ $this->db->setQuery($query);
+
+ // Execute the query to remove release_check items
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully remove context add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The fields with context (%s) was removed from the #__fields table.', $context)
+ );
+ }
+
+ // Make sure that all the field values are cleared from DB
+ $this->removeFieldsValues($context, $ids);
+ }
+ }
+
+ /**
+ * Remove fields values related to fields
+ *
+ * @param string $context The view context
+ * @param array $ids The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeFieldsValues(string $context, array $ids): void
+ {
+ $condition = [
+ $this->db->quoteName('field_id') . ' IN ('. implode(',', $ids) .')'
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__fields_values'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove field values
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully remove release_check add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The fields values for (%s) was removed from the #__fields_values table.', $context)
+ );
+ }
+ }
+
+ /**
+ * Remove fields groups related to fields
+ *
+ * @param string $context The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeFieldsGroups(string $context): void
+ {
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+
+ // Select ids from fields
+ $query->select($this->db->quoteName('id'));
+ $query->from($this->db->quoteName('#__fields_groups'));
+
+ // Where context is found
+ $query->where(
+ $this->db->quoteName('context') . ' = '. $this->db->quote($context)
+ );
+ $this->db->setQuery($query);
+
+ // Execute query to see if context is found
+ $this->db->execute();
+ $found = $this->db->getNumRows();
+
+ // Now check if there were any rows
+ if ($found)
+ {
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+
+ // Remove context from the field table
+ $condition = [
+ $this->db->quoteName('context') . ' = '. $this->db->quote($context)
+ ];
+
+ $query->delete($this->db->quoteName('#__fields_groups'));
+ $query->where($condition);
+
+ $this->db->setQuery($query);
+
+ // Execute the query to remove release_check items
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully remove context add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The fields with context (%s) was removed from the #__fields_groups table.', $context)
+ );
+ }
+ }
+ }
+
+ /**
+ * Remove history related to this view
+ *
+ * @param string $context The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeViewHistory(string $context): void
+ {
+ // Remove Item items from the ucm content table
+ $condition = [
+ $this->db->quoteName('item_id') . ' LIKE ' . $this->db->quote($context . '.%')
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__history'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove Item items
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully removed Items add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) items were removed from the #__history table.', $context)
+ );
+ }
+ }
+
+ /**
+ * Remove ucm base values related to these IDs
+ *
+ * @param array $ids The type ids
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeUcmBase(array $ids): void
+ {
+ // Make sure that all the items are cleared from DB
+ foreach ($ids as $type_id)
+ {
+ // Remove Item items from the ucm base table
+ $condition = [
+ $this->db->quoteName('ucm_type_id') . ' = ' . $type_id
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__ucm_base'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove Item items
+ $this->db->execute();
+ }
+
+ $this->app->enqueueMessage(
+ Text::_('All related items was removed from the #__ucm_base table.')
+ );
+ }
+
+ /**
+ * Remove ucm content values related to this view
+ *
+ * @param string $context The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeUcmContent(string $context): void
+ {
+ // Remove Item items from the ucm content table
+ $condition = [
+ $this->db->quoteName('core_type_alias') . ' = ' . $this->db->quote($context)
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__ucm_content'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove Item items
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully removed Item add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) type alias was removed from the #__ucm_content table.', $context)
+ );
+ }
+ }
+
+ /**
+ * Remove content item tag map related to this view
+ *
+ * @param string $context The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeContentItemTagMap(string $context): void
+ {
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+
+ // Remove Item items from the contentitem tag map table
+ $condition = [
+ $this->db->quoteName('type_alias') . ' = '. $this->db->quote($context)
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__contentitem_tag_map'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove Item items
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully remove Item add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) type alias was removed from the #__contentitem_tag_map table.', $context)
+ );
+ }
+ }
+
+ /**
+ * Remove action log config related to this view
+ *
+ * @param string $context The view context
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeActionLogConfig(string $context): void
+ {
+ // Remove ehealthportal view from the action_log_config table
+ $condition = [
+ $this->db->quoteName('type_alias') . ' = '. $this->db->quote($context)
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__action_log_config'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove com_ehealthportal.view
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully removed ehealthportal view add queued success message.
+ $this->app->enqueueMessage(
+ Text::sprintf('The (%s) type alias was removed from the #__action_log_config table.', $context)
+ );
+ }
+ }
+
+ /**
+ * Remove Asset Table Integrated
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeAssetData(): void
+ {
+ // Remove ehealthportal assets from the assets table
+ $condition = [
+ $this->db->quoteName('name') . ' LIKE ' . $this->db->quote('com_ehealthportal.%')
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__assets'));
+ $query->where($condition);
+ $this->db->setQuery($query);
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully removed ehealthportal add queued success message.
+ $this->app->enqueueMessage(
+ Text::_('All related (com_ehealthportal) items was removed from the #__assets table.')
+ );
+ }
+ }
+
+ /**
+ * Remove action logs extensions integrated
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeActionLogsExtensions(): void
+ {
+ // Remove ehealthportal from the action_logs_extensions table
+ $extension = [
+ $this->db->quoteName('extension') . ' = ' . $this->db->quote('com_ehealthportal')
+ ];
+
+ // Create a new query object.
+ $query = $this->db->getQuery(true);
+ $query->delete($this->db->quoteName('#__action_logs_extensions'));
+ $query->where($extension);
+ $this->db->setQuery($query);
+
+ // Execute the query to remove ehealthportal
+ $done = $this->db->execute();
+ if ($done)
+ {
+ // If successfully remove ehealthportal add queued success message.
+ $this->app->enqueueMessage(
+ Text::_('The (com_ehealthportal) extension was removed from the #__action_logs_extensions table.')
+ );
+ }
+ }
+
+ /**
+ * Remove remove database fix (if possible)
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function removeDatabaseAssetsRulesFix(): void
+ {
+ // Get the biggest rule column in the assets table at this point.
+ $length = "SELECT CHAR_LENGTH(`rules`) as rule_size FROM #__assets ORDER BY rule_size DESC LIMIT 1";
+ $this->db->setQuery($length);
+ if ($this->db->execute())
+ {
+ $rule_length = $this->db->loadResult();
+ // Check the size of the rules column
+ if ($rule_length < 5120)
+ {
+ // Revert the assets table rules column back to the default
+ $revert_rule = "ALTER TABLE `#__assets` CHANGE `rules` `rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.';";
+ $this->db->setQuery($revert_rule);
+ $this->db->execute();
+
+ $this->app->enqueueMessage(
+ Text::_('Reverted the #__assets table rules column back to its default size of varchar(5120).')
+ );
+ }
+ else
+ {
+ $this->app->enqueueMessage(
+ Text::_('Could not revert the #__assets table rules column back to its default size of varchar(5120), since there is still one or more components that still requires the column to be larger.')
+ );
+ }
+ }
+ }
+
+ /**
+ * Method to move folders into place.
+ *
+ * @param InstallerAdapter $adapter The adapter calling this method
+ *
+ * @return void
+ * @since 4.4.2
+ */
+ protected function moveFolders(InstallerAdapter $adapter): void
+ {
+ // get the installation path
+ $installer = $adapter->getParent();
+ $installPath = $installer->getPath('source');
+ // get all the folders
+ $folders = Folder::folders($installPath);
+ // check if we have folders we may want to copy
+ $doNotCopy = ['media','admin','site']; // Joomla already deals with these
+ if (count((array) $folders) > 1)
+ {
+ foreach ($folders as $folder)
+ {
+ // Only copy if not a standard folders
+ if (!in_array($folder, $doNotCopy))
+ {
+ // set the source path
+ $src = $installPath.'/'.$folder;
+ // set the destination path
+ $dest = JPATH_ROOT.'/'.$folder;
+ // now try to copy the folder
+ if (!Folder::copy($src, $dest, '', true))
+ {
+ $this->app->enqueueMessage('Could not copy '.$folder.' folder into place, please make sure destination is writable!', 'error');
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/README.md b/README.md
index 33befcd..e582b6f 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
- # eHealth Portal (1.0.5)
+ # eHealth Portal (4.0.0)
![eHealth Portal image](https://raw.githubusercontent.com/Namibia/eHealth-Portal/master/admin/assets/images/vdm-component.jpg "The eHealth Portal")
@@ -6,42 +6,42 @@
# Build Details
-+ *Company*: [Vast Development Method](https://github.com/namibia/eHealth-Portal)
-+ *Author*: [Oh Martin](mailto:oh.martin@vdm.io)
-+ *Name*: [eHealth Portal](https://github.com/namibia/eHealth-Portal)
++ *Company*: [Vast Development Method](https://git.vdm.dev/joomla/eHealth-Portal)
++ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
++ *Name*: [eHealth Portal](https://git.vdm.dev/joomla/eHealth-Portal)
+ *First Build*: 13th August, 2020
-+ *Last Build*: 24th April, 2021
-+ *Version*: 1.0.5
++ *Last Build*: 19th January, 2024
++ *Version*: 4.0.0
+ *Copyright*: Copyright (C) 2020 Vast Development Method. All rights reserved.
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time
-**425 Hours** or **53 Eight Hour Days** (actual time the author saved -
+**439 Hours** or **55 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](http://joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
-+ *Line count*: **152325**
-+ *File count*: **1125**
-+ *Folder count*: **176**
++ *Line count*: **157309**
++ *File count*: **1123**
++ *Folder count*: **220**
- **280 Hours** or **35 Eight Hour Days** (the actual time the author spent)
+ **289 Hours** or **36 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
-> **debugging @106hours** = codingtime / 4;
-> **planning @61hours** = codingtime / 7;
-> **mapping @42hours** = codingtime / 10;
-> **office @71hours** = codingtime / 6;)
+> **debugging @110hours** = codingtime / 4;
+> **planning @63hours** = codingtime / 7;
+> **mapping @44hours** = codingtime / 10;
+> **office @73hours** = codingtime / 6;)
-**705 Hours** or **88 Eight Hour Days**
+**728 Hours** or **91 Eight Hour Days**
(a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
-Project duration: **17.6 weeks** or **3.7 months**
+Project duration: **18.2 weeks** or **3.8 months**
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
\ No newline at end of file
diff --git a/admin/README.txt b/admin/README.txt
index 33befcd..e582b6f 100644
--- a/admin/README.txt
+++ b/admin/README.txt
@@ -1,4 +1,4 @@
- # eHealth Portal (1.0.5)
+ # eHealth Portal (4.0.0)
![eHealth Portal image](https://raw.githubusercontent.com/Namibia/eHealth-Portal/master/admin/assets/images/vdm-component.jpg "The eHealth Portal")
@@ -6,42 +6,42 @@
# Build Details
-+ *Company*: [Vast Development Method](https://github.com/namibia/eHealth-Portal)
-+ *Author*: [Oh Martin](mailto:oh.martin@vdm.io)
-+ *Name*: [eHealth Portal](https://github.com/namibia/eHealth-Portal)
++ *Company*: [Vast Development Method](https://git.vdm.dev/joomla/eHealth-Portal)
++ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
++ *Name*: [eHealth Portal](https://git.vdm.dev/joomla/eHealth-Portal)
+ *First Build*: 13th August, 2020
-+ *Last Build*: 24th April, 2021
-+ *Version*: 1.0.5
++ *Last Build*: 19th January, 2024
++ *Version*: 4.0.0
+ *Copyright*: Copyright (C) 2020 Vast Development Method. All rights reserved.
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time
-**425 Hours** or **53 Eight Hour Days** (actual time the author saved -
+**439 Hours** or **55 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](http://joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
-+ *Line count*: **152325**
-+ *File count*: **1125**
-+ *Folder count*: **176**
++ *Line count*: **157309**
++ *File count*: **1123**
++ *Folder count*: **220**
- **280 Hours** or **35 Eight Hour Days** (the actual time the author spent)
+ **289 Hours** or **36 Eight Hour Days** (the actual time the author spent)
> (with the following break down:
-> **debugging @106hours** = codingtime / 4;
-> **planning @61hours** = codingtime / 7;
-> **mapping @42hours** = codingtime / 10;
-> **office @71hours** = codingtime / 6;)
+> **debugging @110hours** = codingtime / 4;
+> **planning @63hours** = codingtime / 7;
+> **mapping @44hours** = codingtime / 10;
+> **office @73hours** = codingtime / 6;)
-**705 Hours** or **88 Eight Hour Days**
+**728 Hours** or **91 Eight Hour Days**
(a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
-Project duration: **17.6 weeks** or **3.7 months**
+Project duration: **18.2 weeks** or **3.8 months**
> This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com).
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
\ No newline at end of file
diff --git a/admin/access.xml b/admin/access.xml
index 9ec6a16..14cbb50 100644
--- a/admin/access.xml
+++ b/admin/access.xml
@@ -1,425 +1,414 @@
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
-
-
-
-
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css
index f213246..bf820d7 100644
--- a/admin/assets/css/admin.css
+++ b/admin/assets/css/admin.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage admin.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/administration_part.css b/admin/assets/css/administration_part.css
index 069514b..33e5b2f 100644
--- a/admin/assets/css/administration_part.css
+++ b/admin/assets/css/administration_part.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage administration_part.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/administration_parts.css b/admin/assets/css/administration_parts.css
index 6f8a1c4..0c7bbc0 100644
--- a/admin/assets/css/administration_parts.css
+++ b/admin/assets/css/administration_parts.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage administration_parts.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/antenatal_care.css b/admin/assets/css/antenatal_care.css
index 842535f..1a28ff7 100644
--- a/admin/assets/css/antenatal_care.css
+++ b/admin/assets/css/antenatal_care.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage antenatal_care.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/antenatal_cares.css b/admin/assets/css/antenatal_cares.css
index a5541be..54e5549 100644
--- a/admin/assets/css/antenatal_cares.css
+++ b/admin/assets/css/antenatal_cares.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage antenatal_cares.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/breast_cancer.css b/admin/assets/css/breast_cancer.css
index b5a6da2..8857f19 100644
--- a/admin/assets/css/breast_cancer.css
+++ b/admin/assets/css/breast_cancer.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage breast_cancer.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/breast_cancers.css b/admin/assets/css/breast_cancers.css
index 5882222..657caed 100644
--- a/admin/assets/css/breast_cancers.css
+++ b/admin/assets/css/breast_cancers.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage breast_cancers.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/cervical_cancer.css b/admin/assets/css/cervical_cancer.css
index 6422f52..c683394 100644
--- a/admin/assets/css/cervical_cancer.css
+++ b/admin/assets/css/cervical_cancer.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage cervical_cancer.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/cervical_cancers.css b/admin/assets/css/cervical_cancers.css
index e973417..000764e 100644
--- a/admin/assets/css/cervical_cancers.css
+++ b/admin/assets/css/cervical_cancers.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage cervical_cancers.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/clinic.css b/admin/assets/css/clinic.css
index 8859f2a..e1c3c94 100644
--- a/admin/assets/css/clinic.css
+++ b/admin/assets/css/clinic.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage clinic.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/clinics.css b/admin/assets/css/clinics.css
index bc1b5b7..03f5a6a 100644
--- a/admin/assets/css/clinics.css
+++ b/admin/assets/css/clinics.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage clinics.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/counseling_type.css b/admin/assets/css/counseling_type.css
index 9eb511d..ef00e97 100644
--- a/admin/assets/css/counseling_type.css
+++ b/admin/assets/css/counseling_type.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage counseling_type.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/counseling_types.css b/admin/assets/css/counseling_types.css
index 7452a12..76e8a69 100644
--- a/admin/assets/css/counseling_types.css
+++ b/admin/assets/css/counseling_types.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage counseling_types.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css
index 03c540c..58ae1eb 100644
--- a/admin/assets/css/dashboard.css
+++ b/admin/assets/css/dashboard.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage dashboard.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@@ -25,153 +25,153 @@
/* CSS Document */
.dashboard-container {
- margin-left: 10px;
- margin-top: 10px;
- width: 100%;
+ margin-left: 10px;
+ margin-top: 10px;
+ width: 100%;
}
.dashboard-container [class*="span"] {
- display: block;
- float: none;
- margin-left: 0;
- width: auto;
+ display: block;
+ float: none;
+ margin-left: 0;
+ width: auto;
}
.dashboard-container:before, .dashboard-container:after {
- content: "";
- display: table;
+ content: "";
+ display: table;
}
.dashboard-container:after {
- clear: both;
+ clear: both;
}
.dashboard-container [class*="span"] {
- box-sizing: border-box;
- display: block;
- float: left;
- min-height: 145px;
- min-width: 96px;
- width: 100%;
+ box-sizing: border-box;
+ display: block;
+ float: left;
+ min-height: 145px;
+ min-width: 96px;
+ width: 100%;
}
.dashboard-container [class*="span"]:first-child {
- margin-left: 0;
+ margin-left: 0;
}
.dashboard-wraper {
- background: none repeat scroll 0 0 hsl(0, 0%, 93%);
- border-radius: 5px;
- float: left;
- margin: 1%;
- padding: 3px;
- width: 17%;
- min-height: 194px;
- min-width: 96px;
+ background: none repeat scroll 0 0 hsl(0, 0%, 93%);
+ border-radius: 5px;
+ float: left;
+ margin: 1%;
+ padding: 3px;
+ width: 17%;
+ min-height: 194px;
+ min-width: 96px;
}
.dashboard-content a {
- background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
- border: 1px solid hsl(0, 0%, 85%);
- border-radius: 4px;
- box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
- color: hsl(0, 0%, 20%);
- display: block;
- min-height: 89px;
- padding: 10px;
- text-align: center;
- text-decoration: none;
+ background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
+ border: 1px solid hsl(0, 0%, 85%);
+ border-radius: 4px;
+ box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
+ color: hsl(0, 0%, 20%);
+ display: block;
+ min-height: 89px;
+ padding: 10px;
+ text-align: center;
+ text-decoration: none;
}
.dashboard-content a:hover {
- background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
- color: hsl(200, 100%, 30%);
- text-decoration: none;
+ background: linear-gradient(to bottom, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 100%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
+ color: hsl(200, 100%, 30%);
+ text-decoration: none;
}
.dashboard-title {
- display: block;
- padding-top: 5px;
+ display: block;
+ padding-top: 5px;
}
.dashboard-info {
- background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
- border: 1px solid hsl(0, 0%, 85%);
- border-radius: 4px;
- box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
- color: hsl(0, 0%, 20%);
- display: block;
- font-size: 12px;
- padding: 10px;
- text-align: center;
+ background: linear-gradient(to bottom, hsl(0, 0%, 100%) 0%, hsl(0, 0%, 96%) 47%, hsl(0, 0%, 93%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
+ border: 1px solid hsl(0, 0%, 85%);
+ border-radius: 4px;
+ box-shadow: 0 0 3px hsla(0, 0%, 0%, 0.1) inset;
+ color: hsl(0, 0%, 20%);
+ display: block;
+ font-size: 12px;
+ padding: 10px;
+ text-align: center;
}
.dashboard-info span {
- display: block;
- text-align: center;
+ display: block;
+ text-align: center;
}
.dashboard-info img {
- margin: 0 auto;
+ margin: 0 auto;
}
.dashboard-table {
- border-top: 1px solid hsl(0, 0%, 87%);
- margin-top: 5px;
- width: 100%;
+ border-top: 1px solid hsl(0, 0%, 87%);
+ margin-top: 5px;
+ width: 100%;
}
.dashboard-info h5 {
- font-size: 11px;
- font-weight: bold;
+ font-size: 11px;
+ font-weight: bold;
}
.dashboard-block {
- background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
- border: 1px solid hsl(0, 0%, 76%);
- border-radius: 3px;
- box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset;
- margin-bottom: 20px;
+ background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
+ border: 1px solid hsl(0, 0%, 76%);
+ border-radius: 3px;
+ box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset;
+ margin-bottom: 20px;
}
.dashboard-block .dashboard-block-head {
- background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
- border-bottom: 1px solid hsl(0, 0%, 76%);
- border-radius: 3px 3px 0 0;
- box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%);
- height: 40px;
- position: relative;
+ background: linear-gradient(to bottom, hsl(0, 0%, 95%) 0%, hsl(0, 0%, 86%) 100%) repeat scroll 0 0 hsla(0, 0%, 0%, 0);
+ border-bottom: 1px solid hsl(0, 0%, 76%);
+ border-radius: 3px 3px 0 0;
+ box-shadow: 0 1px 0 hsl(0, 0%, 98%) inset, 0 0 3px hsl(0, 0%, 87%);
+ height: 40px;
+ position: relative;
}
.dashboard-block .dashboard-block-head h5 {
- font-size: 12px;
- margin: 0;
- padding-left: 10px;
- padding-top: 11px;
- text-transform: uppercase;
+ font-size: 12px;
+ margin: 0;
+ padding-left: 10px;
+ padding-top: 11px;
+ text-transform: uppercase;
}
.dashboard-block .dashboard-block-content {
- background: none repeat scroll 0 0 hsl(0, 0%, 93%);
- border-radius: 0 0 3px 3px;
+ background: none repeat scroll 0 0 hsl(0, 0%, 93%);
+ border-radius: 0 0 3px 3px;
}
.dashboard-block .dashboard-block-box {
- background: none repeat scroll 0 0 hsl(0, 0%, 100%);
- border-top: 1px solid hsl(0, 0%, 82%);
- box-shadow: 0 0 5px hsl(0, 0%, 87%) inset;
+ background: none repeat scroll 0 0 hsl(0, 0%, 100%);
+ border-top: 1px solid hsl(0, 0%, 82%);
+ box-shadow: 0 0 5px hsl(0, 0%, 87%) inset;
}
.dashboard-block .dashboard-block-content .dashboard-block-box {
- margin-top: 0 !important;
+ margin-top: 0 !important;
}
.dashboard-block .dashboard-block-content .dashboard-block-box .dashboard-block-table {
- margin-bottom: 0 !important;
+ margin-bottom: 0 !important;
}
.dashboard-block-table {
- background-color: hsla(0, 0%, 0%, 0);
- border-collapse: collapse;
- border-spacing: 0;
- margin-bottom: 20px;
- max-width: 100%;
- width: 100%;
+ background-color: hsla(0, 0%, 0%, 0);
+ border-collapse: collapse;
+ border-spacing: 0;
+ margin-bottom: 20px;
+ max-width: 100%;
+ width: 100%;
}
.dashboard-block-table th, .dashboard-block-table td {
- border-top: 1px solid hsl(0, 0%, 87%);
- line-height: 20px;
- padding: 5px;
- text-align: left;
- vertical-align: middle;
+ border-top: 1px solid hsl(0, 0%, 87%);
+ line-height: 20px;
+ padding: 5px;
+ text-align: left;
+ vertical-align: middle;
}
.dashboard-badge {
- background-color: hsl(0, 0%, 60%);
- border-radius: 9px;
- color: hsl(0, 0%, 100%);
- font-size: 11.844px;
- font-weight: bold;
- line-height: 14px;
- padding: 1px 9px 2px;
- text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25);
- vertical-align: baseline;
- white-space: nowrap;
+ background-color: hsl(0, 0%, 60%);
+ border-radius: 9px;
+ color: hsl(0, 0%, 100%);
+ font-size: 11.844px;
+ font-weight: bold;
+ line-height: 14px;
+ padding: 1px 9px 2px;
+ text-shadow: 0 -1px 0 hsla(0, 0%, 0%, 0.25);
+ vertical-align: baseline;
+ white-space: nowrap;
}
\ No newline at end of file
diff --git a/admin/assets/css/diagnosis_type.css b/admin/assets/css/diagnosis_type.css
index a22c8fc..250625a 100644
--- a/admin/assets/css/diagnosis_type.css
+++ b/admin/assets/css/diagnosis_type.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage diagnosis_type.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/diagnosis_types.css b/admin/assets/css/diagnosis_types.css
index 93f7f05..db447ff 100644
--- a/admin/assets/css/diagnosis_types.css
+++ b/admin/assets/css/diagnosis_types.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage diagnosis_types.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/family_planning.css b/admin/assets/css/family_planning.css
index d9789f3..f9f4415 100644
--- a/admin/assets/css/family_planning.css
+++ b/admin/assets/css/family_planning.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage family_planning.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/family_plannings.css b/admin/assets/css/family_plannings.css
index 9ef7ffa..b03618a 100644
--- a/admin/assets/css/family_plannings.css
+++ b/admin/assets/css/family_plannings.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage family_plannings.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/foetal_engagement.css b/admin/assets/css/foetal_engagement.css
index f50b698..3bb7a93 100644
--- a/admin/assets/css/foetal_engagement.css
+++ b/admin/assets/css/foetal_engagement.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage foetal_engagement.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/foetal_engagements.css b/admin/assets/css/foetal_engagements.css
index def308b..394211c 100644
--- a/admin/assets/css/foetal_engagements.css
+++ b/admin/assets/css/foetal_engagements.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage foetal_engagements.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/foetal_lie.css b/admin/assets/css/foetal_lie.css
index bc01698..00c20d6 100644
--- a/admin/assets/css/foetal_lie.css
+++ b/admin/assets/css/foetal_lie.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage foetal_lie.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/foetal_lies.css b/admin/assets/css/foetal_lies.css
index df76e4f..d52d5b1 100644
--- a/admin/assets/css/foetal_lies.css
+++ b/admin/assets/css/foetal_lies.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage foetal_lies.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/foetal_presentation.css b/admin/assets/css/foetal_presentation.css
index 3b76a26..edc27e3 100644
--- a/admin/assets/css/foetal_presentation.css
+++ b/admin/assets/css/foetal_presentation.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage foetal_presentation.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/foetal_presentations.css b/admin/assets/css/foetal_presentations.css
index c06c54f..98b01ad 100644
--- a/admin/assets/css/foetal_presentations.css
+++ b/admin/assets/css/foetal_presentations.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage foetal_presentations.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/general_medical_check_up.css b/admin/assets/css/general_medical_check_up.css
index 42fc41d..055b7ab 100644
--- a/admin/assets/css/general_medical_check_up.css
+++ b/admin/assets/css/general_medical_check_up.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage general_medical_check_up.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/general_medical_check_ups.css b/admin/assets/css/general_medical_check_ups.css
index 79c9fbd..cfe11dc 100644
--- a/admin/assets/css/general_medical_check_ups.css
+++ b/admin/assets/css/general_medical_check_ups.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage general_medical_check_ups.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/health_education.css b/admin/assets/css/health_education.css
index 47500b5..228e208 100644
--- a/admin/assets/css/health_education.css
+++ b/admin/assets/css/health_education.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage health_education.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/health_education_topic.css b/admin/assets/css/health_education_topic.css
index 10cc0e9..ba8b417 100644
--- a/admin/assets/css/health_education_topic.css
+++ b/admin/assets/css/health_education_topic.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage health_education_topic.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/health_education_topics.css b/admin/assets/css/health_education_topics.css
index 1fa3fba..8353ce5 100644
--- a/admin/assets/css/health_education_topics.css
+++ b/admin/assets/css/health_education_topics.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage health_education_topics.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/health_educations.css b/admin/assets/css/health_educations.css
index 57d250f..2faead4 100644
--- a/admin/assets/css/health_educations.css
+++ b/admin/assets/css/health_educations.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage health_educations.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/hiv_counseling_and_testing.css b/admin/assets/css/hiv_counseling_and_testing.css
index 92ca973..b613a1b 100644
--- a/admin/assets/css/hiv_counseling_and_testing.css
+++ b/admin/assets/css/hiv_counseling_and_testing.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage hiv_counseling_and_testing.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/hiv_counselings_and_testings.css b/admin/assets/css/hiv_counselings_and_testings.css
index 726bbbb..041d73a 100644
--- a/admin/assets/css/hiv_counselings_and_testings.css
+++ b/admin/assets/css/hiv_counselings_and_testings.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage hiv_counselings_and_testings.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/immunisation.css b/admin/assets/css/immunisation.css
index ed78ba5..8bdecad 100644
--- a/admin/assets/css/immunisation.css
+++ b/admin/assets/css/immunisation.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage immunisation.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/immunisation_type.css b/admin/assets/css/immunisation_type.css
index c4eae75..f7f1259 100644
--- a/admin/assets/css/immunisation_type.css
+++ b/admin/assets/css/immunisation_type.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage immunisation_type.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/immunisation_types.css b/admin/assets/css/immunisation_types.css
index 2272a25..08bc8c2 100644
--- a/admin/assets/css/immunisation_types.css
+++ b/admin/assets/css/immunisation_types.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage immunisation_types.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/immunisation_vaccine_type.css b/admin/assets/css/immunisation_vaccine_type.css
index 946da32..0c2d53d 100644
--- a/admin/assets/css/immunisation_vaccine_type.css
+++ b/admin/assets/css/immunisation_vaccine_type.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage immunisation_vaccine_type.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/immunisation_vaccine_types.css b/admin/assets/css/immunisation_vaccine_types.css
index 4e76c45..63be1de 100644
--- a/admin/assets/css/immunisation_vaccine_types.css
+++ b/admin/assets/css/immunisation_vaccine_types.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage immunisation_vaccine_types.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/immunisations.css b/admin/assets/css/immunisations.css
index a5262f1..a11a9eb 100644
--- a/admin/assets/css/immunisations.css
+++ b/admin/assets/css/immunisations.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage immunisations.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/medication.css b/admin/assets/css/medication.css
index fde0c0d..56dd65f 100644
--- a/admin/assets/css/medication.css
+++ b/admin/assets/css/medication.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage medication.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/medications.css b/admin/assets/css/medications.css
index 3296b23..967341d 100644
--- a/admin/assets/css/medications.css
+++ b/admin/assets/css/medications.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage medications.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/nonpay_reason.css b/admin/assets/css/nonpay_reason.css
index 7a1e619..90058ea 100644
--- a/admin/assets/css/nonpay_reason.css
+++ b/admin/assets/css/nonpay_reason.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage nonpay_reason.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/nonpay_reasons.css b/admin/assets/css/nonpay_reasons.css
index 3888658..d34a6b3 100644
--- a/admin/assets/css/nonpay_reasons.css
+++ b/admin/assets/css/nonpay_reasons.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage nonpay_reasons.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/patient_queue.css b/admin/assets/css/patient_queue.css
index 7d41f85..a8e5f0e 100644
--- a/admin/assets/css/patient_queue.css
+++ b/admin/assets/css/patient_queue.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage patient_queue.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/payment.css b/admin/assets/css/payment.css
index d89e4cf..84cc4ac 100644
--- a/admin/assets/css/payment.css
+++ b/admin/assets/css/payment.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage payment.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/payment_amount.css b/admin/assets/css/payment_amount.css
deleted file mode 100644
index 8bec62e..0000000
--- a/admin/assets/css/payment_amount.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
- __ __ _ _____ _ _ __ __ _ _ _
- \ \ / / | | | __ \ | | | | | \/ | | | | | | |
- \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
- \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
- \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
- \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
- | |
- |_|
-/-------------------------------------------------------------------------------------------------------------------------------/
-
- @version 1.0.5
- @build 24th April, 2021
- @created 13th August, 2020
- @package eHealth Portal
- @subpackage payment_amount.css
- @author Oh Martin
- @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-
- Portal for mobile health clinics
-
-/-----------------------------------------------------------------------------------------------------------------------------*/
-
-/* CSS Document */
-
-
diff --git a/admin/assets/css/payment_amounts.css b/admin/assets/css/payment_amounts.css
deleted file mode 100644
index 6bd6166..0000000
--- a/admin/assets/css/payment_amounts.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
- __ __ _ _____ _ _ __ __ _ _ _
- \ \ / / | | | __ \ | | | | | \/ | | | | | | |
- \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
- \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
- \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
- \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
- | |
- |_|
-/-------------------------------------------------------------------------------------------------------------------------------/
-
- @version 1.0.5
- @build 24th April, 2021
- @created 13th August, 2020
- @package eHealth Portal
- @subpackage payment_amounts.css
- @author Oh Martin
- @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-
- Portal for mobile health clinics
-
-/-----------------------------------------------------------------------------------------------------------------------------*/
-
-/* CSS Document */
-
-
diff --git a/admin/assets/css/payment_type.css b/admin/assets/css/payment_type.css
index c1b3feb..7c57dc0 100644
--- a/admin/assets/css/payment_type.css
+++ b/admin/assets/css/payment_type.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage payment_type.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/payment_types.css b/admin/assets/css/payment_types.css
index 207da3d..dd49981 100644
--- a/admin/assets/css/payment_types.css
+++ b/admin/assets/css/payment_types.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage payment_types.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/payments.css b/admin/assets/css/payments.css
index 474fb63..42b884d 100644
--- a/admin/assets/css/payments.css
+++ b/admin/assets/css/payments.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage payments.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/planning_type.css b/admin/assets/css/planning_type.css
index f00bcba..d3c04d4 100644
--- a/admin/assets/css/planning_type.css
+++ b/admin/assets/css/planning_type.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage planning_type.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/planning_types.css b/admin/assets/css/planning_types.css
index 2d5eb18..570be38 100644
--- a/admin/assets/css/planning_types.css
+++ b/admin/assets/css/planning_types.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage planning_types.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/prostate_and_testicular_cancer.css b/admin/assets/css/prostate_and_testicular_cancer.css
index 2ab60eb..598237c 100644
--- a/admin/assets/css/prostate_and_testicular_cancer.css
+++ b/admin/assets/css/prostate_and_testicular_cancer.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage prostate_and_testicular_cancer.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/prostate_and_testicular_cancers.css b/admin/assets/css/prostate_and_testicular_cancers.css
index 299774e..46c7f0c 100644
--- a/admin/assets/css/prostate_and_testicular_cancers.css
+++ b/admin/assets/css/prostate_and_testicular_cancers.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage prostate_and_testicular_cancers.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/referral.css b/admin/assets/css/referral.css
index 4ca2c49..5d5d445 100644
--- a/admin/assets/css/referral.css
+++ b/admin/assets/css/referral.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage referral.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/referrals.css b/admin/assets/css/referrals.css
index 85d0f3f..1818190 100644
--- a/admin/assets/css/referrals.css
+++ b/admin/assets/css/referrals.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage referrals.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/site.css b/admin/assets/css/site.css
index 4852fc7..05c124d 100644
--- a/admin/assets/css/site.css
+++ b/admin/assets/css/site.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage site.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/sites.css b/admin/assets/css/sites.css
index 1c19ebb..85b0396 100644
--- a/admin/assets/css/sites.css
+++ b/admin/assets/css/sites.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage sites.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/strength.css b/admin/assets/css/strength.css
index ebb0137..4ed04e1 100644
--- a/admin/assets/css/strength.css
+++ b/admin/assets/css/strength.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage strength.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/strengths.css b/admin/assets/css/strengths.css
index 7722210..c708b53 100644
--- a/admin/assets/css/strengths.css
+++ b/admin/assets/css/strengths.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage strengths.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/test.css b/admin/assets/css/test.css
index efb92aa..b43e16c 100644
--- a/admin/assets/css/test.css
+++ b/admin/assets/css/test.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage test.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/testing_reason.css b/admin/assets/css/testing_reason.css
index 8c178a3..4f32fcc 100644
--- a/admin/assets/css/testing_reason.css
+++ b/admin/assets/css/testing_reason.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage testing_reason.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/testing_reasons.css b/admin/assets/css/testing_reasons.css
index eb3ff89..27d218f 100644
--- a/admin/assets/css/testing_reasons.css
+++ b/admin/assets/css/testing_reasons.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage testing_reasons.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/tests.css b/admin/assets/css/tests.css
index e178c3a..125d6b4 100644
--- a/admin/assets/css/tests.css
+++ b/admin/assets/css/tests.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage tests.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/tuberculoses.css b/admin/assets/css/tuberculoses.css
index c430365..6ba61db 100644
--- a/admin/assets/css/tuberculoses.css
+++ b/admin/assets/css/tuberculoses.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage tuberculoses.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/tuberculosis.css b/admin/assets/css/tuberculosis.css
index 3fed89b..4c38233 100644
--- a/admin/assets/css/tuberculosis.css
+++ b/admin/assets/css/tuberculosis.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage tuberculosis.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/unit.css b/admin/assets/css/unit.css
index d42991f..c2659d6 100644
--- a/admin/assets/css/unit.css
+++ b/admin/assets/css/unit.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage unit.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/units.css b/admin/assets/css/units.css
index b16b8a6..1b447c1 100644
--- a/admin/assets/css/units.css
+++ b/admin/assets/css/units.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage units.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/vmmc.css b/admin/assets/css/vmmc.css
index 675c8d7..cb63f02 100644
--- a/admin/assets/css/vmmc.css
+++ b/admin/assets/css/vmmc.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage vmmc.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/css/vmmcs.css b/admin/assets/css/vmmcs.css
index 931de16..be6be82 100644
--- a/admin/assets/css/vmmcs.css
+++ b/admin/assets/css/vmmcs.css
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage vmmcs.css
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/assets/images/import.gif b/admin/assets/images/import.gif
index 4371cc6..10bcb85 100644
Binary files a/admin/assets/images/import.gif and b/admin/assets/images/import.gif differ
diff --git a/admin/assets/js/admin.js b/admin/assets/js/admin.js
index 4c77a9e..1db4720 100644
--- a/admin/assets/js/admin.js
+++ b/admin/assets/js/admin.js
@@ -9,12 +9,12 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 1.0.5
- @build 24th April, 2021
+ @version 4.0.0
+ @build 19th January, 2024
@created 13th August, 2020
@package eHealth Portal
@subpackage admin.js
- @author Oh Martin
+ @author Llewellyn van der Merwe
@copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/admin/config.xml b/admin/config.xml
index 1d11e57..8457b46 100644
--- a/admin/config.xml
+++ b/admin/config.xml
@@ -1,29 +1,29 @@
+ label="COM_EHEALTHPORTAL_CONFIG_GLOBAL_LABEL"
+ description="COM_EHEALTHPORTAL_CONFIG_GLOBAL_DESC">
+ label="COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_LABEL"
+ description="COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_DESC">
COM_EHEALTH_PORTAL_CONFIG_CHECK_TIMER_OPTION_ONE
+ value="-5 hours">COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_OPTION_ONE
COM_EHEALTH_PORTAL_CONFIG_CHECK_TIMER_OPTION_TWO
+ value="-12 hours">COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_OPTION_TWO
COM_EHEALTH_PORTAL_CONFIG_CHECK_TIMER_OPTION_THREE
+ value="-1 day">COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_OPTION_THREE
COM_EHEALTH_PORTAL_CONFIG_CHECK_TIMER_OPTION_FOUR
+ value="-2 day">COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_OPTION_FOUR
COM_EHEALTH_PORTAL_CONFIG_CHECK_TIMER_OPTION_FIVE
+ value="-1 week">COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_OPTION_FIVE
COM_EHEALTH_PORTAL_CONFIG_CHECK_TIMER_OPTION_SIX
+ value="0">COM_EHEALTHPORTAL_CONFIG_CHECK_TIMER_OPTION_SIX
@@ -80,7 +80,7 @@
class="inputbox"
validate="rules"
filter="rules"
- component="com_ehealth_portal"
+ component="com_ehealthportal"
section="component"
/>
diff --git a/admin/controller.php b/admin/controller.php
deleted file mode 100644
index 515f0c9..0000000
--- a/admin/controller.php
+++ /dev/null
@@ -1,158 +0,0 @@
-
- @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-
- Portal for mobile health clinics
-
-/-----------------------------------------------------------------------------------------------------------------------------*/
-
-// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
-
-use Joomla\Utilities\ArrayHelper;
-
-/**
- * General Controller of Ehealth_portal component
- */
-class Ehealth_portalController extends JControllerLegacy
-{
- /**
- * Constructor.
- *
- * @param array $config An optional associative array of configuration settings.
- * Recognized key values include 'name', 'default_task', 'model_path', and
- * 'view_path' (this list is not meant to be comprehensive).
- *
- * @since 3.0
- */
- public function __construct($config = array())
- {
- // set the default view
- $config['default_view'] = 'ehealth_portal';
-
- parent::__construct($config);
- }
-
- /**
- * display task
- *
- * @return void
- */
- function display($cachable = false, $urlparams = false)
- {
- // set default view if not set
- $view = $this->input->getCmd('view', 'ehealth_portal');
- $data = $this->getViewRelation($view);
- $layout = $this->input->get('layout', null, 'WORD');
- $id = $this->input->getInt('id');
-
- // Check for edit form.
- if(Ehealth_portalHelper::checkArray($data))
- {
- if ($data['edit'] && $layout == 'edit' && !$this->checkEditId('com_ehealth_portal.edit.'.$data['view'], $id))
- {
- // Somehow the person just went to the form - we don't allow that.
- $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
- $this->setMessage($this->getError(), 'error');
- // check if item was opend from other then its own list view
- $ref = $this->input->getCmd('ref', 0);
- $refid = $this->input->getInt('refid', 0);
- // set redirect
- if ($refid > 0 && Ehealth_portalHelper::checkString($ref))
- {
- // redirect to item of ref
- $this->setRedirect(JRoute::_('index.php?option=com_ehealth_portal&view='.(string)$ref.'&layout=edit&id='.(int)$refid, false));
- }
- elseif (Ehealth_portalHelper::checkString($ref))
- {
-
- // redirect to ref
- $this->setRedirect(JRoute::_('index.php?option=com_ehealth_portal&view='.(string)$ref, false));
- }
- else
- {
- // normal redirect back to the list view
- $this->setRedirect(JRoute::_('index.php?option=com_ehealth_portal&view='.$data['views'], false));
- }
-
- return false;
- }
- }
-
- return parent::display($cachable, $urlparams);
- }
-
- protected function getViewRelation($view)
- {
- // check the we have a value
- if (Ehealth_portalHelper::checkString($view))
- {
- // the view relationships
- $views = array(
- 'payment' => 'payments',
- 'general_medical_check_up' => 'general_medical_check_ups',
- 'antenatal_care' => 'antenatal_cares',
- 'immunisation' => 'immunisations',
- 'vmmc' => 'vmmcs',
- 'prostate_and_testicular_cancer' => 'prostate_and_testicular_cancers',
- 'tuberculosis' => 'tuberculoses',
- 'hiv_counseling_and_testing' => 'hiv_counselings_and_testings',
- 'family_planning' => 'family_plannings',
- 'health_education' => 'health_educations',
- 'cervical_cancer' => 'cervical_cancers',
- 'breast_cancer' => 'breast_cancers',
- 'test' => 'tests',
- 'immunisation_vaccine_type' => 'immunisation_vaccine_types',
- 'foetal_presentation' => 'foetal_presentations',
- 'foetal_lie' => 'foetal_lies',
- 'counseling_type' => 'counseling_types',
- 'foetal_engagement' => 'foetal_engagements',
- 'health_education_topic' => 'health_education_topics',
- 'testing_reason' => 'testing_reasons',
- 'clinic' => 'clinics',
- 'immunisation_type' => 'immunisation_types',
- 'unit' => 'units',
- 'referral' => 'referrals',
- 'planning_type' => 'planning_types',
- 'diagnosis_type' => 'diagnosis_types',
- 'nonpay_reason' => 'nonpay_reasons',
- 'medication' => 'medications',
- 'payment_amount' => 'payment_amounts',
- 'administration_part' => 'administration_parts',
- 'payment_type' => 'payment_types',
- 'strength' => 'strengths',
- 'site' => 'sites'
- );
- // check if this is a list view
- if (in_array($view, $views))
- {
- // this is a list view
- return array('edit' => false, 'view' => array_search($view,$views), 'views' => $view);
- }
- // check if it is an edit view
- elseif (array_key_exists($view, $views))
- {
- // this is a edit view
- return array('edit' => true, 'view' => $view, 'views' => $views[$view]);
- }
- }
- return false;
- }
-}
diff --git a/admin/controllers/payment_amount.php b/admin/controllers/payment_amount.php
deleted file mode 100644
index 8ef70ff..0000000
--- a/admin/controllers/payment_amount.php
+++ /dev/null
@@ -1,330 +0,0 @@
-
- @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-
- Portal for mobile health clinics
-
-/-----------------------------------------------------------------------------------------------------------------------------*/
-
-// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
-
-use Joomla\Utilities\ArrayHelper;
-
-/**
- * Payment_amount Controller
- */
-class Ehealth_portalControllerPayment_amount extends JControllerForm
-{
- /**
- * Current or most recently performed task.
- *
- * @var string
- * @since 12.2
- * @note Replaces _task.
- */
- protected $task;
-
- /**
- * Class constructor.
- *
- * @param array $config A named array of configuration variables.
- *
- * @since 1.6
- */
- public function __construct($config = array())
- {
- $this->view_list = 'Payment_amounts'; // safeguard for setting the return view listing to the main view.
- parent::__construct($config);
- }
-
- /**
- * Method override to check if you can add a new record.
- *
- * @param array $data An array of input data.
- *
- * @return boolean
- *
- * @since 1.6
- */
- protected function allowAdd($data = array())
- {
- // Get user object.
- $user = JFactory::getUser();
- // Access check.
- $access = $user->authorise('payment_amount.access', 'com_ehealth_portal');
- if (!$access)
- {
- return false;
- }
-
- // In the absense of better information, revert to the component permissions.
- return parent::allowAdd($data);
- }
-
- /**
- * Method override to check if you can edit an existing record.
- *
- * @param array $data An array of input data.
- * @param string $key The name of the key for the primary key.
- *
- * @return boolean
- *
- * @since 1.6
- */
- protected function allowEdit($data = array(), $key = 'id')
- {
- // get user object.
- $user = JFactory::getUser();
- // get record id.
- $recordId = (int) isset($data[$key]) ? $data[$key] : 0;
-
-
- if ($recordId)
- {
- // The record has been set. Check the record permissions.
- $permission = $user->authorise('core.edit', 'com_ehealth_portal.payment_amount.' . (int) $recordId);
- if (!$permission)
- {
- if ($user->authorise('core.edit.own', 'com_ehealth_portal.payment_amount.' . $recordId))
- {
- // Now test the owner is the user.
- $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
- if (empty($ownerId))
- {
- // Need to do a lookup from the model.
- $record = $this->getModel()->getItem($recordId);
-
- if (empty($record))
- {
- return false;
- }
- $ownerId = $record->created_by;
- }
-
- // If the owner matches 'me' then allow.
- if ($ownerId == $user->id)
- {
- if ($user->authorise('core.edit.own', 'com_ehealth_portal'))
- {
- return true;
- }
- }
- }
- return false;
- }
- }
- // Since there is no permission, revert to the component permissions.
- return parent::allowEdit($data, $key);
- }
-
- /**
- * Gets the URL arguments to append to an item redirect.
- *
- * @param integer $recordId The primary key id for the item.
- * @param string $urlVar The name of the URL variable for the id.
- *
- * @return string The arguments to append to the redirect URL.
- *
- * @since 1.6
- */
- protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
- {
- // get the referral options (old method use return instead see parent)
- $ref = $this->input->get('ref', 0, 'string');
- $refid = $this->input->get('refid', 0, 'int');
-
- // get redirect info.
- $append = parent::getRedirectToItemAppend($recordId, $urlVar);
-
- // set the referral options
- if ($refid && $ref)
- {
- $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
- }
- elseif ($ref)
- {
- $append = '&ref='. (string)$ref . $append;
- }
-
- return $append;
- }
-
- /**
- * Method to run batch operations.
- *
- * @param object $model The model.
- *
- * @return boolean True if successful, false otherwise and internal error is set.
- *
- * @since 2.5
- */
- public function batch($model = null)
- {
- JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
-
- // Set the model
- $model = $this->getModel('Payment_amount', '', array());
-
- // Preset the redirect
- $this->setRedirect(JRoute::_('index.php?option=com_ehealth_portal&view=payment_amounts' . $this->getRedirectToListAppend(), false));
-
- return parent::batch($model);
- }
-
- /**
- * Method to cancel an edit.
- *
- * @param string $key The name of the primary key of the URL variable.
- *
- * @return boolean True if access level checks pass, false otherwise.
- *
- * @since 12.2
- */
- public function cancel($key = null)
- {
- // get the referral options
- $this->ref = $this->input->get('ref', 0, 'word');
- $this->refid = $this->input->get('refid', 0, 'int');
-
- // Check if there is a return value
- $return = $this->input->get('return', null, 'base64');
-
- $cancel = parent::cancel($key);
-
- if (!is_null($return) && JUri::isInternal(base64_decode($return)))
- {
- $redirect = base64_decode($return);
-
- // Redirect to the return value.
- $this->setRedirect(
- JRoute::_(
- $redirect, false
- )
- );
- }
- elseif ($this->refid && $this->ref)
- {
- $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
-
- // Redirect to the item screen.
- $this->setRedirect(
- JRoute::_(
- 'index.php?option=' . $this->option . $redirect, false
- )
- );
- }
- elseif ($this->ref)
- {
- $redirect = '&view='.(string)$this->ref;
-
- // Redirect to the list screen.
- $this->setRedirect(
- JRoute::_(
- 'index.php?option=' . $this->option . $redirect, false
- )
- );
- }
- return $cancel;
- }
-
- /**
- * Method to save a record.
- *
- * @param string $key The name of the primary key of the URL variable.
- * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
- *
- * @return boolean True if successful, false otherwise.
- *
- * @since 12.2
- */
- public function save($key = null, $urlVar = null)
- {
- // get the referral options
- $this->ref = $this->input->get('ref', 0, 'word');
- $this->refid = $this->input->get('refid', 0, 'int');
-
- // Check if there is a return value
- $return = $this->input->get('return', null, 'base64');
- $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
-
- if ($this->ref || $this->refid || $canReturn)
- {
- // to make sure the item is checkedin on redirect
- $this->task = 'save';
- }
-
- $saved = parent::save($key, $urlVar);
-
- // This is not needed since parent save already does this
- // Due to the ref and refid implementation we need to add this
- if ($canReturn)
- {
- $redirect = base64_decode($return);
-
- // Redirect to the return value.
- $this->setRedirect(
- JRoute::_(
- $redirect, false
- )
- );
- }
- elseif ($this->refid && $this->ref)
- {
- $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
-
- // Redirect to the item screen.
- $this->setRedirect(
- JRoute::_(
- 'index.php?option=' . $this->option . $redirect, false
- )
- );
- }
- elseif ($this->ref)
- {
- $redirect = '&view=' . (string)$this->ref;
-
- // Redirect to the list screen.
- $this->setRedirect(
- JRoute::_(
- 'index.php?option=' . $this->option . $redirect, false
- )
- );
- }
- return $saved;
- }
-
- /**
- * Function that allows child controller access to model data
- * after the data has been saved.
- *
- * @param JModel &$model The data model object.
- * @param array $validData The validated data.
- *
- * @return void
- *
- * @since 11.1
- */
- protected function postSaveHook(JModelLegacy $model, $validData = array())
- {
- return;
- }
-
-}
diff --git a/admin/controllers/payment_amounts.php b/admin/controllers/payment_amounts.php
deleted file mode 100644
index f62c6bc..0000000
--- a/admin/controllers/payment_amounts.php
+++ /dev/null
@@ -1,122 +0,0 @@
-
- @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-
- Portal for mobile health clinics
-
-/-----------------------------------------------------------------------------------------------------------------------------*/
-
-// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
-
-use Joomla\Utilities\ArrayHelper;
-
-/**
- * Payment_amounts Controller
- */
-class Ehealth_portalControllerPayment_amounts extends JControllerAdmin
-{
- /**
- * The prefix to use with controller messages.
- *
- * @var string
- * @since 1.6
- */
- protected $text_prefix = 'COM_EHEALTH_PORTAL_PAYMENT_AMOUNTS';
-
- /**
- * Method to get a model object, loading it if required.
- *
- * @param string $name The model name. Optional.
- * @param string $prefix The class prefix. Optional.
- * @param array $config Configuration array for model. Optional.
- *
- * @return JModelLegacy The model.
- *
- * @since 1.6
- */
- public function getModel($name = 'Payment_amount', $prefix = 'Ehealth_portalModel', $config = array('ignore_request' => true))
- {
- return parent::getModel($name, $prefix, $config);
- }
-
- public function exportData()
- {
- // Check for request forgeries
- JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
- // check if export is allowed for this user.
- $user = JFactory::getUser();
- if ($user->authorise('payment_amount.export', 'com_ehealth_portal') && $user->authorise('core.export', 'com_ehealth_portal'))
- {
- // Get the input
- $input = JFactory::getApplication()->input;
- $pks = $input->post->get('cid', array(), 'array');
- // Sanitize the input
- $pks = ArrayHelper::toInteger($pks);
- // Get the model
- $model = $this->getModel('Payment_amounts');
- // get the data to export
- $data = $model->getExportData($pks);
- if (Ehealth_portalHelper::checkArray($data))
- {
- // now set the data to the spreadsheet
- $date = JFactory::getDate();
- Ehealth_portalHelper::xls($data,'Payment_amounts_'.$date->format('jS_F_Y'),'Payment amounts exported ('.$date->format('jS F, Y').')','payment amounts');
- }
- }
- // Redirect to the list screen with error.
- $message = JText::_('COM_EHEALTH_PORTAL_EXPORT_FAILED');
- $this->setRedirect(JRoute::_('index.php?option=com_ehealth_portal&view=payment_amounts', false), $message, 'error');
- return;
- }
-
-
- public function importData()
- {
- // Check for request forgeries
- JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
- // check if import is allowed for this user.
- $user = JFactory::getUser();
- if ($user->authorise('payment_amount.import', 'com_ehealth_portal') && $user->authorise('core.import', 'com_ehealth_portal'))
- {
- // Get the import model
- $model = $this->getModel('Payment_amounts');
- // get the headers to import
- $headers = $model->getExImPortHeaders();
- if (Ehealth_portalHelper::checkObject($headers))
- {
- // Load headers to session.
- $session = JFactory::getSession();
- $headers = json_encode($headers);
- $session->set('payment_amount_VDM_IMPORTHEADERS', $headers);
- $session->set('backto_VDM_IMPORT', 'payment_amounts');
- $session->set('dataType_VDM_IMPORTINTO', 'payment_amount');
- // Redirect to import view.
- $message = JText::_('COM_EHEALTH_PORTAL_IMPORT_SELECT_FILE_FOR_PAYMENT_AMOUNTS');
- $this->setRedirect(JRoute::_('index.php?option=com_ehealth_portal&view=import', false), $message);
- return;
- }
- }
- // Redirect to the list screen with error.
- $message = JText::_('COM_EHEALTH_PORTAL_IMPORT_FAILED');
- $this->setRedirect(JRoute::_('index.php?option=com_ehealth_portal&view=payment_amounts', false), $message, 'error');
- return;
- }
-}
diff --git a/admin/ehealth_portal.php b/admin/ehealth_portal.php
deleted file mode 100644
index a86deee..0000000
--- a/admin/ehealth_portal.php
+++ /dev/null
@@ -1,53 +0,0 @@
-
- @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
- @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-
- Portal for mobile health clinics
-
-/-----------------------------------------------------------------------------------------------------------------------------*/
-
-// No direct access to this file
-defined('_JEXEC') or die('Restricted access');
-
-JHtml::_('behavior.tabstate');
-
-// Access check.
-if (!JFactory::getUser()->authorise('core.manage', 'com_ehealth_portal'))
-{
- throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
-};
-
-// Add CSS file for all pages
-$document = JFactory::getDocument();
-$document->addStyleSheet('components/com_ehealth_portal/assets/css/admin.css');
-$document->addScript('components/com_ehealth_portal/assets/js/admin.js');
-
-// require helper files
-JLoader::register('Ehealth_portalHelper', __DIR__ . '/helpers/ehealth_portal.php');
-JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');
-
-// Get an instance of the controller prefixed by Ehealth_portal
-$controller = JControllerLegacy::getInstance('Ehealth_portal');
-
-// Perform the Request task
-$controller->execute(JFactory::getApplication()->input->get('task'));
-
-// Redirect if set by the controller
-$controller->redirect();
diff --git a/admin/models/forms/administration_part.xml b/admin/forms/administration_part.xml
similarity index 62%
rename from admin/models/forms/administration_part.xml
rename to admin/forms/administration_part.xml
index 7ca6943..24ae9b8 100644
--- a/admin/models/forms/administration_part.xml
+++ b/admin/forms/administration_part.xml
@@ -1,7 +1,7 @@
\ No newline at end of file
diff --git a/admin/models/forms/filter_antenatal_cares.xml b/admin/forms/filter_antenatal_cares.xml
similarity index 71%
rename from admin/models/forms/filter_antenatal_cares.xml
rename to admin/forms/filter_antenatal_cares.xml
index 5c97fa9..93a139e 100644
--- a/admin/models/forms/filter_antenatal_cares.xml
+++ b/admin/forms/filter_antenatal_cares.xml
@@ -1,22 +1,22 @@