Newly-created patients should never use the two week default for recent entry that was in place before marks.
Create an empty mark so new patients that have never been marked will show data back to enrollment.
[ ] In rule_populate_default_data.py, enhance _populate_default_data to insert a mark.
Instead of:
# Default population is currently None.
# Rule left in place for future use.
Something like:
# Populate an empty mark, with an undefined effective date.
# This will make all data "new" since patient enrollment.
scope.database.patient.review_marks.post_review_mark(
...
)
The inserted mark will not have an effectiveDateTime
The inserted mark will not have a providerId.
Be mindful that the editedDateTime is correct. It should be the time of the execution of this code, and then it should also be formatted / localized the same as times that have come from the client.
[ ] This will require the schema no longer defines providerId as required.
[ ] This will require the client no longer defines providerId as required, and may require type fixes related to that.
Newly-created patients should never use the two week default for recent entry that was in place before marks.
Create an empty mark so new patients that have never been marked will show data back to enrollment.
[ ] In
rule_populate_default_data.py
, enhance_populate_default_data
to insert a mark.Instead of:
Something like:
effectiveDateTime
providerId
.editedDateTime
is correct. It should be the time of the execution of this code, and then it should also be formatted / localized the same as times that have come from the client.[ ] This will require the schema no longer defines
providerId
as required.[ ] This will require the client no longer defines
providerId
as required, and may require type fixes related to that.