Skip to content

Conversation

@julianxcarter
Copy link
Contributor

Summary

Adds two new utility functions, getAdverseEventsFromContext and getAdverseEventEntriesFromContext.

New behavior

  1. New additions to contextUtils make it possible to fetch AdverseEvent resources in the context bundle.
  2. The FHIRAdverseEventExtractor will now only throw an error if a study is not included in its contructorArgs. Previously, an error would be thrown whenever there were no ResearchStudy resources found in context, even though it's not exactly necessary if a study is included.

Code changes

  1. Two utility functions added to contextUtils.js.
  2. Any errors thrown by getResearchStudiesFromContext are now logged as debug messages in FHIRAdverseEventExtractor.js, which a custom error being thrown by that Extractor if the study contructorArg isn't included either.

Testing guidance

Testing guidance will be included in the corresponding E-MEF PR.

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.

Tested on the E-MEF, works as expected!

@dmendelowitz dmendelowitz merged commit 339cdf5 into develop Mar 2, 2022
@dmendelowitz dmendelowitz deleted the adverse-event-context branch March 2, 2022 20:36
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.

3 participants