diff --git a/app/Controllers/Country.php b/app/Controllers/Country.php new file mode 100644 index 0000000..38268ac --- /dev/null +++ b/app/Controllers/Country.php @@ -0,0 +1,18 @@ +respond([ + 'status' => 'success', + 'data' => $data, + ]); + } +} \ No newline at end of file diff --git a/app/Controllers/PatientCountry.php b/app/Controllers/PatientCountry.php deleted file mode 100644 index 29b01d9..0000000 --- a/app/Controllers/PatientCountry.php +++ /dev/null @@ -1,1265 +0,0 @@ - 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 deleted file mode 100644 index 05b4adf..0000000 --- a/app/Controllers/PatientRace.php +++ /dev/null @@ -1,27 +0,0 @@ -'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 deleted file mode 100644 index 28ed4e1..0000000 --- a/app/Controllers/PatientReligion.php +++ /dev/null @@ -1,26 +0,0 @@ -'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 diff --git a/app/Controllers/Race.php b/app/Controllers/Race.php new file mode 100644 index 0000000..121eb28 --- /dev/null +++ b/app/Controllers/Race.php @@ -0,0 +1,19 @@ +respond([ + 'status' => 'success', + 'data' => $data, + ]); + } +} \ No newline at end of file diff --git a/app/Controllers/Religion.php b/app/Controllers/Religion.php new file mode 100644 index 0000000..faa5c15 --- /dev/null +++ b/app/Controllers/Religion.php @@ -0,0 +1,19 @@ +respond([ + 'status' => 'success', + 'data' => $data, + ]); + } +} \ No newline at end of file diff --git a/public/clqms01.sql b/public/clqms01.sql new file mode 100644 index 0000000..89eb19b --- /dev/null +++ b/public/clqms01.sql @@ -0,0 +1,554 @@ +-- Adminer 5.2.1 MariaDB 10.4.32-MariaDB dump + +SET NAMES utf8; +SET time_zone = '+00:00'; +SET foreign_key_checks = 0; +SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; + +SET NAMES utf8mb4; + +DROP DATABASE IF EXISTS `clqms01`; +CREATE DATABASE `clqms01` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */; +USE `clqms01`; + +DROP TABLE IF EXISTS `country`; +CREATE TABLE `country` ( + `SiteID` int(11) DEFAULT NULL, + `CodingSysID` int(11) DEFAULT NULL, + `IntCountryID` int(11) NOT NULL AUTO_INCREMENT, + `CountryID` varchar(10) NOT NULL, + `Country` varchar(255) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + PRIMARY KEY (`IntCountryID`), + UNIQUE KEY `CountryID` (`CountryID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +INSERT INTO `country` (`SiteID`, `CodingSysID`, `IntCountryID`, `CountryID`, `Country`, `CreateDate`, `EndDate`) VALUES +(NULL, NULL, 1, 'AFG', 'Afghanistan', NULL, NULL), +(NULL, NULL, 2, 'ALA', 'Åland Islands', NULL, NULL), +(NULL, NULL, 3, 'ALB', 'Albania', NULL, NULL), +(NULL, NULL, 4, 'DZA', 'Algeria', NULL, NULL), +(NULL, NULL, 5, 'ASM', 'American Samoa', NULL, NULL), +(NULL, NULL, 6, 'AND', 'Andorra', NULL, NULL), +(NULL, NULL, 7, 'AGO', 'Angola', NULL, NULL), +(NULL, NULL, 8, 'AIA', 'Anguilla', NULL, NULL), +(NULL, NULL, 9, 'ATA', 'Antarctica', NULL, NULL), +(NULL, NULL, 10, 'ATG', 'Antigua and Barbuda', NULL, NULL), +(NULL, NULL, 11, 'ARG', 'Argentina', NULL, NULL), +(NULL, NULL, 12, 'ARM', 'Armenia', NULL, NULL), +(NULL, NULL, 13, 'ABW', 'Aruba', NULL, NULL), +(NULL, NULL, 14, 'AUS', 'Australia', NULL, NULL), +(NULL, NULL, 15, 'AUT', 'Austria', NULL, NULL), +(NULL, NULL, 16, 'AZE', 'Azerbaijan', NULL, NULL), +(NULL, NULL, 17, 'BHS', 'Bahamas', NULL, NULL), +(NULL, NULL, 18, 'BHR', 'Bahrain', NULL, NULL), +(NULL, NULL, 19, 'BGD', 'Bangladesh', NULL, NULL), +(NULL, NULL, 20, 'BRB', 'Barbados', NULL, NULL), +(NULL, NULL, 21, 'BLR', 'Belarus', NULL, NULL), +(NULL, NULL, 22, 'BEL', 'Belgium', NULL, NULL), +(NULL, NULL, 23, 'BLZ', 'Belize', NULL, NULL), +(NULL, NULL, 24, 'BEN', 'Benin', NULL, NULL), +(NULL, NULL, 25, 'BMU', 'Bermuda', NULL, NULL), +(NULL, NULL, 26, 'BTN', 'Bhutan', NULL, NULL), +(NULL, NULL, 27, 'BOL', 'Bolivia, Plurinational State of', NULL, NULL), +(NULL, NULL, 28, 'BES', 'Bonaire, Sint Eustatius and Saba[d]', NULL, NULL), +(NULL, NULL, 29, 'BIH', 'Bosnia and Herzegovina', NULL, NULL), +(NULL, NULL, 30, 'BWA', 'Botswana', NULL, NULL), +(NULL, NULL, 31, 'BVT', 'Bouvet Island', NULL, NULL), +(NULL, NULL, 32, 'BRA', 'Brazil', NULL, NULL), +(NULL, NULL, 33, 'IOT', 'British Indian Ocean Territory', NULL, NULL), +(NULL, NULL, 34, 'BRN', 'Brunei Darussalam', NULL, NULL), +(NULL, NULL, 35, 'BGR', 'Bulgaria', NULL, NULL), +(NULL, NULL, 36, 'BFA', 'Burkina Faso', NULL, NULL), +(NULL, NULL, 37, 'BDI', 'Burundi', NULL, NULL), +(NULL, NULL, 38, 'CPV', 'Cabo Verde', NULL, NULL), +(NULL, NULL, 39, 'KHM', 'Cambodia', NULL, NULL), +(NULL, NULL, 40, 'CMR', 'Cameroon', NULL, NULL), +(NULL, NULL, 41, 'CAN', 'Canada', NULL, NULL), +(NULL, NULL, 42, 'CYM', 'Cayman Islands', NULL, NULL), +(NULL, NULL, 43, 'CAF', 'Central African Republic', NULL, NULL), +(NULL, NULL, 44, 'TCD', 'Chad', NULL, NULL), +(NULL, NULL, 45, 'CHL', 'Chile', NULL, NULL), +(NULL, NULL, 46, 'CHN', 'China[c]', NULL, NULL), +(NULL, NULL, 47, 'CXR', 'Christmas Island', NULL, NULL), +(NULL, NULL, 48, 'CCK', 'Cocos (Keeling) Islands', NULL, NULL), +(NULL, NULL, 49, 'COL', 'Colombia', NULL, NULL), +(NULL, NULL, 50, 'COM', 'Comoros', NULL, NULL), +(NULL, NULL, 51, 'COG', 'Congo', NULL, NULL), +(NULL, NULL, 52, 'COD', 'Congo, Democratic Republic of the', NULL, NULL), +(NULL, NULL, 53, 'COK', 'Cook Islands', NULL, NULL), +(NULL, NULL, 54, 'CRI', 'Costa Rica', NULL, NULL), +(NULL, NULL, 55, 'CIV', 'Côte d\'Ivoire', NULL, NULL), +(NULL, NULL, 56, 'HRV', 'Croatia', NULL, NULL), +(NULL, NULL, 57, 'CUB', 'Cuba', NULL, NULL), +(NULL, NULL, 58, 'CUW', 'Curaçao', NULL, NULL), +(NULL, NULL, 59, 'CYP', 'Cyprus[c]', NULL, NULL), +(NULL, NULL, 60, 'CZE', 'Czechia', NULL, NULL), +(NULL, NULL, 61, 'DNK', 'Denmark', NULL, NULL), +(NULL, NULL, 62, 'DJI', 'Djibouti', NULL, NULL), +(NULL, NULL, 63, 'DMA', 'Dominica', NULL, NULL), +(NULL, NULL, 64, 'DOM', 'Dominican Republic', NULL, NULL), +(NULL, NULL, 65, 'ECU', 'Ecuador', NULL, NULL), +(NULL, NULL, 66, 'EGY', 'Egypt', NULL, NULL), +(NULL, NULL, 67, 'SLV', 'El Salvador', NULL, NULL), +(NULL, NULL, 68, 'GNQ', 'Equatorial Guinea', NULL, NULL), +(NULL, NULL, 69, 'ERI', 'Eritrea', NULL, NULL), +(NULL, NULL, 70, 'EST', 'Estonia', NULL, NULL), +(NULL, NULL, 71, 'SWZ', 'Eswatini', NULL, NULL), +(NULL, NULL, 72, 'ETH', 'Ethiopia', NULL, NULL), +(NULL, NULL, 73, 'FLK', 'Falkland Islands (Malvinas)[c]', NULL, NULL), +(NULL, NULL, 74, 'FRO', 'Faroe Islands', NULL, NULL), +(NULL, NULL, 75, 'FJI', 'Fiji', NULL, NULL), +(NULL, NULL, 76, 'FIN', 'Finland', NULL, NULL), +(NULL, NULL, 77, 'FRA', 'France', NULL, NULL), +(NULL, NULL, 78, 'GUF', 'French Guiana', NULL, NULL), +(NULL, NULL, 79, 'PYF', 'French Polynesia', NULL, NULL), +(NULL, NULL, 80, 'ATF', 'French Southern Territories', NULL, NULL), +(NULL, NULL, 81, 'GAB', 'Gabon', NULL, NULL), +(NULL, NULL, 82, 'GMB', 'Gambia', NULL, NULL), +(NULL, NULL, 83, 'GEO', 'Georgia', NULL, NULL), +(NULL, NULL, 84, 'DEU', 'Germany', NULL, NULL), +(NULL, NULL, 85, 'GHA', 'Ghana', NULL, NULL), +(NULL, NULL, 86, 'GIB', 'Gibraltar', NULL, NULL), +(NULL, NULL, 87, 'GRC', 'Greece', NULL, NULL), +(NULL, NULL, 88, 'GRL', 'Greenland', NULL, NULL), +(NULL, NULL, 89, 'GRD', 'Grenada', NULL, NULL), +(NULL, NULL, 90, 'GLP', 'Guadeloupe', NULL, NULL), +(NULL, NULL, 91, 'GUM', 'Guam', NULL, NULL), +(NULL, NULL, 92, 'GTM', 'Guatemala', NULL, NULL), +(NULL, NULL, 93, 'GGY', 'Guernsey', NULL, NULL), +(NULL, NULL, 94, 'GIN', 'Guinea', NULL, NULL), +(NULL, NULL, 95, 'GNB', 'Guinea-Bissau', NULL, NULL), +(NULL, NULL, 96, 'GUY', 'Guyana', NULL, NULL), +(NULL, NULL, 97, 'HTI', 'Haiti', NULL, NULL), +(NULL, NULL, 98, 'HMD', 'Heard Island and McDonald Islands', NULL, NULL), +(NULL, NULL, 99, 'VAT', 'Holy See', NULL, NULL), +(NULL, NULL, 100, 'HND', 'Honduras', NULL, NULL), +(NULL, NULL, 101, 'HKG', 'Hong Kong', NULL, NULL), +(NULL, NULL, 102, 'HUN', 'Hungary', NULL, NULL), +(NULL, NULL, 103, 'ISL', 'Iceland', NULL, NULL), +(NULL, NULL, 104, 'IND', 'India', NULL, NULL), +(NULL, NULL, 105, 'IDN', 'Indonesia', NULL, NULL), +(NULL, NULL, 106, 'IRN', 'Iran, Islamic Republic of', NULL, NULL), +(NULL, NULL, 107, 'IRQ', 'Iraq', NULL, NULL), +(NULL, NULL, 108, 'IRL', 'Ireland', NULL, NULL), +(NULL, NULL, 109, 'IMN', 'Isle of Man', NULL, NULL), +(NULL, NULL, 110, 'ISR', 'Israel', NULL, NULL), +(NULL, NULL, 111, 'ITA', 'Italy', NULL, NULL), +(NULL, NULL, 112, 'JAM', 'Jamaica', NULL, NULL), +(NULL, NULL, 113, 'JPN', 'Japan', NULL, NULL), +(NULL, NULL, 114, 'JEY', 'Jersey', NULL, NULL), +(NULL, NULL, 115, 'JOR', 'Jordan', NULL, NULL), +(NULL, NULL, 116, 'KAZ', 'Kazakhstan', NULL, NULL), +(NULL, NULL, 117, 'KEN', 'Kenya', NULL, NULL), +(NULL, NULL, 118, 'KIR', 'Kiribati', NULL, NULL), +(NULL, NULL, 119, 'PRK', 'Korea, Democratic People\'s Republic of', NULL, NULL), +(NULL, NULL, 120, 'KOR', 'Korea, Republic of', NULL, NULL), +(NULL, NULL, 121, 'KWT', 'Kuwait', NULL, NULL), +(NULL, NULL, 122, 'KGZ', 'Kyrgyzstan', NULL, NULL), +(NULL, NULL, 123, 'LAO', 'Lao People\'s Democratic Republic', NULL, NULL), +(NULL, NULL, 124, 'LVA', 'Latvia', NULL, NULL), +(NULL, NULL, 125, 'LBN', 'Lebanon', NULL, NULL), +(NULL, NULL, 126, 'LSO', 'Lesotho', NULL, NULL), +(NULL, NULL, 127, 'LBR', 'Liberia', NULL, NULL), +(NULL, NULL, 128, 'LBY', 'Libya', NULL, NULL), +(NULL, NULL, 129, 'LIE', 'Liechtenstein', NULL, NULL), +(NULL, NULL, 130, 'LTU', 'Lithuania', NULL, NULL), +(NULL, NULL, 131, 'LUX', 'Luxembourg', NULL, NULL), +(NULL, NULL, 132, 'MAC', 'Macao', NULL, NULL), +(NULL, NULL, 133, 'MDG', 'Madagascar', NULL, NULL), +(NULL, NULL, 134, 'MWI', 'Malawi', NULL, NULL), +(NULL, NULL, 135, 'MYS', 'Malaysia', NULL, NULL), +(NULL, NULL, 136, 'MDV', 'Maldives', NULL, NULL), +(NULL, NULL, 137, 'MLI', 'Mali', NULL, NULL), +(NULL, NULL, 138, 'MLT', 'Malta', NULL, NULL), +(NULL, NULL, 139, 'MHL', 'Marshall Islands', NULL, NULL), +(NULL, NULL, 140, 'MTQ', 'Martinique', NULL, NULL), +(NULL, NULL, 141, 'MRT', 'Mauritania', NULL, NULL), +(NULL, NULL, 142, 'MUS', 'Mauritius', NULL, NULL), +(NULL, NULL, 143, 'MYT', 'Mayotte', NULL, NULL), +(NULL, NULL, 144, 'MEX', 'Mexico', NULL, NULL), +(NULL, NULL, 145, 'FSM', 'Micronesia, Federated States of', NULL, NULL), +(NULL, NULL, 146, 'MDA', 'Moldova, Republic of', NULL, NULL), +(NULL, NULL, 147, 'MCO', 'Monaco', NULL, NULL), +(NULL, NULL, 148, 'MNG', 'Mongolia', NULL, NULL), +(NULL, NULL, 149, 'MNE', 'Montenegro', NULL, NULL), +(NULL, NULL, 150, 'MSR', 'Montserrat', NULL, NULL), +(NULL, NULL, 151, 'MAR', 'Morocco', NULL, NULL), +(NULL, NULL, 152, 'MOZ', 'Mozambique', NULL, NULL), +(NULL, NULL, 153, 'MMR', 'Myanmar', NULL, NULL), +(NULL, NULL, 154, 'NAM', 'Namibia', NULL, NULL), +(NULL, NULL, 155, 'NRU', 'Nauru', NULL, NULL), +(NULL, NULL, 156, 'NPL', 'Nepal', NULL, NULL), +(NULL, NULL, 157, 'NLD', 'Netherlands, Kingdom of the', NULL, NULL), +(NULL, NULL, 158, 'NCL', 'New Caledonia', NULL, NULL), +(NULL, NULL, 159, 'NZL', 'New Zealand', NULL, NULL), +(NULL, NULL, 160, 'NIC', 'Nicaragua', NULL, NULL), +(NULL, NULL, 161, 'NER', 'Niger', NULL, NULL), +(NULL, NULL, 162, 'NGA', 'Nigeria', NULL, NULL), +(NULL, NULL, 163, 'NIU', 'Niue', NULL, NULL), +(NULL, NULL, 164, 'NFK', 'Norfolk Island', NULL, NULL), +(NULL, NULL, 165, 'MKD', 'North Macedonia', NULL, NULL), +(NULL, NULL, 166, 'MNP', 'Northern Mariana Islands', NULL, NULL), +(NULL, NULL, 167, 'NOR', 'Norway', NULL, NULL), +(NULL, NULL, 168, 'OMN', 'Oman', NULL, NULL), +(NULL, NULL, 169, 'PAK', 'Pakistan', NULL, NULL), +(NULL, NULL, 170, 'PLW', 'Palau', NULL, NULL), +(NULL, NULL, 171, 'PSE', 'Palestine, State of[c]', NULL, NULL), +(NULL, NULL, 172, 'PAN', 'Panama', NULL, NULL), +(NULL, NULL, 173, 'PNG', 'Papua New Guinea', NULL, NULL), +(NULL, NULL, 174, 'PRY', 'Paraguay', NULL, NULL), +(NULL, NULL, 175, 'PER', 'Peru', NULL, NULL), +(NULL, NULL, 176, 'PHL', 'Philippines', NULL, NULL), +(NULL, NULL, 177, 'PCN', 'Pitcairn', NULL, NULL), +(NULL, NULL, 178, 'POL', 'Poland', NULL, NULL), +(NULL, NULL, 179, 'PRT', 'Portugal', NULL, NULL), +(NULL, NULL, 180, 'PRI', 'Puerto Rico', NULL, NULL), +(NULL, NULL, 181, 'QAT', 'Qatar', NULL, NULL), +(NULL, NULL, 182, 'REU', 'Réunion', NULL, NULL), +(NULL, NULL, 183, 'ROU', 'Romania', NULL, NULL), +(NULL, NULL, 184, 'RUS', 'Russian Federation', NULL, NULL), +(NULL, NULL, 185, 'RWA', 'Rwanda', NULL, NULL), +(NULL, NULL, 186, 'BLM', 'Saint Barthélemy', NULL, NULL), +(NULL, NULL, 187, 'SHN', 'Saint Helena, Ascension and Tristan da Cunha[e]', NULL, NULL), +(NULL, NULL, 188, 'KNA', 'Saint Kitts and Nevis', NULL, NULL), +(NULL, NULL, 189, 'LCA', 'Saint Lucia', NULL, NULL), +(NULL, NULL, 190, 'MAF', 'Saint Martin (French part)', NULL, NULL), +(NULL, NULL, 191, 'SPM', 'Saint Pierre and Miquelon', NULL, NULL), +(NULL, NULL, 192, 'VCT', 'Saint Vincent and the Grenadines', NULL, NULL), +(NULL, NULL, 193, 'WSM', 'Samoa', NULL, NULL), +(NULL, NULL, 194, 'SMR', 'San Marino', NULL, NULL), +(NULL, NULL, 195, 'STP', 'Sao Tome and Principe', NULL, NULL), +(NULL, NULL, 196, 'SAU', 'Saudi Arabia', NULL, NULL), +(NULL, NULL, 197, 'SEN', 'Senegal', NULL, NULL), +(NULL, NULL, 198, 'SRB', 'Serbia', NULL, NULL), +(NULL, NULL, 199, 'SYC', 'Seychelles', NULL, NULL), +(NULL, NULL, 200, 'SLE', 'Sierra Leone', NULL, NULL), +(NULL, NULL, 201, 'SGP', 'Singapore', NULL, NULL), +(NULL, NULL, 202, 'SXM', 'Sint Maarten (Dutch part)', NULL, NULL), +(NULL, NULL, 203, 'SVK', 'Slovakia', NULL, NULL), +(NULL, NULL, 204, 'SVN', 'Slovenia', NULL, NULL), +(NULL, NULL, 205, 'SLB', 'Solomon Islands', NULL, NULL), +(NULL, NULL, 206, 'SOM', 'Somalia', NULL, NULL), +(NULL, NULL, 207, 'ZAF', 'South Africa', NULL, NULL), +(NULL, NULL, 208, 'SGS', 'South Georgia and the South Sandwich Islands', NULL, NULL), +(NULL, NULL, 209, 'SSD', 'South Sudan', NULL, NULL), +(NULL, NULL, 210, 'ESP', 'Spain', NULL, NULL), +(NULL, NULL, 211, 'LKA', 'Sri Lanka', NULL, NULL), +(NULL, NULL, 212, 'SDN', 'Sudan', NULL, NULL), +(NULL, NULL, 213, 'SUR', 'Suriname', NULL, NULL), +(NULL, NULL, 214, 'SJM', 'Svalbard and Jan Mayen[f]', NULL, NULL), +(NULL, NULL, 215, 'SWE', 'Sweden', NULL, NULL), +(NULL, NULL, 216, 'CHE', 'Switzerland', NULL, NULL), +(NULL, NULL, 217, 'SYR', 'Syrian Arab Republic', NULL, NULL), +(NULL, NULL, 218, 'TWN', 'Taiwan, Province of China[c]', NULL, NULL), +(NULL, NULL, 219, 'TJK', 'Tajikistan', NULL, NULL), +(NULL, NULL, 220, 'TZA', 'Tanzania, United Republic of', NULL, NULL), +(NULL, NULL, 221, 'THA', 'Thailand', NULL, NULL), +(NULL, NULL, 222, 'TLS', 'Timor-Leste', NULL, NULL), +(NULL, NULL, 223, 'TGO', 'Togo', NULL, NULL), +(NULL, NULL, 224, 'TKL', 'Tokelau', NULL, NULL), +(NULL, NULL, 225, 'TON', 'Tonga', NULL, NULL), +(NULL, NULL, 226, 'TTO', 'Trinidad and Tobago', NULL, NULL), +(NULL, NULL, 227, 'TUN', 'Tunisia', NULL, NULL), +(NULL, NULL, 228, 'TUR', 'Türkiye', NULL, NULL), +(NULL, NULL, 229, 'TKM', 'Turkmenistan', NULL, NULL), +(NULL, NULL, 230, 'TCA', 'Turks and Caicos Islands', NULL, NULL), +(NULL, NULL, 231, 'TUV', 'Tuvalu', NULL, NULL), +(NULL, NULL, 232, 'UGA', 'Uganda', NULL, NULL), +(NULL, NULL, 233, 'UKR', 'Ukraine', NULL, NULL), +(NULL, NULL, 234, 'ARE', 'United Arab Emirates', NULL, NULL), +(NULL, NULL, 235, 'GBR', 'United Kingdom of Great Britain and Northern Ireland', NULL, NULL), +(NULL, NULL, 236, 'USA', 'United States of America', NULL, NULL), +(NULL, NULL, 237, 'UMI', 'United States Minor Outlying Islands[g]', NULL, NULL), +(NULL, NULL, 238, 'URY', 'Uruguay', NULL, NULL), +(NULL, NULL, 239, 'UZB', 'Uzbekistan', NULL, NULL), +(NULL, NULL, 240, 'VUT', 'Vanuatu', NULL, NULL), +(NULL, NULL, 241, 'VEN', 'Venezuela, Bolivarian Republic of', NULL, NULL), +(NULL, NULL, 242, 'VNM', 'Viet Nam', NULL, NULL), +(NULL, NULL, 243, 'VGB', 'Virgin Islands (British)', NULL, NULL), +(NULL, NULL, 244, 'VIR', 'Virgin Islands (U.S.)', NULL, NULL), +(NULL, NULL, 245, 'WLF', 'Wallis and Futuna', NULL, NULL), +(NULL, NULL, 246, 'ESH', 'Western Sahara[c]', NULL, NULL), +(NULL, NULL, 247, 'YEM', 'Yemen', NULL, NULL), +(NULL, NULL, 248, 'ZMB', 'Zambia', NULL, NULL), +(NULL, NULL, 249, 'ZWE', 'Zimbabwe', NULL, NULL); + +DROP TABLE IF EXISTS `ethnic`; +CREATE TABLE `ethnic` ( + `SiteID` int(11) DEFAULT NULL, + `CodingSysID` int(11) DEFAULT NULL, + `EthnicID` int(11) NOT NULL AUTO_INCREMENT, + `Ethnic` varchar(255) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + PRIMARY KEY (`EthnicID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +INSERT INTO `ethnic` (`SiteID`, `CodingSysID`, `EthnicID`, `Ethnic`, `CreateDate`, `EndDate`) VALUES +(NULL, NULL, 1, 'Papua Melanezoid', NULL, NULL), +(NULL, NULL, 2, 'Negroid', NULL, NULL), +(NULL, NULL, 3, 'Weddoid', NULL, NULL), +(NULL, NULL, 4, 'Melayu Mongoloid_Proto Melayu', NULL, NULL), +(NULL, NULL, 5, 'Melayu Mongoloid_Deutro Melayu', NULL, NULL), +(NULL, NULL, 6, 'Tionghoa', NULL, NULL), +(NULL, NULL, 7, 'India', NULL, NULL), +(NULL, NULL, 8, 'Arab', NULL, NULL); + +DROP TABLE IF EXISTS `patatt`; +CREATE TABLE `patatt` ( + `PatAttID` int(11) NOT NULL AUTO_INCREMENT, + `InternalPID` int(11) DEFAULT NULL, + `Address` varchar(255) DEFAULT NULL, + `UserID` int(11) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `DelDate` datetime DEFAULT NULL, + PRIMARY KEY (`PatAttID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patcom`; +CREATE TABLE `patcom` ( + `PatComID` int(11) NOT NULL AUTO_INCREMENT, + `InternalPID` int(11) DEFAULT NULL, + `Comment` text DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + PRIMARY KEY (`PatComID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patdiag`; +CREATE TABLE `patdiag` ( + `PatDiagID` int(11) NOT NULL AUTO_INCREMENT, + `InternalPVID` int(11) DEFAULT NULL, + `InternalPID` int(11) DEFAULT NULL, + `DiagCode` varchar(255) DEFAULT NULL, + `Comment` text DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + `ArchivedDate` datetime DEFAULT NULL, + `DelDate` datetime DEFAULT NULL, + PRIMARY KEY (`PatDiagID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patidt`; +CREATE TABLE `patidt` ( + `PatIdtID` int(11) NOT NULL AUTO_INCREMENT, + `InternalPID` int(11) DEFAULT NULL, + `IdentifierType` varchar(255) DEFAULT NULL, + `Identifier` varchar(255) DEFAULT NULL, + `EffectiveDate` datetime DEFAULT NULL, + `ExpirationDate` datetime DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `DelDate` datetime DEFAULT NULL, + PRIMARY KEY (`PatIdtID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patient`; +CREATE TABLE `patient` ( + `InternalPID` int(11) NOT NULL AUTO_INCREMENT, + `PatientID` varchar(255) NOT NULL, + `AlternatePID` varchar(255) DEFAULT NULL, + `Prefix` varchar(255) DEFAULT NULL, + `NameFirst` varchar(255) DEFAULT NULL, + `NameMiddle` varchar(255) DEFAULT NULL, + `NameMaiden` varchar(255) DEFAULT NULL, + `NameLast` varchar(255) DEFAULT NULL, + `Suffix` varchar(255) DEFAULT NULL, + `NameAlias` varchar(255) DEFAULT NULL, + `Gender` int(11) DEFAULT NULL, + `PlaceOfBirth` varchar(255) DEFAULT NULL, + `BirthDate` datetime DEFAULT NULL, + `Street_1` varchar(255) DEFAULT NULL, + `Street_2` varchar(255) DEFAULT NULL, + `Street_3` varchar(255) DEFAULT NULL, + `City` varchar(255) DEFAULT NULL, + `Province` varchar(255) DEFAULT NULL, + `ZIP` varchar(255) DEFAULT NULL, + `CountryID` int(11) DEFAULT NULL, + `Emailaddress1` varchar(255) DEFAULT NULL, + `Emailaddress2` varchar(255) DEFAULT NULL, + `Phone` varchar(255) DEFAULT NULL, + `Mobilephone` varchar(255) DEFAULT NULL, + `Mother` int(11) DEFAULT NULL, + `AccountNumber` int(11) DEFAULT NULL, + `RaceID` int(11) DEFAULT NULL, + `MaritalStatus` varchar(1) DEFAULT NULL, + `ReligionID` int(11) DEFAULT NULL, + `EthnicID` int(11) DEFAULT NULL, + `Citizenship` varchar(255) DEFAULT NULL, + `DeathIndicator` bit(1) DEFAULT NULL, + `DeathDateTime` datetime DEFAULT NULL, + `LinkTo` varchar(255) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `DelDate` datetime DEFAULT NULL, + PRIMARY KEY (`InternalPID`), + UNIQUE KEY `PatientID` (`PatientID`), + UNIQUE KEY `AlternatePID` (`AlternatePID`), + UNIQUE KEY `Emailaddress1` (`Emailaddress1`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patreglog`; +CREATE TABLE `patreglog` ( + `PatRegLogID` int(11) NOT NULL AUTO_INCREMENT, + `TblName` varchar(255) DEFAULT NULL, + `RecID` int(11) DEFAULT NULL, + `FldName` varchar(255) DEFAULT NULL, + `FldValuePrev` varchar(255) DEFAULT NULL, + `UserID` int(11) DEFAULT NULL, + `SiteID` int(11) DEFAULT NULL, + `DIDType` varchar(255) DEFAULT NULL, + `DID` varchar(255) DEFAULT NULL, + `MachineID` varchar(255) DEFAULT NULL, + `SessionID` varchar(255) DEFAULT NULL, + `AppID` varchar(255) DEFAULT NULL, + `ProcessID` varchar(255) DEFAULT NULL, + `WebPageID` varchar(255) DEFAULT NULL, + `EventID` varchar(255) DEFAULT NULL, + `ActivityID` varchar(255) DEFAULT NULL, + `Reason` varchar(255) DEFAULT NULL, + `LogDate` datetime DEFAULT NULL, + PRIMARY KEY (`PatRegLogID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patrelation`; +CREATE TABLE `patrelation` ( + `PatRelID` int(11) NOT NULL AUTO_INCREMENT, + `InternalPID` int(11) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + PRIMARY KEY (`PatRelID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patvisit`; +CREATE TABLE `patvisit` ( + `SiteID` int(11) DEFAULT NULL, + `InternalPVID` int(11) NOT NULL AUTO_INCREMENT, + `PVID` varchar(255) DEFAULT NULL, + `InternalPID` int(11) DEFAULT NULL, + `Episode` varchar(255) DEFAULT NULL, + `VisitClass` varchar(255) DEFAULT NULL, + `BillAcc` varchar(255) DEFAULT NULL, + `BillStatus` int(11) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + `ArchivedDate` datetime DEFAULT NULL, + `DelDate` datetime DEFAULT NULL, + PRIMARY KEY (`InternalPVID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patvisitadt`; +CREATE TABLE `patvisitadt` ( + `PVADTID` int(11) NOT NULL AUTO_INCREMENT, + `InternalPVID` int(11) DEFAULT NULL, + `Code` varchar(255) DEFAULT NULL, + `LocationID` int(11) DEFAULT NULL, + `AttDoc` int(11) DEFAULT NULL, + `ReffDoc` int(11) DEFAULT NULL, + `AdmDoc` int(11) DEFAULT NULL, + `CnsDoc` int(11) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + `ArchivedDate` datetime DEFAULT NULL, + `DelDate` datetime DEFAULT NULL, + PRIMARY KEY (`PVADTID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `patvisitlog`; +CREATE TABLE `patvisitlog` ( + `PatVisLogID` int(11) NOT NULL AUTO_INCREMENT, + `TblName` varchar(255) DEFAULT NULL, + `RecID` int(11) DEFAULT NULL, + `FldName` varchar(255) DEFAULT NULL, + `FldValuePrev` varchar(255) DEFAULT NULL, + `UserID` int(11) DEFAULT NULL, + `SiteID` int(11) DEFAULT NULL, + `DIDType` varchar(255) DEFAULT NULL, + `DID` varchar(255) DEFAULT NULL, + `MachineID` varchar(255) DEFAULT NULL, + `SessionID` varchar(255) DEFAULT NULL, + `AppID` varchar(255) DEFAULT NULL, + `ProcessID` varchar(255) DEFAULT NULL, + `WebPageID` varchar(255) DEFAULT NULL, + `EventID` varchar(255) DEFAULT NULL, + `ActivityID` varchar(255) DEFAULT NULL, + `Reason` varchar(255) DEFAULT NULL, + `LogDate` datetime DEFAULT NULL, + PRIMARY KEY (`PatVisLogID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + + +DROP TABLE IF EXISTS `race`; +CREATE TABLE `race` ( + `SiteID` int(11) DEFAULT NULL, + `CodingSysID` int(11) DEFAULT NULL, + `RaceID` int(11) NOT NULL AUTO_INCREMENT, + `Race` varchar(255) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + PRIMARY KEY (`RaceID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +INSERT INTO `race` (`SiteID`, `CodingSysID`, `RaceID`, `Race`, `CreateDate`, `EndDate`) VALUES +(NULL, NULL, 1, 'Jawa', NULL, NULL), +(NULL, NULL, 2, 'Sunda', NULL, NULL), +(NULL, NULL, 3, 'Batak', NULL, NULL), +(NULL, NULL, 4, 'Suku asal Sulawesi lainnya', NULL, NULL), +(NULL, NULL, 5, 'Madura', NULL, NULL), +(NULL, NULL, 6, 'Betawi', NULL, NULL), +(NULL, NULL, 7, 'Minangkabau', NULL, NULL), +(NULL, NULL, 8, 'Bugis', NULL, NULL), +(NULL, NULL, 9, 'Melayu', NULL, NULL), +(NULL, NULL, 10, 'Suku asal Sumatera Selatan', NULL, NULL), +(NULL, NULL, 11, 'Suku asal Banten', NULL, NULL), +(NULL, NULL, 12, 'Suku asal Nusa Tenggara Timur', NULL, NULL), +(NULL, NULL, 13, 'Banjar', NULL, NULL), +(NULL, NULL, 14, 'Aceh', NULL, NULL), +(NULL, NULL, 15, 'Bali', NULL, NULL), +(NULL, NULL, 16, 'Sasak', NULL, NULL), +(NULL, NULL, 17, 'Dayak', NULL, NULL), +(NULL, NULL, 18, 'Tionghoa', NULL, NULL), +(NULL, NULL, 19, 'Suku asal Papua', NULL, NULL), +(NULL, NULL, 20, 'Makassar', NULL, NULL), +(NULL, NULL, 21, 'Suku asal Sumatera lainnya', NULL, NULL), +(NULL, NULL, 22, 'Suku asal Maluku', NULL, NULL), +(NULL, NULL, 23, 'Suku asal Kalimantan lainnya', NULL, NULL), +(NULL, NULL, 24, 'Cirebon', NULL, NULL), +(NULL, NULL, 25, 'Suku asal Jambi', NULL, NULL), +(NULL, NULL, 26, 'Suku Lampung', NULL, NULL), +(NULL, NULL, 27, 'Suku asal Nusa Tenggara Barat lainnya', NULL, NULL), +(NULL, NULL, 28, 'Gorontalo', NULL, NULL), +(NULL, NULL, 29, 'Minahasa', NULL, NULL), +(NULL, NULL, 30, 'Nias', NULL, NULL), +(NULL, NULL, 31, 'Asing/luar negeri', NULL, NULL); + +DROP TABLE IF EXISTS `religion`; +CREATE TABLE `religion` ( + `SiteID` int(11) DEFAULT NULL, + `CodingSysID` int(11) DEFAULT NULL, + `ReligionID` int(11) NOT NULL AUTO_INCREMENT, + `Religion` varchar(255) DEFAULT NULL, + `CreateDate` datetime DEFAULT NULL, + `EndDate` datetime DEFAULT NULL, + PRIMARY KEY (`ReligionID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +INSERT INTO `religion` (`SiteID`, `CodingSysID`, `ReligionID`, `Religion`, `CreateDate`, `EndDate`) VALUES +(NULL, NULL, 1, 'Islam', NULL, NULL), +(NULL, NULL, 2, 'Kristen', NULL, NULL), +(NULL, NULL, 3, 'Katolik', NULL, NULL), +(NULL, NULL, 4, 'Hindu', NULL, NULL), +(NULL, NULL, 5, 'Budha', NULL, NULL), +(NULL, NULL, 6, 'Khong Hu Cu', NULL, NULL), +(NULL, NULL, 7, 'Lainnya', NULL, NULL); + +-- 2025-07-31 22:24:07 UTC