This file processes raw data from the HKC database into dataframes
for export as csv files.
#Load data frames from MYSQL This puts the data from
patients,consultations,level_2_treatments,level_3_treatmetns and sites
into data frams for transformation and analysis.
Get postCOVID dates
Looking for the 1st treatment after 2022-09-01 when schools
re-opened
Table_3
| patient_id |
| date_post |
| gender |
| date_birth |
| age_date_post |
| infection |
| posterior |
| anterior |
| site |
| province |
##Common records sample 1 and sample 2
Table_5
| patient_id |
| site |
| province |
| gender |
| date_birth |
| date_pre |
| age_date_pre |
| infection_pre |
| posterior_pre |
| anterior_pre |
| date_post |
| age_date_post |
| infection_post |
| posterior_post |
| anterior_post |
#Charts and Tables - Table 1 These stats are from the table_1 set. AA
children in the database with whom there has has been at least one
screening.
## [1] "patient_id" "school_id"
## [3] "date_birth" "gender"
## [5] "student_registration_date" "site"
## [7] "organisation" "province"
## [9] "school_registration_date" "first_contact_date"
## [11] "age_first_date"
## Proportion of males to females
##
## F M
## 49.99771 50.00229
## Mean = 9 std dev = 3
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.000 7.000 9.000 9.004 11.000 25.000
## site count
## 1 All Kids 246
## 2 Ang Chum Primary School 470
## 3 Ang Punereay Primary School 413
## 4 Angmuntrey Primary School 238
## 5 Angrun Primary School TK 444
## 6 Angserey primary school KS 936
## 7 Angsiema Primary School 605
## 8 Angsleng Primary School 295
## 9 Ark Piswat Meanchey 316
## 10 Baknim 195
## 11 Borei School 159
## 12 CCC Kampong Speu 565
## 13 CCC PC Prey Chum Primary School 466
## 14 CCCPP Champov 482
## 15 Cambodia Childrens Fund 2402
## 16 Chaktomuk primary school 1559
## 17 Green Gecko 100
## 18 Haggov Primary School 853
## 19 Hun Neang Boeng Travel Khan Thong School 1211
## 20 Hun Neang Tuol Tom Pong 2 School 954
## 21 Hun Sen Monorom Primary School 95
## 22 Kampuchea Associaton for Development 646
## 23 Kirirom Coc0nut School 58
## 24 Kraing Srey 8
## 25 Krang Chek Primary School 647
## 26 Krang Snai 633
## 27 Krousar Thmey - Battambang 161
## 28 Krousar Thmey - Champov 112
## 29 Krousar Thmey - Kampong Cham 258
## 30 Krousar Thmey - Siem Reap 230
## 31 Krousar Thmey Phnom Penh 391
## 32 Krousar Thmey Poipet 97
## 33 MLop Tapang 939
## 34 Monirangsey primary school 301
## 35 Near Reay 388
## 36 Nikroat Thereaum 252
## 37 Ong Punreay 412
## 38 Orphan Care 51
## 39 PIO School 2264
## 40 Ptea Clara Center 91
## 41 Rabbit School 199
## 42 Santepheap Primary School 511
## 43 School of Life 26
## 44 Ta Ten Primary School 120
Schools
| All Kids |
Kampong Saom |
| Ang Chum Primary School |
Kampot |
| Ang Punereay Primary School |
Takeo |
| Angmuntrey Primary School |
Takeo |
| Angrun Primary School TK |
Takeo |
| Angserey primary school KS |
Kampong Speu |
| Angsiema Primary School |
Takeo |
| Angsleng Primary School |
Takeo |
| Ark Piswat Meanchey |
Phnom Penh |
| Baknim |
Kampot |
| Borei School |
Phnom Penh |
| CCC Kampong Speu |
Kampong Speu |
| CCC PC Prey Chum Primary School |
Kampong Speu |
| CCCPP Champov |
Phnom Penh |
| Cambodia Childrens Fund |
Phnom Penh |
| Chaktomuk primary school |
Phnom Penh |
| Green Gecko |
Siem Reap |
| Haggov Primary School |
Phnom Penh |
| Hun Neang Boeng Travel Khan Thong School |
Phnom Penh |
| Hun Neang Tuol Tom Pong 2 School |
Phnom Penh |
| Hun Sen Monorom Primary School |
Mondulkiri |
| Kampuchea Associaton for Development |
Kampong Speu |
| Kirirom Coc0nut School |
Kampong Spue |
| Kraing Srey |
Kampot |
| Krang Chek Primary School |
Kampong Speu |
| Krang Snai |
Kampot |
| Krousar Thmey - Battambang |
Battambang |
| Krousar Thmey - Champov |
Phnom Penh |
| Krousar Thmey - Kampong Cham |
Kampong Cham |
| Krousar Thmey - Siem Reap |
Siem Reap |
| Krousar Thmey Phnom Penh |
Phnom Penh |
| Krousar Thmey Poipet |
Banteay Meanchey |
| MLop Tapang |
Sihanoukville |
| Monirangsey primary school |
Kampot |
| Near Reay |
Kampot |
| Nikroat Thereaum |
Takeo |
| Ong Punreay |
Takeo |
| Orphan Care |
Kampong Spue |
| PIO School |
Phnom Penh |
| Ptea Clara Center |
Kandal |
| Rabbit School |
Phnom Penh |
| Santepheap Primary School |
Kampong Speu |
| School of Life |
Kandal |
| Ta Ten Primary School |
Kampot |
## [1] "patient_id" "date_pre" "gender" "date_birth" "age_date_pre"
## [6] "infection" "posterior" "anterior" "site" "province"
## Proportion of males to females
##
## F M
## 49.99771 50.00229
## Warning in mean.default(df_table_1$age_date_pre): argument is not numeric or
## logical: returning NA
## Mean = NA std dev = NA
## Length Class Mode
## 0 NULL NULL
## site count
## 1 Angsleng Primary School 122
## 2 Ark Piswat Meanchey 44
## 3 CCC Kampong Speu 323
## 4 CCC PC Prey Chum Primary School 309
## 5 CCCPP Champov 135
## 6 Cambodia Childrens Fund 1280
## 7 Chaktomuk primary school 16
## 8 Green Gecko 100
## 9 Haggov Primary School 187
## 10 Hun Neang Boeng Travel Khan Thong School 52
## 11 Hun Neang Tuol Tom Pong 2 School 212
## 12 Krang Chek Primary School 285
## 13 Krousar Thmey - Battambang 39
## 14 Krousar Thmey - Kampong Cham 126
## 15 Krousar Thmey - Siem Reap 75
## 16 Krousar Thmey Phnom Penh 160
## 17 Monirangsey primary school 108
## 18 Ong Punreay 412
## 19 PIO School 1044
Baseline schools
| Angsleng Primary School |
Takeo |
| Ark Piswat Meanchey |
Phnom Penh |
| CCC Kampong Speu |
Kampong Speu |
| CCC PC Prey Chum Primary School |
Kampong Speu |
| CCCPP Champov |
Phnom Penh |
| Cambodia Childrens Fund |
Phnom Penh |
| Chaktomuk primary school |
Phnom Penh |
| Green Gecko |
Siem Reap |
| Haggov Primary School |
Phnom Penh |
| Hun Neang Boeng Travel Khan Thong School |
Phnom Penh |
| Hun Neang Tuol Tom Pong 2 School |
Phnom Penh |
| Krang Chek Primary School |
Kampong Speu |
| Krousar Thmey - Battambang |
Battambang |
| Krousar Thmey - Kampong Cham |
Kampong Cham |
| Krousar Thmey - Siem Reap |
Siem Reap |
| Krousar Thmey Phnom Penh |
Phnom Penh |
| Monirangsey primary school |
Kampot |
| Ong Punreay |
Takeo |
| PIO School |
Phnom Penh |
Table_2 STatistics
| 10.11772 |
3.052521 |
2643 |
52.55518 |
NA |
| 10.11772 |
3.052521 |
2386 |
NA |
47.44482 |
#Follow up group treat post COVID From among those seen in the
baseline window, Schools that had a contact between 2022 and June 2023
extended to include Sep - Dec 2022.
Baseline schools
| patient_id |
| date_post |
| gender |
| date_birth |
| age_date_post |
| infection |
| posterior |
| anterior |
| site |
| province |
Table_2 STatistics
| Angsleng Primary School |
Takeo |
| Ark Piswat Meanchey |
Phnom Penh |
| CCC Kampong Speu |
Kampong Speu |
| CCC PC Prey Chum Primary School |
Kampong Speu |
| CCCPP Champov |
Phnom Penh |
| Cambodia Childrens Fund |
Phnom Penh |
| Chaktomuk primary school |
Phnom Penh |
| Green Gecko |
Siem Reap |
| Haggov Primary School |
Phnom Penh |
| Hun Neang Boeng Travel Khan Thong School |
Phnom Penh |
| Hun Neang Tuol Tom Pong 2 School |
Phnom Penh |
| Krang Chek Primary School |
Kampong Speu |
| Krousar Thmey - Battambang |
Battambang |
| Krousar Thmey - Kampong Cham |
Kampong Cham |
| Krousar Thmey - Siem Reap |
Siem Reap |
| Krousar Thmey Phnom Penh |
Phnom Penh |
| Monirangsey primary school |
Kampot |
| Ong Punreay |
Takeo |
| PIO School |
Phnom Penh |
| 8.918537 |
3.157444 |
1960 |
47.80488 |
NA |
| 8.918537 |
3.157444 |
2140 |
NA |
52.19512 |
eligible schools
| patient_id |
| site |
| province |
| gender |
| date_birth |
| date_pre |
| age_date_pre |
| infection_pre |
| posterior_pre |
| anterior_pre |
| date_post |
| age_date_post |
| infection_post |
| posterior_post |
| anterior_post |
Table_5 STatistics_pre
| PIO School |
Phnom Penh |
| Monirangsey primary school |
Kampot |
| Krousar Thmey - Battambang |
Battambang |
| Krousar Thmey - Kampong Cham |
Kampong Cham |
| Krousar Thmey Phnom Penh |
Phnom Penh |
| Haggov Primary School |
Phnom Penh |
| Chaktomuk primary school |
Phnom Penh |
Table_5 STatistics_post
| 8.966746 |
2.874988 |
193 |
45.84323 |
NA |
| 8.966746 |
2.874988 |
228 |
NA |
54.15677 |
| 8.966746 |
2.874988 |
193 |
45.84323 |
NA |
| 8.966746 |
2.874988 |
228 |
NA |
54.15677 |
##Statiscal Analysis Infection Test for differences between pre and
post COVID infection.
Table 5
| patient_id |
| site |
| province |
| gender |
| date_birth |
| date_pre |
| age_date_pre |
| infection_pre |
| posterior_pre |
| anterior_pre |
| date_post |
| age_date_post |
| infection_post |
| posterior_post |
| anterior_post |
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: contingency_table
## X-squared = 6.8084, df = 1, p-value = 0.009073
##Statistical posterior Testing for a significant increase in
posterior cavities
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: contingency_table
## X-squared = 2.9027, df = 1, p-value = 0.08843
##Statistical posterior Testing for a significant increase in
antterior cavities
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: contingency_table
## X-squared = 21.53, df = 1, p-value = 3.484e-06