Skip to content

Conversation

@jafeltra
Copy link
Contributor

@jafeltra jafeltra commented Apr 1, 2021

Summary

This PR uses context to find any ResearchStudy ids to be included in the FHIR Adverse Event search.

New behavior

The FHIRAdverseEventExtractor now looks in context for any ResearchStudy resources. If it finds research study resources, it includes the study ids from all research studies in the this.study list of studies to be used when searching for AdverseEvents. If no research study resources are found, the AdverseEvent extractor still proceeds trying to search for AdverseEvents, but does not add any studies beyond the ones that were set in the constructor.

It also adds a new context util function for ResearchStudy resources.

Code changes

This includes the new context util function and associated test. It also updates the (string) list of studies that is added in parametrizeArgsForFHIRModule in the FHIRAdverseEventExtractor. Searching for AdverseEvents using the study query parameter supports searching for multiple study ids in a comma separated list, like study=study1,study2.

Testing guidance

Ensure that the tests cover the expected behavior. The actual extractor can't really be tested in this repo.

@jafeltra jafeltra force-pushed the adverse-event-uses-study-context branch from fafd5c5 to 80eec9c Compare April 1, 2021 18:33
@dmendelowitz dmendelowitz self-assigned this Apr 5, 2021
Copy link
Contributor

@dmendelowitz dmendelowitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me and worked when tested from the E-MEF

@jafeltra jafeltra force-pushed the adverse-event-uses-study-context branch from 80eec9c to db5d986 Compare April 5, 2021 16:38
@julianxcarter julianxcarter self-assigned this Apr 5, 2021
Copy link
Contributor

@julianxcarter julianxcarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@julianxcarter julianxcarter merged commit 0fee38f into develop Apr 5, 2021
@julianxcarter julianxcarter deleted the adverse-event-uses-study-context branch April 5, 2021 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants