Bifrost uses the Django admin for inspecting and correcting local sync snapshots. Admin edits change local Bifrost state only; they do not write back to SyNCH CCMDD, EDRWeb, or Turn.
The synch app registers the local CCMDD snapshot models.
Patient rows are local snapshots of SyNCH CCMDD patients.
- Listed fields:
ccmdd_patient_id,date_created,date_updated. - Search fields:
ccmdd_patient_id. - Editable upstream snapshot fields:
ccmdd_patient_id,date_created, anddate_updated. - Internal messaging state fields
invite_sentandactive_messaging_phone_numberare task-owned and read-only in admin. payloadis read-only because it stores residual upstream CCMDD patient fields that were not promoted into explicit model columns.
Prescription rows are local snapshots of SyNCH CCMDD prescriptions. They
connect patients to prescription dates, phone numbers, department data, and
return dates used by appointment and messaging tasks.
- Listed fields:
ccmdd_prescription_id,patient_id,date_created,date_updated. - Search fields:
ccmdd_prescription_id,patient_id. payloadis read-only because it stores residual upstream CCMDD prescription fields that were not promoted into explicit model columns.return_datesis editable and must be a JSON list of objects.- Each
return_datesentry may contain onlyreturn_date,note,day_count, anddescription. - Each
return_datesentry must includereturn_dateasYYYY-MM-DD.
Facility rows are local snapshots of CCMDD service locations used when
Bifrost resolves appointment facility context for Turn messaging.
- Listed fields:
ccmdd_facility_id,name,telephone. - Search fields:
ccmdd_facility_id,name. payloadis read-only because it stores residual upstream CCMDD facility fields that were not promoted into explicit model columns.
The edrweb app registers EDRWebPatient so support staff can inspect and
correct local EDRWeb appointment reminder snapshots.
- Listed fields:
patient_id,phone_number,updated_at,is_active,messaging_contact_activated,active_messaging_phone_number,feed_removed_at. - Search fields:
patient_id,phone_number. - Editable fields:
patient_id,phone_number,updated_at,is_active, andappointments. payloadis read-only because it stores residual upstream EDRWeb fields that were not promoted into explicit model columns.feed_removed_atis read-only. Deactivating an EDRWeb patient sets it to the current Bifrost processing time; reactivating the patient clears it.phone_numberis stored normalized to E.164 on save.- Internal messaging state fields
messaging_contact_activatedandactive_messaging_phone_numberare task-owned and read-only in admin.messaging_contact_activatedrecords whether Turn has accepted theedrweb_new_user_timestampactivation trigger for the current active EDRWeb messaging phone number, andactive_messaging_phone_numberstores the normalized WhatsApp phone number for the Turn contact Bifrost last activated for this EDRWeb patient. updated_atcannot be set in the future because Bifrost uses the latest stored value as the next EDRWeb delta checkpoint.appointmentsmust be a JSON list of objects. Each appointment must includeAppointmentDateinYYYY-MM-DDformat and may includeFacilitywithFacilityName,Latitude, andLongitude.- The model field help text documents each field's source and messaging use so manual admin edits have local guidance.