forked from ExposuresProvider/icees-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
COVID-19_asthma_example
34 lines (14 loc) · 2.1 KB
/
COVID-19_asthma_example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
**Here’s an ICEES+ query to create cohort of all patients with asthma-like conditions in year 2016 (most recent year available, at least for now):**
curl -X POST "https://icees.renci.org:16339/patient/2016/cohort" -H "accept: application/json" -H "Content-Type: application/json" -d "{}"
-------------+--------+
| cohort_id | size |
+=============+========+
| COHORT:19 | 161348 |
**Here's an ICEES+ query that will return all asthma-related medications (and other features) associated with patients with asthma-like conditions in year 2016 (most recent year available):**
curl -X GET "https://icees.renci.org:16339/patient/2016/cohort/COHORT%3A19/features" -H "accept: text/tabular”
Medications (+ counts, percentages): Prednisone, Fluticasone, Mometasone, Budesonide, Beclomethasone, Ciclesonide, Flunisolide, Albuterol, Metaproterenol, Diphenhydramine, Fexofenadine, Cetirizine, Ipratropium, Salmeterol, Arformoterol, Formoterol, Indacaterol, Theophylline, Omalizumab, Mepolizumab
**Here's an ICEES+ query that will return a bivariate association between two feature variables:
curl -k -XPOST https://icees.renci.org:16339/patient/2016/cohort/COHORT:19/feature_association -H "Content-Type: application/json" -d '{"feature_a":{"TotalEDInpatientVisits":{"operator":"<", "value":2}},"feature_b":{"Sex2":{"operator":"=", "value":"Male"}}}'
**Here’s an ICEES+ example query that will return all asthma-related medications (and other features) that significantly differ (P < 0.1,) between patients with asthma-like conditions who do or do not have asthma exacerbations:**
curl -X POST "https://icees.renci.org:16339/patient/2016/cohort/COHORT%3A19/associations_to_all_features" -H "accept: text/tabular" -H "Content-Type: application/json" -d "{\"feature\":{\"TotalEDInpatientVisits\":{\"operator\":\"<\", \"value\":2}},\"maximum_p_value\":0.1}"
Medications (+ Chi Square statistics, P values, counts, percentages): Prednisone, Fluticasone, Mometasone, Budesonide, Ciclesonide, Flunisolide, Albuterol, Fexofenadine, Cetirizine, Ipratropium, Salmeterol, Arformoterol, Formoterol, Indacaterol, Theophylline, Mepolizumab