Skip to content

Commit

Permalink
Add missing works_lab fields (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
pipliggins authored Nov 1, 2023
1 parent 4bb77b6 commit 304fb0e
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 13 deletions.
4 changes: 2 additions & 2 deletions isaric/parsers/ccp-cameroon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@
description = "7) Employed as a health care worker / Employé en tant que travailleur de la santé ? "
ref = "Y/N"

[subject.works_microbiology_lab]
[subject.works_lab]
field = "q8_demographics"
description = "8) If health professional, specify / Si professionnel de santé"
description = "Laboratory professional"
values = { 1 = false, 2 = false, 3 = false, 4 = false, 5 = true, 6 = false, 7 = false }

[subject.has_asthma]
Expand Down
5 changes: 5 additions & 0 deletions isaric/parsers/ccp-drc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@
description = "Health worker?"
ref = "Y/N/NK"

[subject.works_lab]
field = "microb"
description = "Employee of a microbiology laboratory"
values = { 1 = true }

[subject.works_microbiology_lab]
field = "microb"
description = "Employee of a microbiology laboratory"
Expand Down
4 changes: 4 additions & 0 deletions isaric/parsers/ccp-ghana.toml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@
field = "dob"
apply = { function = "splitDate", params = ["day", 2022, "%d/%m/%Y"] }

[subject.works_lab]
field = "microb"
values = { 1 = true }

[subject.works_microbiology_lab]
field = "microb"
ref = "Y/N/NK"
Expand Down
5 changes: 5 additions & 0 deletions isaric/parsers/ccp-guinea.toml
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@
description = "Employed as a health worker?"
values = { 1 = true, 0 = false }

[subject.works_lab]
field = "microb"
description = "Employee of a microbiology laboratory"
values = { 1 = true }

[subject.works_microbiology_lab]
field = "microb"
description = "Employee of a microbiology laboratory"
Expand Down
3 changes: 3 additions & 0 deletions isaric/parsers/ccp-netherlands.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
{ field = "ethnic_group#Unknown", values = { "1.0" = "Unknown" } },
]

[subject.works_lab]
field = "microbiology_worker"
values = { 1 = true }

[subject.works_microbiology_lab]
field = "microbiology_worker"
Expand Down
6 changes: 6 additions & 0 deletions isaric/parsers/ccp-senegal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,14 @@
field = "healthwork_erterm"
ref = "Y/N/NK"

[subject.works_lab]
field = "labwork_erterm"
description = "employed in a biological analysis laboratory?"
values = { 1 = true }

[subject.works_microbiology_lab]
field = "labwork_erterm"
description = "employed in a biological analysis laboratory?"
ref = "Y/N/NK"

[subject.has_comorbidity_other]
Expand Down
4 changes: 2 additions & 2 deletions isaric/parsers/ccp-spain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
{ field = "raza", values = { 1 = "White", 2 = "Black", 3 = "Hispanic", 4 = "Asian", 5 = "Arab", 6 = "Other" } },
]

[subject.works_microbiology_lab]
[subject.works_lab]
field = "infhospi"
description = "Employed in a microbiology laboratory?"
description = "laboratory staff"
values = { 2 = true }

[subject.works_healthcare]
Expand Down
3 changes: 2 additions & 1 deletion isaric/parsers/ccp-uganda-v2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@
description = "Gender"
values = { 0 = "female", 1 = "male" }

[subject.works_microbiology_lab]
[subject.works_lab]
field = "occupation"
description = "Lab worker"
values = { 1 = false, 2 = false, 3 = false, 4 = false, 5 = false, 6 = true, 7 = false, 8 = false, 9 = false, 10 = false, 11 = false, 12 = false }

[subject.works_healthcare]
Expand Down
4 changes: 2 additions & 2 deletions isaric/parsers/datcov-southafrica.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
]
description = "Is the patient a healthcare worker?"

