diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 68da171..6039a11 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -17,4 +17,8 @@ $routes->post('/auth/register/', 'Auth::register'); $routes->get('/patient', 'Patient::index'); $routes->post('/patient', 'Patient::create'); $routes->delete('/patient/(:any)', 'Patient::delete/$1'); -$routes->patch('/patient/(:num)', 'Patient::update/$1'); \ No newline at end of file +$routes->patch('/patient/(:num)', 'Patient::update/$1'); + +$routes->get('/patient/race', 'PatientRace::index'); +$routes->get('/patient/country', 'PatientCountry::index'); +$routes->get('/patient/religion', 'PatientReligion::index'); \ No newline at end of file diff --git a/app/Controllers/PatientCountry.php b/app/Controllers/PatientCountry.php new file mode 100644 index 0000000..29b01d9 --- /dev/null +++ b/app/Controllers/PatientCountry.php @@ -0,0 +1,1265 @@ + 1, + 'patcountrycode' => 'AD', + 'full_text' => 'Andorra' + ], + [ + 'patcountryid' => 2, + 'patcountrycode' => 'AE', + 'full_text' => 'United Arab Emirates' + ], + [ + 'patcountryid' => 3, + 'patcountrycode' => 'AF', + 'full_text' => 'Afghanistan' + ], + [ + 'patcountryid' => 4, + 'patcountrycode' => 'AG', + 'full_text' => 'Antigua and Barbuda' + ], + [ + 'patcountryid' => 5, + 'patcountrycode' => 'AI', + 'full_text' => 'Anguilla' + ], + [ + 'patcountryid' => 6, + 'patcountrycode' => 'AL', + 'full_text' => 'Albania' + ], + [ + 'patcountryid' => 7, + 'patcountrycode' => 'AM', + 'full_text' => 'Armenia' + ], + [ + 'patcountryid' => 8, + 'patcountrycode' => 'AO', + 'full_text' => 'Angola' + ], + [ + 'patcountryid' => 9, + 'patcountrycode' => 'AQ', + 'full_text' => 'Antarctica' + ], + [ + 'patcountryid' => 10, + 'patcountrycode' => 'AR', + 'full_text' => 'Argentina' + ], + [ + 'patcountryid' => 11, + 'patcountrycode' => 'AS', + 'full_text' => 'American Samoa' + ], + [ + 'patcountryid' => 12, + 'patcountrycode' => 'AT', + 'full_text' => 'Austria' + ], + [ + 'patcountryid' => 13, + 'patcountrycode' => 'AU', + 'full_text' => 'Australia' + ], + [ + 'patcountryid' => 14, + 'patcountrycode' => 'AW', + 'full_text' => 'Aruba' + ], + [ + 'patcountryid' => 15, + 'patcountrycode' => 'AX', + 'full_text' => 'Åland Islands' + ], + [ + 'patcountryid' => 16, + 'patcountrycode' => 'AZ', + 'full_text' => 'Azerbaijan' + ], + [ + 'patcountryid' => 17, + 'patcountrycode' => 'BA', + 'full_text' => 'Bosnia and Herzegovina' + ], + [ + 'patcountryid' => 18, + 'patcountrycode' => 'BB', + 'full_text' => 'Barbados' + ], + [ + 'patcountryid' => 19, + 'patcountrycode' => 'BD', + 'full_text' => 'Bangladesh' + ], + [ + 'patcountryid' => 20, + 'patcountrycode' => 'BE', + 'full_text' => 'Belgium' + ], + [ + 'patcountryid' => 21, + 'patcountrycode' => 'BF', + 'full_text' => 'Burkina Faso' + ], + [ + 'patcountryid' => 22, + 'patcountrycode' => 'BG', + 'full_text' => 'Bulgaria' + ], + [ + 'patcountryid' => 23, + 'patcountrycode' => 'BH', + 'full_text' => 'Bahrain' + ], + [ + 'patcountryid' => 24, + 'patcountrycode' => 'BI', + 'full_text' => 'Burundi' + ], + [ + 'patcountryid' => 25, + 'patcountrycode' => 'BJ', + 'full_text' => 'Benin' + ], + [ + 'patcountryid' => 26, + 'patcountrycode' => 'BL', + 'full_text' => 'Saint Barthélemy' + ], + [ + 'patcountryid' => 27, + 'patcountrycode' => 'BM', + 'full_text' => 'Bermuda' + ], + [ + 'patcountryid' => 28, + 'patcountrycode' => 'BN', + 'full_text' => 'Brunei Darussalam' + ], + [ + 'patcountryid' => 29, + 'patcountrycode' => 'BO', + 'full_text' => 'Bolivia (Plurinational State of)' + ], + [ + 'patcountryid' => 30, + 'patcountrycode' => 'BQ', + 'full_text' => 'Bonaire, Sint Eustatius and Saba' + ], + [ + 'patcountryid' => 31, + 'patcountrycode' => 'BR', + 'full_text' => 'Brazil' + ], + [ + 'patcountryid' => 32, + 'patcountrycode' => 'BS', + 'full_text' => 'Bahamas' + ], + [ + 'patcountryid' => 33, + 'patcountrycode' => 'BT', + 'full_text' => 'Bhutan' + ], + [ + 'patcountryid' => 34, + 'patcountrycode' => 'BV', + 'full_text' => 'Bouvet Island' + ], + [ + 'patcountryid' => 35, + 'patcountrycode' => 'BW', + 'full_text' => 'Botswana' + ], + [ + 'patcountryid' => 36, + 'patcountrycode' => 'BY', + 'full_text' => 'Belarus' + ], + [ + 'patcountryid' => 37, + 'patcountrycode' => 'BZ', + 'full_text' => 'Belize' + ], + [ + 'patcountryid' => 38, + 'patcountrycode' => 'CA', + 'full_text' => 'Canada' + ], + [ + 'patcountryid' => 39, + 'patcountrycode' => 'CC', + 'full_text' => 'Cocos (Keeling) Islands' + ], + [ + 'patcountryid' => 40, + 'patcountrycode' => 'CD', + 'full_text' => 'Congo (Democratic Republic of the)' + ], + [ + 'patcountryid' => 41, + 'patcountrycode' => 'CF', + 'full_text' => 'Central African Republic' + ], + [ + 'patcountryid' => 42, + 'patcountrycode' => 'CG', + 'full_text' => 'Congo' + ], + [ + 'patcountryid' => 43, + 'patcountrycode' => 'CH', + 'full_text' => 'Switzerland' + ], + [ + 'patcountryid' => 44, + 'patcountrycode' => 'CI', + 'full_text' => 'Côte d\'Ivoire' + ], + [ + 'patcountryid' => 45, + 'patcountrycode' => 'CK', + 'full_text' => 'Cook Islands' + ], + [ + 'patcountryid' => 46, + 'patcountrycode' => 'CL', + 'full_text' => 'Chile' + ], + [ + 'patcountryid' => 47, + 'patcountrycode' => 'CM', + 'full_text' => 'Cameroon' + ], + [ + 'patcountryid' => 48, + 'patcountrycode' => 'CN', + 'full_text' => 'China' + ], + [ + 'patcountryid' => 49, + 'patcountrycode' => 'CO', + 'full_text' => 'Colombia' + ], + [ + 'patcountryid' => 50, + 'patcountrycode' => 'CR', + 'full_text' => 'Costa Rica' + ], + [ + 'patcountryid' => 51, + 'patcountrycode' => 'CU', + 'full_text' => 'Cuba' + ], + [ + 'patcountryid' => 52, + 'patcountrycode' => 'CV', + 'full_text' => 'Cabo Verde' + ], + [ + 'patcountryid' => 53, + 'patcountrycode' => 'CW', + 'full_text' => 'Curaçao' + ], + [ + 'patcountryid' => 54, + 'patcountrycode' => 'CX', + 'full_text' => 'Christmas Island' + ], + [ + 'patcountryid' => 55, + 'patcountrycode' => 'CY', + 'full_text' => 'Cyprus' + ], + [ + 'patcountryid' => 56, + 'patcountrycode' => 'CZ', + 'full_text' => 'Czechia' + ], + [ + 'patcountryid' => 57, + 'patcountrycode' => 'DE', + 'full_text' => 'Germany' + ], + [ + 'patcountryid' => 58, + 'patcountrycode' => 'DJ', + 'full_text' => 'Djibouti' + ], + [ + 'patcountryid' => 59, + 'patcountrycode' => 'DK', + 'full_text' => 'Denmark' + ], + [ + 'patcountryid' => 60, + 'patcountrycode' => 'DM', + 'full_text' => 'Dominica' + ], + [ + 'patcountryid' => 61, + 'patcountrycode' => 'DO', + 'full_text' => 'Dominican Republic' + ], + [ + 'patcountryid' => 62, + 'patcountrycode' => 'DZ', + 'full_text' => 'Algeria' + ], + [ + 'patcountryid' => 63, + 'patcountrycode' => 'EC', + 'full_text' => 'Ecuador' + ], + [ + 'patcountryid' => 64, + 'patcountrycode' => 'EE', + 'full_text' => 'Estonia' + ], + [ + 'patcountryid' => 65, + 'patcountrycode' => 'EG', + 'full_text' => 'Egypt' + ], + [ + 'patcountryid' => 66, + 'patcountrycode' => 'EH', + 'full_text' => 'Western Sahara' + ], + [ + 'patcountryid' => 67, + 'patcountrycode' => 'ER', + 'full_text' => 'Eritrea' + ], + [ + 'patcountryid' => 68, + 'patcountrycode' => 'ES', + 'full_text' => 'Spain' + ], + [ + 'patcountryid' => 69, + 'patcountrycode' => 'ET', + 'full_text' => 'Ethiopia' + ], + [ + 'patcountryid' => 70, + 'patcountrycode' => 'FI', + 'full_text' => 'Finland' + ], + [ + 'patcountryid' => 71, + 'patcountrycode' => 'FJ', + 'full_text' => 'Fiji' + ], + [ + 'patcountryid' => 72, + 'patcountrycode' => 'FK', + 'full_text' => 'Falkland Islands (Malvinas)' + ], + [ + 'patcountryid' => 73, + 'patcountrycode' => 'FM', + 'full_text' => 'Micronesia (Federated States of)' + ], + [ + 'patcountryid' => 74, + 'patcountrycode' => 'FO', + 'full_text' => 'Faroe Islands' + ], + [ + 'patcountryid' => 75, + 'patcountrycode' => 'FR', + 'full_text' => 'France' + ], + [ + 'patcountryid' => 76, + 'patcountrycode' => 'GA', + 'full_text' => 'Gabon' + ], + [ + 'patcountryid' => 77, + 'patcountrycode' => 'GB', + 'full_text' => 'United Kingdom' + ], + [ + 'patcountryid' => 78, + 'patcountrycode' => 'GD', + 'full_text' => 'Grenada' + ], + [ + 'patcountryid' => 79, + 'patcountrycode' => 'GE', + 'full_text' => 'Georgia' + ], + [ + 'patcountryid' => 80, + 'patcountrycode' => 'GF', + 'full_text' => 'French Guiana' + ], + [ + 'patcountryid' => 81, + 'patcountrycode' => 'GG', + 'full_text' => 'Guernsey' + ], + [ + 'patcountryid' => 82, + 'patcountrycode' => 'GH', + 'full_text' => 'Ghana' + ], + [ + 'patcountryid' => 83, + 'patcountrycode' => 'GI', + 'full_text' => 'Gibraltar' + ], + [ + 'patcountryid' => 84, + 'patcountrycode' => 'GL', + 'full_text' => 'Greenland' + ], + [ + 'patcountryid' => 85, + 'patcountrycode' => 'GM', + 'full_text' => 'Gambia' + ], + [ + 'patcountryid' => 86, + 'patcountrycode' => 'GN', + 'full_text' => 'Guinea' + ], + [ + 'patcountryid' => 87, + 'patcountrycode' => 'GP', + 'full_text' => 'Guadeloupe' + ], + [ + 'patcountryid' => 88, + 'patcountrycode' => 'GQ', + 'full_text' => 'Equatorial Guinea' + ], + [ + 'patcountryid' => 89, + 'patcountrycode' => 'GR', + 'full_text' => 'Greece' + ], + [ + 'patcountryid' => 90, + 'patcountrycode' => 'GS', + 'full_text' => 'South Georgia and the South Sandwich Islands' + ], + [ + 'patcountryid' => 91, + 'patcountrycode' => 'GT', + 'full_text' => 'Guatemala' + ], + [ + 'patcountryid' => 92, + 'patcountrycode' => 'GU', + 'full_text' => 'Guam' + ], + [ + 'patcountryid' => 93, + 'patcountrycode' => 'GW', + 'full_text' => 'Guinea-Bissau' + ], + [ + 'patcountryid' => 94, + 'patcountrycode' => 'GY', + 'full_text' => 'Guyana' + ], + [ + 'patcountryid' => 95, + 'patcountrycode' => 'HK', + 'full_text' => 'Hong Kong' + ], + [ + 'patcountryid' => 96, + 'patcountrycode' => 'HM', + 'full_text' => 'Heard Island and McDonald Islands' + ], + [ + 'patcountryid' => 97, + 'patcountrycode' => 'HN', + 'full_text' => 'Honduras' + ], + [ + 'patcountryid' => 98, + 'patcountrycode' => 'HR', + 'full_text' => 'Croatia' + ], + [ + 'patcountryid' => 99, + 'patcountrycode' => 'HT', + 'full_text' => 'Haiti' + ], + [ + 'patcountryid' => 100, + 'patcountrycode' => 'HU', + 'full_text' => 'Hungary' + ], + [ + 'patcountryid' => 101, + 'patcountrycode' => 'ID', + 'full_text' => 'Indonesia' + ], + [ + 'patcountryid' => 102, + 'patcountrycode' => 'IE', + 'full_text' => 'Ireland' + ], + [ + 'patcountryid' => 103, + 'patcountrycode' => 'IL', + 'full_text' => 'Israel' + ], + [ + 'patcountryid' => 104, + 'patcountrycode' => 'IM', + 'full_text' => 'Isle of Man' + ], + [ + 'patcountryid' => 105, + 'patcountrycode' => 'IN', + 'full_text' => 'India' + ], + [ + 'patcountryid' => 106, + 'patcountrycode' => 'IO', + 'full_text' => 'British Indian Ocean Territory' + ], + [ + 'patcountryid' => 107, + 'patcountrycode' => 'IQ', + 'full_text' => 'Iraq' + ], + [ + 'patcountryid' => 108, + 'patcountrycode' => 'IR', + 'full_text' => 'Iran (Islamic Republic of)' + ], + [ + 'patcountryid' => 109, + 'patcountrycode' => 'IS', + 'full_text' => 'Iceland' + ], + [ + 'patcountryid' => 110, + 'patcountrycode' => 'IT', + 'full_text' => 'Italy' + ], + [ + 'patcountryid' => 111, + 'patcountrycode' => 'JE', + 'full_text' => 'Jersey' + ], + [ + 'patcountryid' => 112, + 'patcountrycode' => 'JM', + 'full_text' => 'Jamaica' + ], + [ + 'patcountryid' => 113, + 'patcountrycode' => 'JO', + 'full_text' => 'Jordan' + ], + [ + 'patcountryid' => 114, + 'patcountrycode' => 'JP', + 'full_text' => 'Japan' + ], + [ + 'patcountryid' => 115, + 'patcountrycode' => 'KE', + 'full_text' => 'Kenya' + ], + [ + 'patcountryid' => 116, + 'patcountrycode' => 'KG', + 'full_text' => 'Kyrgyzstan' + ], + [ + 'patcountryid' => 117, + 'patcountrycode' => 'KH', + 'full_text' => 'Cambodia' + ], + [ + 'patcountryid' => 118, + 'patcountrycode' => 'KI', + 'full_text' => 'Kiribati' + ], + [ + 'patcountryid' => 119, + 'patcountrycode' => 'KM', + 'full_text' => 'Comoros' + ], + [ + 'patcountryid' => 120, + 'patcountrycode' => 'KN', + 'full_text' => 'Saint Kitts and Nevis' + ], + [ + 'patcountryid' => 121, + 'patcountrycode' => 'KP', + 'full_text' => 'Korea (Democratic People\'s Republic of)' + ], + [ + 'patcountryid' => 122, + 'patcountrycode' => 'KR', + 'full_text' => 'Korea (Republic of)' + ], + [ + 'patcountryid' => 123, + 'patcountrycode' => 'KW', + 'full_text' => 'Kuwait' + ], + [ + 'patcountryid' => 124, + 'patcountrycode' => 'KY', + 'full_text' => 'Cayman Islands' + ], + [ + 'patcountryid' => 125, + 'patcountrycode' => 'KZ', + 'full_text' => 'Kazakhstan' + ], + [ + 'patcountryid' => 126, + 'patcountrycode' => 'LA', + 'full_text' => 'Lao People\'s Democratic Republic' + ], + [ + 'patcountryid' => 127, + 'patcountrycode' => 'LB', + 'full_text' => 'Lebanon' + ], + [ + 'patcountryid' => 128, + 'patcountrycode' => 'LC', + 'full_text' => 'Saint Lucia' + ], + [ + 'patcountryid' => 129, + 'patcountrycode' => 'LI', + 'full_text' => 'Liechtenstein' + ], + [ + 'patcountryid' => 130, + 'patcountrycode' => 'LK', + 'full_text' => 'Sri Lanka' + ], + [ + 'patcountryid' => 131, + 'patcountrycode' => 'LR', + 'full_text' => 'Liberia' + ], + [ + 'patcountryid' => 132, + 'patcountrycode' => 'LS', + 'full_text' => 'Lesotho' + ], + [ + 'patcountryid' => 133, + 'patcountrycode' => 'LT', + 'full_text' => 'Lithuania' + ], + [ + 'patcountryid' => 134, + 'patcountrycode' => 'LU', + 'full_text' => 'Luxembourg' + ], + [ + 'patcountryid' => 135, + 'patcountrycode' => 'LV', + 'full_text' => 'Latvia' + ], + [ + 'patcountryid' => 136, + 'patcountrycode' => 'LY', + 'full_text' => 'Libya' + ], + [ + 'patcountryid' => 137, + 'patcountrycode' => 'MA', + 'full_text' => 'Morocco' + ], + [ + 'patcountryid' => 138, + 'patcountrycode' => 'MC', + 'full_text' => 'Monaco' + ], + [ + 'patcountryid' => 139, + 'patcountrycode' => 'MD', + 'full_text' => 'Moldova (Republic of)' + ], + [ + 'patcountryid' => 140, + 'patcountrycode' => 'ME', + 'full_text' => 'Montenegro' + ], + [ + 'patcountryid' => 141, + 'patcountrycode' => 'MF', + 'full_text' => 'Saint Martin (French part)' + ], + [ + 'patcountryid' => 142, + 'patcountrycode' => 'MG', + 'full_text' => 'Madagascar' + ], + [ + 'patcountryid' => 143, + 'patcountrycode' => 'MH', + 'full_text' => 'Marshall Islands' + ], + [ + 'patcountryid' => 144, + 'patcountrycode' => 'MK', + 'full_text' => 'North Macedonia' + ], + [ + 'patcountryid' => 145, + 'patcountrycode' => 'ML', + 'full_text' => 'Mali' + ], + [ + 'patcountryid' => 146, + 'patcountrycode' => 'MM', + 'full_text' => 'Myanmar' + ], + [ + 'patcountryid' => 147, + 'patcountrycode' => 'MN', + 'full_text' => 'Mongolia' + ], + [ + 'patcountryid' => 148, + 'patcountrycode' => 'MO', + 'full_text' => 'Macao' + ], + [ + 'patcountryid' => 149, + 'patcountrycode' => 'MP', + 'full_text' => 'Northern Mariana Islands' + ], + [ + 'patcountryid' => 150, + 'patcountrycode' => 'MQ', + 'full_text' => 'Martinique' + ], + [ + 'patcountryid' => 151, + 'patcountrycode' => 'MR', + 'full_text' => 'Mauritania' + ], + [ + 'patcountryid' => 152, + 'patcountrycode' => 'MS', + 'full_text' => 'Montserrat' + ], + [ + 'patcountryid' => 153, + 'patcountrycode' => 'MT', + 'full_text' => 'Malta' + ], + [ + 'patcountryid' => 154, + 'patcountrycode' => 'MU', + 'full_text' => 'Mauritius' + ], + [ + 'patcountryid' => 155, + 'patcountrycode' => 'MV', + 'full_text' => 'Maldives' + ], + [ + 'patcountryid' => 156, + 'patcountrycode' => 'MW', + 'full_text' => 'Malawi' + ], + [ + 'patcountryid' => 157, + 'patcountrycode' => 'MX', + 'full_text' => 'Mexico' + ], + [ + 'patcountryid' => 158, + 'patcountrycode' => 'MY', + 'full_text' => 'Malaysia' + ], + [ + 'patcountryid' => 159, + 'patcountrycode' => 'MZ', + 'full_text' => 'Mozambique' + ], + [ + 'patcountryid' => 160, + 'patcountrycode' => 'NA', + 'full_text' => 'Namibia' + ], + [ + 'patcountryid' => 161, + 'patcountrycode' => 'NC', + 'full_text' => 'New Caledonia' + ], + [ + 'patcountryid' => 162, + 'patcountrycode' => 'NE', + 'full_text' => 'Niger' + ], + [ + 'patcountryid' => 163, + 'patcountrycode' => 'NF', + 'full_text' => 'Norfolk Island' + ], + [ + 'patcountryid' => 164, + 'patcountrycode' => 'NG', + 'full_text' => 'Nigeria' + ], + [ + 'patcountryid' => 165, + 'patcountrycode' => 'NI', + 'full_text' => 'Nicaragua' + ], + [ + 'patcountryid' => 166, + 'patcountrycode' => 'NL', + 'full_text' => 'Netherlands' + ], + [ + 'patcountryid' => 167, + 'patcountrycode' => 'NO', + 'full_text' => 'Norway' + ], + [ + 'patcountryid' => 168, + 'patcountrycode' => 'NP', + 'full_text' => 'Nepal' + ], + [ + 'patcountryid' => 169, + 'patcountrycode' => 'NR', + 'full_text' => 'Nauru' + ], + [ + 'patcountryid' => 170, + 'patcountrycode' => 'NU', + 'full_text' => 'Niue' + ], + [ + 'patcountryid' => 171, + 'patcountrycode' => 'NZ', + 'full_text' => 'New Zealand' + ], + [ + 'patcountryid' => 172, + 'patcountrycode' => 'OM', + 'full_text' => 'Oman' + ], + [ + 'patcountryid' => 173, + 'patcountrycode' => 'PA', + 'full_text' => 'Panama' + ], + [ + 'patcountryid' => 174, + 'patcountrycode' => 'PE', + 'full_text' => 'Peru' + ], + [ + 'patcountryid' => 175, + 'patcountrycode' => 'PF', + 'full_text' => 'French Polynesia' + ], + [ + 'patcountryid' => 176, + 'patcountrycode' => 'PG', + 'full_text' => 'Papua New Guinea' + ], + [ + 'patcountryid' => 177, + 'patcountrycode' => 'PH', + 'full_text' => 'Philippines' + ], + [ + 'patcountryid' => 178, + 'patcountrycode' => 'PK', + 'full_text' => 'Pakistan' + ], + [ + 'patcountryid' => 179, + 'patcountrycode' => 'PL', + 'full_text' => 'Poland' + ], + [ + 'patcountryid' => 180, + 'patcountrycode' => 'PM', + 'full_text' => 'Saint Pierre and Miquelon' + ], + [ + 'patcountryid' => 181, + 'patcountrycode' => 'PN', + 'full_text' => 'Pitcairn' + ], + [ + 'patcountryid' => 182, + 'patcountrycode' => 'PR', + 'full_text' => 'Puerto Rico' + ], + [ + 'patcountryid' => 183, + 'patcountrycode' => 'PS', + 'full_text' => 'Palestine, State of' + ], + [ + 'patcountryid' => 184, + 'patcountrycode' => 'PT', + 'full_text' => 'Portugal' + ], + [ + 'patcountryid' => 185, + 'patcountrycode' => 'PW', + 'full_text' => 'Palau' + ], + [ + 'patcountryid' => 186, + 'patcountrycode' => 'PY', + 'full_text' => 'Paraguay' + ], + [ + 'patcountryid' => 187, + 'patcountrycode' => 'QA', + 'full_text' => 'Qatar' + ], + [ + 'patcountryid' => 188, + 'patcountrycode' => 'RE', + 'full_text' => 'Réunion' + ], + [ + 'patcountryid' => 189, + 'patcountrycode' => 'RO', + 'full_text' => 'Romania' + ], + [ + 'patcountryid' => 190, + 'patcountrycode' => 'RS', + 'full_text' => 'Serbia' + ], + [ + 'patcountryid' => 191, + 'patcountrycode' => 'RU', + 'full_text' => 'Russian Federation' + ], + [ + 'patcountryid' => 192, + 'patcountrycode' => 'RW', + 'full_text' => 'Rwanda' + ], + [ + 'patcountryid' => 193, + 'patcountrycode' => 'SA', + 'full_text' => 'Saudi Arabia' + ], + [ + 'patcountryid' => 194, + 'patcountrycode' => 'SB', + 'full_text' => 'Solomon Islands' + ], + [ + 'patcountryid' => 195, + 'patcountrycode' => 'SC', + 'full_text' => 'Seychelles' + ], + [ + 'patcountryid' => 196, + 'patcountrycode' => 'SD', + 'full_text' => 'Sudan' + ], + [ + 'patcountryid' => 197, + 'patcountrycode' => 'SE', + 'full_text' => 'Sweden' + ], + [ + 'patcountryid' => 198, + 'patcountrycode' => 'SG', + 'full_text' => 'Singapore' + ], + [ + 'patcountryid' => 199, + 'patcountrycode' => 'SH', + 'full_text' => 'Saint Helena, Ascension and Tristan da Cunha' + ], + [ + 'patcountryid' => 200, + 'patcountrycode' => 'SI', + 'full_text' => 'Slovenia' + ], + [ + 'patcountryid' => 201, + 'patcountrycode' => 'SJ', + 'full_text' => 'Svalbard and Jan Mayen' + ], + [ + 'patcountryid' => 202, + 'patcountrycode' => 'SK', + 'full_text' => 'Slovakia' + ], + [ + 'patcountryid' => 203, + 'patcountrycode' => 'SL', + 'full_text' => 'Sierra Leone' + ], + [ + 'patcountryid' => 204, + 'patcountrycode' => 'SM', + 'full_text' => 'San Marino' + ], + [ + 'patcountryid' => 205, + 'patcountrycode' => 'SN', + 'full_text' => 'Senegal' + ], + [ + 'patcountryid' => 206, + 'patcountrycode' => 'SO', + 'full_text' => 'Somalia' + ], + [ + 'patcountryid' => 207, + 'patcountrycode' => 'SR', + 'full_text' => 'Suriname' + ], + [ + 'patcountryid' => 208, + 'patcountrycode' => 'SS', + 'full_text' => 'South Sudan' + ], + [ + 'patcountryid' => 209, + 'patcountrycode' => 'ST', + 'full_text' => 'Sao Tome and Principe' + ], + [ + 'patcountryid' => 210, + 'patcountrycode' => 'SV', + 'full_text' => 'El Salvador' + ], + [ + 'patcountryid' => 211, + 'patcountrycode' => 'SX', + 'full_text' => 'Sint Maarten (Dutch part)' + ], + [ + 'patcountryid' => 212, + 'patcountrycode' => 'SY', + 'full_text' => 'Syrian Arab Republic' + ], + [ + 'patcountryid' => 213, + 'patcountrycode' => 'SZ', + 'full_text' => 'Eswatini' + ], + [ + 'patcountryid' => 214, + 'patcountrycode' => 'TC', + 'full_text' => 'Turks and Caicos Islands' + ], + [ + 'patcountryid' => 215, + 'patcountrycode' => 'TD', + 'full_text' => 'Chad' + ], + [ + 'patcountryid' => 216, + 'patcountrycode' => 'TF', + 'full_text' => 'French Southern Territories' + ], + [ + 'patcountryid' => 217, + 'patcountrycode' => 'TG', + 'full_text' => 'Togo' + ], + [ + 'patcountryid' => 218, + 'patcountrycode' => 'TH', + 'full_text' => 'Thailand' + ], + [ + 'patcountryid' => 219, + 'patcountrycode' => 'TJ', + 'full_text' => 'Tajikistan' + ], + [ + 'patcountryid' => 220, + 'patcountrycode' => 'TK', + 'full_text' => 'Tokelau' + ], + [ + 'patcountryid' => 221, + 'patcountrycode' => 'TL', + 'full_text' => 'Timor-Leste' + ], + [ + 'patcountryid' => 222, + 'patcountrycode' => 'TM', + 'full_text' => 'Turkmenistan' + ], + [ + 'patcountryid' => 223, + 'patcountrycode' => 'TN', + 'full_text' => 'Tunisia' + ], + [ + 'patcountryid' => 224, + 'patcountrycode' => 'TO', + 'full_text' => 'Tonga' + ], + [ + 'patcountryid' => 225, + 'patcountrycode' => 'TR', + 'full_text' => 'Turkey' + ], + [ + 'patcountryid' => 226, + 'patcountrycode' => 'TT', + 'full_text' => 'Trinidad and Tobago' + ], + [ + 'patcountryid' => 227, + 'patcountrycode' => 'TV', + 'full_text' => 'Tuvalu' + ], + [ + 'patcountryid' => 228, + 'patcountrycode' => 'TW', + 'full_text' => 'Taiwan, Province of China' + ], + [ + 'patcountryid' => 229, + 'patcountrycode' => 'TZ', + 'full_text' => 'Tanzania, United Republic of' + ], + [ + 'patcountryid' => 230, + 'patcountrycode' => 'UA', + 'full_text' => 'Ukraine' + ], + [ + 'patcountryid' => 231, + 'patcountrycode' => 'UG', + 'full_text' => 'Uganda' + ], + [ + 'patcountryid' => 232, + 'patcountrycode' => 'UM', + 'full_text' => 'United States Minor Outlying Islands' + ], + [ + 'patcountryid' => 233, + 'patcountrycode' => 'US', + 'full_text' => 'United States of America' + ], + [ + 'patcountryid' => 234, + 'patcountrycode' => 'UY', + 'full_text' => 'Uruguay' + ], + [ + 'patcountryid' => 235, + 'patcountrycode' => 'UZ', + 'full_text' => 'Uzbekistan' + ], + [ + 'patcountryid' => 236, + 'patcountrycode' => 'VA', + 'full_text' => 'Holy See' + ], + [ + 'patcountryid' => 237, + 'patcountrycode' => 'VC', + 'full_text' => 'Saint Vincent and the Grenadines' + ], + [ + 'patcountryid' => 238, + 'patcountrycode' => 'VE', + 'full_text' => 'Venezuela (Bolivarian Republic of)' + ], + [ + 'patcountryid' => 239, + 'patcountrycode' => 'VG', + 'full_text' => 'Virgin Islands (British)' + ], + [ + 'patcountryid' => 240, + 'patcountrycode' => 'VI', + 'full_text' => 'Virgin Islands (U.S.)' + ], + [ + 'patcountryid' => 241, + 'patcountrycode' => 'VN', + 'full_text' => 'Viet Nam' + ], + [ + 'patcountryid' => 242, + 'patcountrycode' => 'VU', + 'full_text' => 'Vanuatu' + ], + [ + 'patcountryid' => 243, + 'patcountrycode' => 'WF', + 'full_text' => 'Wallis and Futuna' + ], + [ + 'patcountryid' => 244, + 'patcountrycode' => 'WS', + 'full_text' => 'Samoa' + ], + [ + 'patcountryid' => 245, + 'patcountrycode' => 'YE', + 'full_text' => 'Yemen' + ], + [ + 'patcountryid' => 246, + 'patcountrycode' => 'YT', + 'full_text' => 'Mayotte' + ], + [ + 'patcountryid' => 247, + 'patcountrycode' => 'ZA', + 'full_text' => 'South Africa' + ], + [ + 'patcountryid' => 248, + 'patcountrycode' => 'ZM', + 'full_text' => 'Zambia' + ], + [ + 'patcountryid' => 249, + 'patcountrycode' => 'ZW', + 'full_text' => 'Zimbabwe' + ] + ]; + + return $this->respond([ + 'status' => 'success', + 'data' => $data, + ]); + } +} \ No newline at end of file diff --git a/app/Controllers/PatientRace.php b/app/Controllers/PatientRace.php new file mode 100644 index 0000000..05b4adf --- /dev/null +++ b/app/Controllers/PatientRace.php @@ -0,0 +1,27 @@ +'1', 'patracecode'=> 'ASIA', 'full_text'=>'Asian' ], + [ 'patraceid'=>'2', 'patracecode'=> 'AMERICA', 'full_text'=>'American Indian or Alaska Native' ], + [ 'patraceid'=>'3', 'patracecode'=> 'AFRICA', 'full_text'=>'Black or African-American' ], + [ 'patraceid'=>'4', 'patracecode'=> 'LATIN', 'full_text'=>'Hispanic or Latino' ], + [ 'patraceid'=>'5', 'patracecode'=> 'HAWAI', 'full_text'=>'Native Hawaiian or Pacific Islander' ], + [ 'patraceid'=>'6', 'patracecode'=> 'WHITE', 'full_text'=>'White' ], + [ 'patraceid'=>'7', 'patracecode'=> 'UK', 'full_text'=>'Unknown' ] + ]; + + return $this->respond([ + 'status' => 'success', + 'data' => $data, + ]); + } +} \ No newline at end of file diff --git a/app/Controllers/PatientReligion.php b/app/Controllers/PatientReligion.php new file mode 100644 index 0000000..28ed4e1 --- /dev/null +++ b/app/Controllers/PatientReligion.php @@ -0,0 +1,26 @@ +'1', 'patrelicode'=> 'ISL', 'full_text'=>'Islam' ], + [ 'patreliid'=>'2', 'patrelicode'=> 'KAT', 'full_text'=>'Katolik' ], + [ 'patreliid'=>'3', 'patrelicode'=> 'PRO', 'full_text'=>'Protestan' ], + [ 'patreliid'=>'4', 'patrelicode'=> 'BUD', 'full_text'=>'Buddha' ], + [ 'patreliid'=>'5', 'patrelicode'=> 'HIN', 'full_text'=>'Hindu' ], + [ 'patreliid'=>'6', 'patrelicode'=> 'KON', 'full_text'=>'Kong Hu Chu' ], + ]; + + return $this->respond([ + 'status' => 'success', + 'data' => $data, + ]); + } +} \ No newline at end of file