Skip to content

Commit

Permalink
Disable the migration needed to update patient extensions, as it'll u…
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugni authored Feb 16, 2024
1 parent ceab3f8 commit f32e9d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions isacc_messaging/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ def send_system_emails(category, dry_run, include_test_patients):
@click.option("--dry-run", is_flag=True, default=False, help="Simulate execution; don't persist to FHIR store")
def update_patient_extensions(dry_run):
"""Iterate through active patients, update any stale/missing extensions"""
# this was a 1 and done migration method. disable for now
raise click.ClickException(
"DISABLED: unsafe to run as this will now undo any user marked "
"read messages via "
"https://github.com/uwcirg/isacc-messaging-client-sof/pull/85")
from isacc_messaging.models.fhir import next_in_bundle
from isacc_messaging.models.isacc_patient import IsaccPatient as Patient
active_patients = Patient.active_patients()
Expand Down

0 comments on commit f32e9d0

Please sign in to comment.