-
Notifications
You must be signed in to change notification settings - Fork 59
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 syphilis history field to bulk uploader #7809
Conversation
@@ -176,7 +181,7 @@ public class CsvValidatorUtils { | |||
"n", "no", | |||
"u", UNKNOWN_CODE); | |||
private static final Set<String> TEST_RESULT_VALUES = | |||
Set.of("positive", "negative", "not detected", "detected", "invalid result"); | |||
Set.of(POSITIVE_LITERAL, "negative", "not detected", DETECTED_LITERAL, "invalid result"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this change but I realized we need to update the view for the device code lookup because we put "Undetermined" as the test result in the device code lookup tool but we don't support that in the bulk upload and accept "Not detected" instead.
See:
[TEST_RESULTS.UNDETERMINED]: "419984006", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find on this! Yeah I think this is definitely worth creating a new ticket to update the device code lookup, especially given the recent issues with unmapped SNOMED code descriptions in the bulk uploader. Plus noticing that what we have listed as "Positive" is actually the SNOMED code for "Detected" whereas "Positive" SNOMED is 10828004. Seems like we're moving in the direction where it's important that certain tests distinguish the particular test result codes they use, so might be something else that needs updating too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! Will make a ticket for this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ticket created here: #7826 Feel free to add/edit anything as you see fit!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Left one unrelated comment -- I can create a ticket for that if you think it's something to address! :) Nice work on this Mike!
backend/src/main/java/gov/cdc/usds/simplereport/validators/CsvValidatorUtils.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/gov/cdc/usds/simplereport/validators/CsvValidatorUtils.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm on dev5! left some questions
Refactored that validator so now there's a common method used for validating both HIV and Syphilis AOE fields when a test result is positive |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! love the way you separated out the field specification from the validation logic: think this will make future extensions much easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
* Add syphilis history field to bulk uploader * Use string literals * Refactor using list of fields
BACKEND PULL REQUEST
Related Issue
Changes Proposed
syphilis_history
column to the bulk results uploaderAdditional Information
Testing
76272004
and a model name ofsyphilis device model