Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Cohorts #125

Open
rcdilorenzo opened this issue Dec 3, 2020 · 1 comment
Open

Add support for Cohorts #125

rcdilorenzo opened this issue Dec 3, 2020 · 1 comment
Labels
phc.easy Related to the phc.easy modules

Comments

@rcdilorenzo
Copy link
Contributor

Examples:

phc.Patient.get_data_frame(cohort_name="MyCohort")
phc.Cohort.get_patient_ids(name="MyCohort")

(Note: Cohorts can be static or dynamic.)

@rcdilorenzo rcdilorenzo added the phc.easy Related to the phc.easy modules label Dec 3, 2020
@rcdilorenzo
Copy link
Contributor Author

Because we'll need to handle dynamic cohorts, we should also build a module that can perform the subject search:

phc.Patient.search({
     'domain': 'filter',
     'target': 'patient',
     'where': {'patient': {'and': [{'observations': {'code': [{'operator': 'eq',
           'target': '85339-0',
           'value': 'negative'}]}},
       {'observations': {'code': [{'operator': 'eq',
           'target': '49683-6',
           'value': 'negative'}]}},
       {'observations': {'code': [{'operator': 'eq',
           'target': '85337-4',
           'value': 'negative'}]}}]}}
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
phc.easy Related to the phc.easy modules
Projects
None yet
Development

No branches or pull requests

1 participant