feat (encounter): create and checkout + checking soapi done

This commit is contained in:
dpurbosakti
2025-09-09 13:41:06 +07:00
parent cc226b8034
commit e4358034d9
15 changed files with 225 additions and 71 deletions
@@ -125,10 +125,10 @@ func SetRoutes() http.Handler {
"POST /": encounter.O.Create,
"PATCH /{id}": encounter.O.Update,
"DELETE /{id}": encounter.O.Delete,
"PATCH /{id}/checkOut": encounter.O.CheckOut,
"PATCH /{id}/checkout": encounter.O.CheckOut,
})
hc.RegCrud(r, "/v1/soapi", soapi.O)
hc.RegCrud(r, "/v1/soapi", auth.GuardMW, soapi.O)
hc.RegCrud(r, "/v1/adime", adime.O)
hc.RegCrud(r, "/v1/sbar", sbar.O)
hc.RegCrud(r, "/v1/person", person.O)