approve and switch poly

This commit is contained in:
vanilia
2025-11-25 13:56:18 +07:00
81 changed files with 624 additions and 351 deletions

No files matched your search

@@ -1,6 +1,8 @@
package encounter
import plugin "simrs-vx/internal/use-case/simgos-sync-plugin/encounter"
import (
plugin "simrs-vx/internal/use-case/simgos-sync-plugin/new/encounter"
)
func init() {
createPreMw = append(createPreMw,
@@ -10,8 +12,14 @@ func init() {
createLogMw{Name: "create-sync-log", Func: plugin.CreateLog})
updatePreMw = append(updatePreMw,
updateMw{Name: "sync-update-patient", Func: plugin.Update})
updateMw{Name: "sync-update-encounter", Func: plugin.Update})
deletePreMw = append(deletePreMw,
deleteMw{Name: "sync-delete-patient", Func: plugin.Delete})
deleteMw{Name: "sync-delete-encounter", Func: plugin.Delete})
checkinEncounterMw = checkinMw{Name: "sync-checkin-encounter", Func: plugin.Checkin}
checkoutEncounter = checkoutMw{Name: "sync-checkout-encounter", Func: plugin.Checkout}
updatestatusEncounter = append(updatestatusEncounter,
updateStatusMw{Name: "sync-update-status-encounter", Func: plugin.Cancel})
}