Skip to content

Commit

Permalink
add dob_year and edit antimalarial (#189)
Browse files Browse the repository at this point in the history
Add dob_year, antimalarial.
Move experimental_agent to metadata & treatment_other.

---------

Co-authored-by: Pip Liggins <philippa.liggins@dtc.ox.ac.uk>
  • Loading branch information
ekamau and pipliggins authored Nov 8, 2023
1 parent e161759 commit 219a7d2
Show file tree
Hide file tree
Showing 19 changed files with 300 additions and 323 deletions.
5 changes: 3 additions & 2 deletions docs/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ General drug types
~~~~~~~~~~~~~~~~~~

The general drug categories *antiviral*, *antibiotic*, *corticosteroid*,
*experimental_agent*, *antimalarial* and *delirium* all have a set of three
*antimalarial* and *delirium* all have a set of three
hierarchical attributes, e.g. for antivirals:

+ **treatment_antiviral**: Bool. If antivirals have been administered during the visit
Expand Down Expand Up @@ -677,7 +677,8 @@ delirium?
monoclonal antibodies?

**treatment_other**: Set. Any other treatments, or treatments recorded
as free text fields, should be recorded here.
as free text fields, should be recorded here. Can include drugs described
as 'experimental agents'; trial drugs will be recorded in study metadata.

**treatment_pacing**: Bool. Did the subject receive heart pacing during
the visit?
Expand Down
6 changes: 1 addition & 5 deletions isaric/parsers/ccp-cameroon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,6 @@
{ field = "q16_treatment", description = "16) Inotropes - vasopressors / Inotropes -vasopresseurrs?", ref = "Y/N" },
]

[visit.treatment_experimental_agent]
field = "q15_medication"
description = "15) ELIXIR COVID and or ADSK COVID (Medication of Mgr Kleda) / ELIXIR COVID et ou ADSAK COVID (Médicaments de MGR KLEDA) "
ref = "Y/N"

[visit.treatment_dialysis]
field = "q15_treatment"
description = "15) Renal replacement therapy (RRT) or dialysis / Thérapie de substitution rénale (TRS) ou dialyse ?"
Expand Down Expand Up @@ -442,6 +437,7 @@
{ field = "q10_health_care" },
]


[visit.outcome] # Q: Should we distinguish between not admitted (discharged before treatment) and discharged?
# Q1_outcome and q1_treatment_outcome are present on different rows, so using "set" to get both (and therefore have 'discharged' vs ['hospitalised', 'discharged']) won't work.
combinedType = "firstNonNull"
Expand Down
63 changes: 31 additions & 32 deletions isaric/parsers/ccp-ghana.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
name = "ccp-ghana"
description = "COVID-19 CCP Patient Data - ALERRT Ghana"
defaultDateFormat = "%d/%m/%Y"
experimental_agents = [
'Chloroquine',
'Hydroxychloroquine',
'Remdesivir',
'IL6/IL1 inhibitors',
'Convalescent plasma',
'Tocilizumab',
]

[adtl.tables]

Expand Down Expand Up @@ -598,6 +606,7 @@

[visit.treatment_antibiotics_type]
combinedType = "set"
excludeWhen = "none"
description = "Antibiotic given - free text field"
fields = [{ field = "sup_antibiotic_agent" }]

Expand All @@ -607,9 +616,21 @@
ref = "Y/N/NK"

[visit.treatment_antimalarial]
field = "daily_antimal_cmyn"
description = "Antimalarial agent?"
ref = "Y/N/NK"
combinedType = "any"
excludeWhen = "none"
fields = [
{ field = "daily_antimal_cmyn", description = "Antimalarial agent?", ref = "Y/N/NK" },
{ field = "daily_exper_cmtype___1", values = { 1 = true } },
{ field = "daily_exper_cmtype___2", values = { 1 = true } },
]

[visit.treatment_antimalarial_type]
combinedType = "set"
excludeWhen = "none"
fields = [
{ field = "daily_exper_cmtype___1", values = { 1 = "Chloroquine" } },
{ field = "daily_exper_cmtype___2", values = { 1 = "Hydroxychloroquine" } },
]

[visit.treatment_antivirals]
combinedType = "any"
Expand All @@ -634,6 +655,7 @@

[visit.treatment_antiviral_type_other]
combinedType = "set"
excludeWhen = "none"
description = "Antiviral agent = other - free text field"
fields = [{ field = "daily_antiviral_cmoth" }]

Expand Down Expand Up @@ -688,32 +710,6 @@
{ field = "ecls", ref = "Y/N/NK" },
]


[visit.treatment_experimental_agent]
field = "daily_exper_cmyn"
description = "Experimental agent?"
ref = "Y/N/NK"

