Format dates to ISO8601 in ingestion #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds arguments to
convert_data_to_flat
function for the current date format and timezone.On ingestion dates/datetimes are converted to the ISO8601 standard.
FHIRflat natively has validation check that date format matches YYYY-MM-DD, but doesn't check for a timezone if a time is provided (https://github.com/nazrulworld/fhir.resources/blob/3f61a5e7963657ed354e2d02b938c62569583299/fhir/resources/fhirtypes.py#L518).
Chose not to put datetime options in google sheets mapping files to keep files streamlined.
Fixes #33, related to #32