[subject.works_microbiology_lab]
[subject.works_lab]
field = "healthwork_type"
values = { 1 = false, 2 = false, 3 = false, 4 = true, 5 = false, 6 = false, 7 = false, 8 = false, 9 = false, 10 = false }
description = "Is the patient a healthcare worker?"
description = "laboratory worker"

[subject.pregnancy] # pregnancy fields not in the data?
field = "PregnancyStatus"
Expand Down
6 changes: 6 additions & 0 deletions isaric/parsers/idor-brazil.toml
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,14 @@
field = "healthwork_erterm"
ref = "Y/N/NK"

[subject.works_lab]
field = "labwork_erterm"
description = "employed in a microbiology lab?"
values = { 1 = true }

[subject.works_microbiology_lab]
field = "labwork_erterm"
description = "employed in a microbiology lab?"
ref = "Y/N/NK"

[subject.has_comorbidity_other]
Expand Down
5 changes: 5 additions & 0 deletions isaric/parsers/isaric-ccpuk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
{ field = "ethnic___10", values = { 1 = "Unknown" } },
]

[subject.works_lab]
field = "labwork_erterm"
values = { 1 = true }
description = "Employed in a microbiology laboratory?"

[subject.works_microbiology_lab]
field = "labwork_erterm"
ref = "Y/N/NK"
Expand Down
4 changes: 2 additions & 2 deletions isaric/parsers/isaric-rapid.toml
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@
{ field = "flw2_ethnicity_oth", description = "Other ethnicity" },
]

[subject.works_microbiology_lab]
[subject.works_lab]
field = "labwork_erterm"
ref = "Y/N/NK"
description = "Employed in a microbiology laboratory?"
description = "laboratory worker"

[subject.works_healthcare]
field = "healthwork_erterm"
Expand Down
2 changes: 1 addition & 1 deletion isaric/parsers/lmic.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
description = "Healthcare Worker?"
ref = "Y/N/NK"

[subject.works_microbiology_lab] # This doesn't specify microB lab, but the syntax is the same as other isaric studies
[subject.works_lab]
field = "labwork_erterm"
description = "Laboratory Worker?"
ref = "Y/N/NK"
Expand Down
5 changes: 5 additions & 0 deletions isaric/parsers/ncov-malaysia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@
description = "Employed as a Healthcare Worker?"
ref = "Y/N"

[subject.works_lab]
field = "lab_worker"
description = "Employed in a microbiology laboratory?"
values = { 1 = true }

[subject.works_microbiology_lab]
field = "lab_worker"
description = "Employed in a microbiology laboratory?"
Expand Down
5 changes: 5 additions & 0 deletions isaric/parsers/sprintsari-australia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
# 8 = "aged care worker"
# 9 = "disability worker"

[subject.works_lab]
field = "healthwork_erterm"
description = "Employed a a healthcare worker or any of following professions?"
values = { 1 = false, 2 = false, 3 = false, 4 = true, 5 = false, 7 = false, 8 = false, 9 = false, 10 = false, 11 = false }

[subject.works_microbiology_lab]
field = "healthwork_erterm"
description = "Employed a a healthcare worker or any of following professions?"
Expand Down
2 changes: 1 addition & 1 deletion isaric/parsers/uganda-vri-v1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
field = "sex"
values = { 1 = "male", 0 = "female" }

[subject.works_microbiology_lab]
[subject.works_lab]
field = "occupation"
values = { 1 = false, 2 = false, 3 = false, 4 = false, 5 = false, 6 = true, 7 = false, 8 = false, 9 = false, 10 = false, 11 = false, 12 = false }

Expand Down
3 changes: 1 addition & 2 deletions isaric/parsers/western-australia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,12 @@
"%d/%m/%Y",
] }


[subject.works_healthcare]
field = "healthwork_erterm"
description = "Healthcare Worker?"
ref = "Y/N/NK"

[subject.works_microbiology_lab]
[subject.works_lab]
field = "labwork_erterm"
description = "Laboratory worker?"
ref = "Y/N/NK"
Expand Down

0 comments on commit 304fb0e

Please sign in to comment.