-
Notifications
You must be signed in to change notification settings - Fork 2
Null is empty csv #119
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
Null is empty csv #119
Conversation
…rableColumns works as expected
|
@Dtphelan1 just noticed this is going into |
julianxcarter
left a comment
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.
Looks good to me!
|
Thanks for that change! Not to continue being a backseat reviewer (I just am noticing these things while making release notes), but did we want to make a note of what we are doing in the README? I know we talked about it, but maybe we decided against this since we evaluated which columns should be manipulated. |
|
I went in and changed a patients given name to "nil" to make sure it didn't get wiped but their name ended up being output as "null" which seems very weird. 1. the name isn't supposed to be changed and 2. how did it go from nil to null? |
|
|
@dmendelowitz should have taken care of 2. Going to look into 1) now... |
|
I don't seem to be able to replicate 1). Could you send me some screen grabs showing me what you were seeing exactly? |
|
When the name was "Jane" in the csv it properly output "Jane Doe" |
|
It looks like your most recent commit fixed the "nil" -> "null" thing |
|
Ohhhh the |
|
@jafeltra Yeah, when givenName is blank, I get "null Doe" also, so I guess that's an issue with the patient template not @Dtphelan1's new code |
dmendelowitz
left a comment
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.
I all my issues have been resolved
|
I know I already approved but this thought just came to my mind. Since I just learned that the patient IDs csv is parsed without the CSVModule, is there any chance that that CSV will have a nil or null that needs to be interpreted as empty? (I hope not) |
|
|
The README update makes sense to me! |
Summary
Adds behavior to the CSVModule to support normalization of NULL/NIL values into empty-string values. Additionally, CSVExtractors can now specify unalterableColumns in order to leave certain types of data immune from this normalization.
New behavior
value.toLowerCase() === 'null' || value.toLowerCase() === 'nil'with empty string''.Code changes
unalterableColumnsas a constructor argument and stores that value in local state.Testing guidance
patient-information.csvand see if the dataAbsentReason appears in the output bundle)