Skip to content

Conversation

@dmendelowitz
Copy link
Contributor

Summary

Adds an optional version field for the event coding and a required text field for the event of the CSVCTCAdverseEventExtractor

New behavior

The CSV template for the CSVCTCAdverseEventExtractor now has a new required field of adverseEventText and a new optional field adverseEventCodeVersion

Code changes

  • CTCAdverseEventTemplate.js modified to add the new fields
  • CSVCTCAdverseEventExtractor.js modified to have the new fields in the CSV template and check for new required field
  • All example CSVs and CSV_Templates.xlsx changed to have new fields
  • Relevant tests and test fixtures now test for the new fields

Testing guidance

@dmendelowitz
Copy link
Contributor Author

Turns out event.text is not required, so disregard anything said above about it being required


const MINIMAL_DATA = {
// Only include 'id', 'subjectId', 'code', 'system', 'grade', and 'effectiveDateTime' fields which are required
// Only include 'id', 'subjectId', 'code', 'system', 'text', 'grade', and 'effectiveDateTime' fields which are required
Copy link
Contributor

Choose a reason for hiding this comment

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

Super tiny, I think we can remove text from this comment right here now that it's no longer required.

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.

Looks great and works well! Just two minor suggestions.


const INVALID_DATA = {
// Omitting 'subjectId', 'code', 'system', and 'effectiveDateTime' fields which are required
// Omitting 'subjectId', 'code', 'system', 'text', and 'effectiveDateTime' fields which are required
Copy link
Contributor

Choose a reason for hiding this comment

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

Here as well.

@julianxcarter julianxcarter merged commit 183a7ad into develop Dec 6, 2021
@julianxcarter julianxcarter deleted the ctcae-event branch December 6, 2021 19:06
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