CanDIG / clinical_ETL_code

A library to convert clinical data in csv format into json documents for CanDIG ingestion
GNU Lesser General Public License v3.0
0 stars 0 forks source link

DIG-1473: Accept date intervals (rather than absolute dates). #51

Closed DavidBrownlee closed 8 months ago

DavidBrownlee commented 8 months ago

Accept date intervals (+/- integers), given a specified date_resolution ("month" or "day"). Convert to JSON format to be stored in the DB.

Also corrects a bug in earliest_date() that arises if a non-indexed (non-list string) date field is defined in the manifest as the earliest_date.

mapping_functions.md updated accordingly.

mshadbolt commented 8 months ago

Do you have a test dataset and example configs for this? Was thinking we could add in the sample_inputs dir

DavidBrownlee commented 8 months ago

The validation step of the existent test cases is sufficient to test this new mapping function. donors.csv and test2moh.csv were updated to include test cases.

DavidBrownlee commented 8 months ago

Includes a minor correction to sample_inputs/moh_template.csv