[visit.treatment_experimental_agent_type]
description = "Experimental agent - if 'Other' experimental agent, specify"
combinedType = "set"
excludeWhen = "none"
fields = [
{ field = "daily_exper_cmtype___1", values = { 1 = "Chloroquine" } },
{ field = "daily_exper_cmtype___2", values = { 1 = "Hydroxychloroquine" } },
{ field = "daily_exper_cmtype___3", values = { 1 = "Remdesivir" } },
{ field = "daily_exper_cmtype___4", values = { 1 = "IL6 inhibitor" } },
{ field = "daily_exper_cmtype___5", values = { 1 = "IL1 inhibitor" } },
{ field = "daily_exper_cmtype___6", values = { 1 = "Convalescent plasma" } },
{ field = "daily_exper_cmtype___7", values = { 1 = "Other" } },
{ field = "disx251s", values = { 3 = "Tocilizumab" } },
]

[visit.treatment_experimental_agent_type_other]
combinedType = "set"
description = "Experimental agent = other - free text field"
fields = [{ field = "daily_exper_cmoth" }]

[visit.treatment_high_flow_nasal_cannula]
combinedType = "any"
excludeWhen = "none"
Expand All @@ -736,7 +732,6 @@
{ field = "vaso_or_inot", description = "Any vasopressor/inotropic support?", ref = "Y/N/NK" },
]


[visit.treatment_intravenous_fluids]
field = "daily_iv_fluids_cmyn"
description = "Intravenous fluids?"
Expand Down Expand Up @@ -785,8 +780,12 @@
{ field = "other_meds", description = "Other Medication" },
{ field = "other_meds_3", description = "Other Medication" },
{ field = "other_meds_2", description = "Other Medication" },
# { field = "premeds_other_meds1", description = "Other Medications (1)" }, - preadmission medications
# { field = "premeds_other_meds2", description = "Other Medications (2)" },
{ field = "daily_exper_cmtype___3", values = { 1 = "Remdesivir" } },
{ field = "daily_exper_cmtype___4", values = { 1 = "IL6 inhibitor" } },
{ field = "daily_exper_cmtype___5", values = { 1 = "IL1 inhibitor" } },
{ field = "daily_exper_cmtype___6", values = { 1 = "Convalescent plasma" } },
{ field = "disx251s", values = { 3 = "Tocilizumab" } },
{ field = "daily_exper_cmoth" },
]

[visit.treatment_oxygen_therapy]
Expand Down
53 changes: 28 additions & 25 deletions isaric/parsers/ccp-guinea.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
name = "ccp-guinea"
description = "ccp-guinea"
defaultDateFormat = "%d/%m/%Y"
experimental_agents = [
'Chloroquine',
'Hydroxychloroquine',
'Remdesivir',
'IL6/IL1 inhibitors',
'Convalescent plasma',
]

[adtl.tables.subject]
kind = "groupBy"
Expand Down Expand Up @@ -521,6 +528,7 @@

[visit.treatment_antibiotics_type]
combinedType = "set"
excludeWhen = "none"
description = "Antibiotic given - free text field"
fields = [{ field = "daily_antibiot_cmyn_name" }]

Expand All @@ -540,9 +548,21 @@
values = { 1 = true, 0 = false }

[visit.treatment_antimalarial]
field = "daily_antimal_cmyn"
description = "Antimalarials?"
values = { 1 = true, 0 = false }
combinedType = "any"
excludeWhen = "none"
fields = [
{ field = "daily_antimal_cmyn", description = "Antimalarials?", values = { 1 = true, 0 = false } },
{ field = "daily_exper_cmtype___1", values = { 1 = true } },
{ field = "daily_exper_cmtype___2", values = { 1 = true } },
]

[visit.treatment_antimalarial_type]
combinedType = "set"
excludeWhen = "none"
fields = [
{ field = "daily_exper_cmtype___1", values = { 1 = "Chloroquine" } },
{ field = "daily_exper_cmtype___2", values = { 1 = "Hydroxychloroquine" } },
]

[visit.treatment_antiviral_type]
description = "Type of antiviral agent used"
Expand Down Expand Up @@ -608,28 +628,6 @@
{ field = "vaso_or_inot", description = "Any administration of vasopressor/inotrope?", ref = "Y/N" },
]

[visit.treatment_experimental_agent]
field = "daily_exper_cmyn"
values = { 1 = true, 0 = false }

[visit.treatment_experimental_agent_type]
combinedType = "set"
excludeWhen = "none"
fields = [
{ field = "daily_exper_cmtype___1", values = { 1 = "Chloroquine" } },
{ field = "daily_exper_cmtype___2", values = { 1 = "Hydroxychloroquine" } },
{ field = "daily_exper_cmtype___3", values = { 1 = "Remdesivir" } },
{ field = "daily_exper_cmtype___4", values = { 1 = "IL6 inhibitor" } },
{ field = "daily_exper_cmtype___5", values = { 1 = "IL1 inhibitor" } },
{ field = "daily_exper_cmtype___6", values = { 1 = "Convalescent plasma" } },
{ field = "daily_exper_cmtype___7", values = { 1 = "Other" } },
]

[visit.treatment_experimental_agent_type_other]
combinedType = "set"
description = "Experimental agent = other - free text field"
fields = [{ field = "daily_exper_cmoth" }]

