Our analysts have requested that a true enrollment date be added for every entity in CyHy to improve the quality of data reporting.
Implementation notes
For new entities, the enrollment date/time will be based on when the request document is first created. This will require modification of the cyhy-import script.
Once the enrollment date has been set, it should not be overwritten, even if a new request document is imported via cyhy-import --force. If the enrollment date must be changed, it will have to be changed via a manual database command.
For existing entities, create a script to backfill the enrollment date using the start_time timestamp in their first snapshot, if one exists. This script will only need to be run once.
Acceptance criteria
[x] cyhy-import has been modified to add the enrollment date to the request document for new entities.
[x] cyhy-import will NOT overwrite the enrollment date, even if run with the --force flag.
[x] A script has been run which added an enrollment date to the request document of every existing entity with at least one snapshot in the database.
[x] The data dictionary has been updated to include the new enrollment date field.
💡 Summary
Add an enrollment date for every CyHy entity.
Motivation and context
Our analysts have requested that a true enrollment date be added for every entity in CyHy to improve the quality of data reporting.
Implementation notes
cyhy-import --force
. If the enrollment date must be changed, it will have to be changed via a manual database command.start_time
timestamp in their first snapshot, if one exists. This script will only need to be run once.Acceptance criteria
cyhy-import
has been modified to add the enrollment date to the request document for new entities.cyhy-import
will NOT overwrite the enrollment date, even if run with the--force
flag.