lengkap belum account

This commit is contained in:
2025-05-15 13:45:45 +07:00
parent 1fb1caaf19
commit fd30463082
28 changed files with 1571 additions and 639 deletions
+24 -2
View File
@@ -4,6 +4,8 @@ import (
MasterHandler "api-poliklinik/pkg/handlers/Master"
patientHandler "api-poliklinik/pkg/handlers/MongoHandler/Patient"
patientRelatedHandler "api-poliklinik/pkg/handlers/MongoHandler/PatientRelated"
"api-poliklinik/pkg/handlers/MongoHandler/encounter"
EpisodeHandler "api-poliklinik/pkg/handlers/MongoHandler/episodeofcare"
personHandler "api-poliklinik/pkg/handlers/MongoHandler/person"
practitionerHandler "api-poliklinik/pkg/handlers/MongoHandler/practitioner"
datarelatedpersonHandler "api-poliklinik/pkg/handlers/MongoHandler/relatedperson"
@@ -15,6 +17,8 @@ import (
MigrasiAddress "api-poliklinik/pkg/handlers/migrasi/address"
MigrasiExtension "api-poliklinik/pkg/handlers/migrasi/extension"
MigrasiLocation "api-poliklinik/pkg/handlers/migrasi/location"
MigrasiIcd "api-poliklinik/pkg/handlers/migrasi/medis"
MigarasiDokter "api-poliklinik/pkg/handlers/migrasi/practitioner"
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"net/http"
@@ -51,6 +55,9 @@ func (s *Server) RegisterRoutes() http.Handler {
migrasi.POST("/migrate/agama", MigrasiExtension.Migrasiagama)
migrasi.POST("/migrate/suku", MigrasiExtension.Migrasisuku)
migrasi.POST("/migrate/location", MigrasiLocation.Migrasilokasi)
migrasi.POST("/migrate/icd", MigrasiIcd.Migrasiicd)
migrasi.POST("/migrate/smf", MigrasiIcd.Migrasismf)
migrasi.POST("/migrate/dokter", MigarasiDokter.Migratepractitioner)
}
Poliklinik := v1.Group("/poliklinik")
@@ -99,6 +106,7 @@ func (s *Server) RegisterRoutes() http.Handler {
Practitionermongo := v1.Group("/practitioner")
{
Practitionermongo.GET("/getdatapractitioner", practitionerHandler.GetDataPractitioner)
Practitionermongo.GET("/getdata/display/:display/value/:value", practitionerHandler.Getdatadokter)
//Practitionermongo.POST("/insertpractitioner", personHandler.InsertPerson)
//Practitionermongo.POST("/deletepractitioner", personHandler.DeletePersonHand)
}
@@ -117,11 +125,21 @@ func (s *Server) RegisterRoutes() http.Handler {
//Location.POST("/deletelocation", personHandler.DeletePersonHand)
}
Encounter := v1.Group("/encounter")
{
Encounter.GET("/getdataencounter", encounter.Getencounter)
Encounter.POST("/insertencounter", encounter.InsertEncounter)
}
Appointment := v1.Group("/appointment")
{
Appointment.GET("/getdataappointment", AppointmentHandler.Getappointment)
//Location.POST("/insertlocation", personHandler.Inse rtPerson)
//Location.POST("/deletelocation", personHandler.DeletePersonHand)
Appointment.POST("/insertappointment", AppointmentHandler.Insertappointment)
}
Episodeofcare := v1.Group("/episodeofcare")
{
Episodeofcare.GET("/getdataepisodeofcare", EpisodeHandler.Getepisode)
Episodeofcare.POST("/insertepisodeofcare", EpisodeHandler.InsertEpisode)
}
Master := v1.Group("/master")
@@ -134,6 +152,10 @@ func (s *Server) RegisterRoutes() http.Handler {
Master.GET("/kelurahan/search", MasterHandler.SearchKelurahan)
Master.GET("/address/kelurahan/id/:id", MasterHandler.GetHierarchyByKelurahan)
Master.GET("/hierarchy/provinsi/:id", MasterHandler.GetHierarchyFromProvinsi)
Master.GET("/getdatasmf", MasterHandler.GetSMF)
Master.GET("/getdataicd", MasterHandler.GetICD)
}
Extension := v1.Group("/extension")
{