pembaruhan baru
This commit is contained in:
+31
-16
@@ -2,17 +2,19 @@ package server
|
||||
|
||||
import (
|
||||
MasterHandler "api-poliklinik/pkg/handlers/Master"
|
||||
//MigrasiExtension "api-poliklinik/pkg/handlers/Migrasi/extension"
|
||||
patientHandler "api-poliklinik/pkg/handlers/MongoHandler/Patient"
|
||||
patientRelatedHandler "api-poliklinik/pkg/handlers/MongoHandler/PatientRelated"
|
||||
personHandler "api-poliklinik/pkg/handlers/MongoHandler/person"
|
||||
practitionerHandler "api-poliklinik/pkg/handlers/MongoHandler/practitioner"
|
||||
datarelatedpersonHandler "api-poliklinik/pkg/handlers/MongoHandler/relatedperson"
|
||||
datapoliklinikHandler "api-poliklinik/pkg/handlers/Poliklinik"
|
||||
datapractitionerHandler "api-poliklinik/pkg/handlers/Practitioner"
|
||||
dataAlamatHandler "api-poliklinik/pkg/handlers/address"
|
||||
AppointmentHandler "api-poliklinik/pkg/handlers/appointment"
|
||||
LocationHandler "api-poliklinik/pkg/handlers/location"
|
||||
MigrasiHandler "api-poliklinik/pkg/handlers/migrasi"
|
||||
MigrasiAddress "api-poliklinik/pkg/handlers/migrasi/address"
|
||||
MigrasiExtension "api-poliklinik/pkg/handlers/migrasi/extension"
|
||||
MigrasiLocation "api-poliklinik/pkg/handlers/migrasi/location"
|
||||
"github.com/gin-contrib/cors"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
@@ -35,14 +37,20 @@ func (s *Server) RegisterRoutes() http.Handler {
|
||||
|
||||
migrasi := v1.Group("/migrasi")
|
||||
{
|
||||
migrasi.POST("/migrate/practitioners", MigrasiHandler.MigratePractitionerToFHIR)
|
||||
//migrasi.POST("/migrate/practitioners", MigrasiPractitioner.MigratePractitionerToFHIR)
|
||||
migrasi.POST("/migrate/pasien", MigrasiHandler.MigratePasienToFHIR)
|
||||
migrasi.POST("/migrate/provinsi", MigrasiAddress.Migrasiprovinsi)
|
||||
migrasi.POST("/migrate/kota", MigrasiAddress.Migrasikota)
|
||||
migrasi.POST("/migrate/kecamatan", MigrasiAddress.Migrasikecamatan)
|
||||
migrasi.POST("/migrate/kelurahan", MigrasiAddress.Migrasikelurahan)
|
||||
//migrasi.POST("/migrate/bahasa", MigrasiExtension.Migrasibahasa)
|
||||
|
||||
migrasi.POST("/migrate/bahasa", MigrasiExtension.Migrasibahasa)
|
||||
migrasi.POST("/migrate/disabilitas", MigrasiExtension.Migrasidisbilitas)
|
||||
migrasi.POST("/migrate/pendidikan", MigrasiExtension.Migrasipendidikan)
|
||||
migrasi.POST("/migrate/pekerjaan", MigrasiExtension.Migrasipekerjaan)
|
||||
migrasi.POST("/migrate/pernikahan", MigrasiExtension.Migrasipernikahan)
|
||||
migrasi.POST("/migrate/agama", MigrasiExtension.Migrasiagama)
|
||||
migrasi.POST("/migrate/suku", MigrasiExtension.Migrasisuku)
|
||||
migrasi.POST("/migrate/location", MigrasiLocation.Migrasilokasi)
|
||||
}
|
||||
|
||||
Poliklinik := v1.Group("/poliklinik")
|
||||
@@ -50,12 +58,6 @@ func (s *Server) RegisterRoutes() http.Handler {
|
||||
Poliklinik.GET("/getdata/statuspelayanan/:statuspelayanan", datapoliklinikHandler.GetDataPoliklinik)
|
||||
}
|
||||
|
||||
Practitioner := v1.Group("/practitionersatu")
|
||||
{
|
||||
Practitioner.GET("/getdata", datapractitionerHandler.GetDataPractitioner)
|
||||
Practitioner.GET("/getdatapasien", datapractitionerHandler.GetDataMPasien)
|
||||
|
||||
}
|
||||
Alamat := v1.Group("/Alamat")
|
||||
{
|
||||
Alamat.GET("/getdata", dataAlamatHandler.GetDataAlamat)
|
||||
@@ -110,7 +112,14 @@ func (s *Server) RegisterRoutes() http.Handler {
|
||||
|
||||
Location := v1.Group("/location")
|
||||
{
|
||||
Location.GET("/getdatalocation", personHandler.GetDataPerson)
|
||||
Location.GET("/getdatalocation", LocationHandler.Getlocation)
|
||||
//Location.POST("/insertlocation", personHandler.Inse rtPerson)
|
||||
//Location.POST("/deletelocation", personHandler.DeletePersonHand)
|
||||
}
|
||||
|
||||
Appointment := v1.Group("/appointment")
|
||||
{
|
||||
Appointment.GET("/getdataappointment", AppointmentHandler.Getappointment)
|
||||
//Location.POST("/insertlocation", personHandler.Inse rtPerson)
|
||||
//Location.POST("/deletelocation", personHandler.DeletePersonHand)
|
||||
}
|
||||
@@ -126,10 +135,16 @@ func (s *Server) RegisterRoutes() http.Handler {
|
||||
Master.GET("/address/kelurahan/id/:id", MasterHandler.GetHierarchyByKelurahan)
|
||||
Master.GET("/hierarchy/provinsi/:id", MasterHandler.GetHierarchyFromProvinsi)
|
||||
}
|
||||
// Extension := v1.Group("/extension")
|
||||
//{
|
||||
// //Extension.GET("/getcommunication", MasterHandler.Getsuku )
|
||||
//}
|
||||
Extension := v1.Group("/extension")
|
||||
{
|
||||
Extension.GET("/getcommunication", MasterHandler.GetCommunication)
|
||||
Extension.GET("/getdisability", MasterHandler.Getdisability)
|
||||
Extension.GET("/geteducation", MasterHandler.Geteducation)
|
||||
Extension.GET("/getjob", MasterHandler.Getjob)
|
||||
Extension.GET("/getmartial", MasterHandler.Getmartial)
|
||||
Extension.GET("/getreligion", MasterHandler.Getreligion)
|
||||
Extension.GET("/gettribe", MasterHandler.Gettribe)
|
||||
}
|
||||
|
||||
return r
|
||||
|
||||
|
||||
Reference in New Issue
Block a user