[visit.treatment_inotropes_vasopressors]
field = "vaso_or_inot"
description = "Any administration of vasopressor/inotrope?"
Expand All @@ -650,6 +648,11 @@
{ field = "other_meds_1", description = "Other treatment" },
{ field = "other_meds_2", description = "Other treatment" },
{ field = "other_intervs_specify" },
{ field = "daily_exper_cmtype___3", values = { 1 = "Remdesivir" } },
{ field = "daily_exper_cmtype___4", values = { 1 = "IL6 inhibitor" } },
{ field = "daily_exper_cmtype___5", values = { 1 = "IL1 inhibitor" } },
{ field = "daily_exper_cmtype___6", values = { 1 = "Convalescent plasma" } },
{ field = "daily_exper_cmoth" },
]

[visit.treatment_oxygen_therapy]
Expand Down
17 changes: 10 additions & 7 deletions isaric/parsers/ccp-senegal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name = "ccp-senegal"
description = "CCP Senegal"
defaultDateFormat = "%d/%m/%Y"
experimental_agents = ['Hydroxychloroquine']

[adtl.tables.subject]
kind = "groupBy"
Expand Down Expand Up @@ -340,13 +341,21 @@

[visit.treatment_antimalarial]
combinedType = "any"
excludeWhen = "none"

[[visit.treatment_antimalarial.fields]]
fieldPattern = "tmt_pdthosp_nom.*"

[visit.treatment_antimalarial.fields.values]
HYDROXYCHLOROQUINE = true

[visit.treatment_antimalarial_type]
combinedType = "set"
excludeWhen = "none"
fields = [
{ fieldPattern = "tmt_pdthosp_nom.*", values = { HYDROXYCHLOROQUINE = "Hydroxychloroquine" } },
]

[visit.treatment_antibiotics]
combinedType = "any"

Expand All @@ -370,6 +379,7 @@

[visit.treatment_antibiotics_type]
combinedType = "set"
excludeWhen = "none"

[[visit.treatment_antibiotics_type.fields]]
fieldPattern = "tmt_pdthosp_nom.*"
Expand All @@ -389,13 +399,6 @@
TINIDAZOLE = "Tinidazole"
"TOBREX COLLYRE" = "Tobramycin"

[visit.treatment_experimental_agent_type]
combinedType = "set"
excludeWhen = "none"
fields = [
{ fieldPattern = "tmt_pdthosp_nom.*", values = { HYDROXYCHLOROQUINE = "Hydroxychloroquine" } },
]

[visit.treatment_antifungal_agent]
combinedType = "any"

Expand Down
5 changes: 0 additions & 5 deletions isaric/parsers/cocoa_pediatrics.toml
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,6 @@
description = "Renal replacement therapy (RRT) or dialysis?"
ref = "Y/N/NK"

[visit.treatment_experimental_agent]
field = "exprmntl_cmyn_v2"
description = "Experimental agent?"
ref = "Y/N/NK"

[visit.treatment_inotropes_vasopressors]
field = "inotrop_prtrt_v3"
description = "Inotropes / vasopressors?"
Expand Down
7 changes: 4 additions & 3 deletions isaric/parsers/idor-brazil.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[adtl]
name = "idor-brazil"
description = "CVTDWXD COVID-19 patient data IDOR_Brazil September2020"
experimental_agents = ["testing"]

[adtl.tables.subject]
kind = "groupBy"
Expand Down Expand Up @@ -489,7 +490,7 @@
],
[
"Beclometasona",
"Beclometasone",
"Beclomethasone",
],
[
"Cortisonal",
Expand All @@ -505,11 +506,11 @@
],
[
"Symbicort",
"Budenoside",
"Budesonide",
],
[
"Pulmicort",
"Budenoside",
"Budesonide",
],
]

Expand Down
13 changes: 12 additions & 1 deletion isaric/parsers/isaric-ccpuk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@

[visit.visit_id]
field = "subjid"
sensitive = true

[visit.start_date]
combinedType = "firstNonNull"
Expand Down Expand Up @@ -442,6 +443,17 @@
field = "antifung_cmyn"
ref = "Y/N/NK"

[visit.treatment_antimalarial]
field = "antiviral_cmtrt___7"
values = { 1 = true }

[visit.treatment_antimalarial_type]
combinedType = "set"
excludeWhen = "none"
fields = [
{ field = "antiviral_cmtrt___7", values = { 1 = "Chloroquine/Hydroxychloroquine" } },
]

[visit.treatment_antivirals]
description = "Antiviral agent?"
field = "antiviral_cmyn"
Expand All @@ -457,7 +469,6 @@
{ field = "antiviral_cmtrt___3", values = { 1 = "Interferon alpha" } },
{ field = "antiviral_cmtrt___4", values = { 1 = "Interferon beta" } },
{ field = "antiviral_cmtrt___5", values = { 1 = "Neuraminidase inhibitor" } },
{ field = "antiviral_cmtrt___7", values = { 1 = "Chloroquine/Hydroxychloroquine" } },
{ field = "antiviral_cmtrt___8", values = { 1 = "Remdesivir" } },
{ field = "antiviral_cmtrt___9", values = { 1 = "IL6 inhibitor" } },
{ field = "antiviral_cmtrt___10", values = { 1 = "Oseltamivir (Tamiflu)" } },
Expand Down
Loading

0 comments on commit 219a7d2

Please sign in to comment.