package v1 import ( "github.com/gin-gonic/gin" ) import ( "auth-server/common" "auth-server/service" ) func GetPatientTypeList(c *gin.Context) { res, err := service.ProtocolClient.GetPatientTypeList(common.GC2GM(c), common.IsEnabled(c)) if err != nil { common.HttpErr(c, err) return } common.HttpSuccess(c, res) } func GetBodyPartList(c *gin.Context) { res, err := service.ProtocolClient.GetBodyPartList(common.GC2GM(c), common.GetQueryString(c, "patient_type"), common.GetQueryString(c, "modality"), common.IsEnabled(c)) if err != nil { common.HttpErr(c, err) return } common.HttpSuccess(c, res) } func GetProcedureList(c *gin.Context) { res, err := service.ProtocolClient.GetProcedureList(common.GC2GM(c), common.GetQueryString(c, "patient_type"), common.GetQueryString(c, "body_part"), common.IsEnabled(c)) if err != nil { common.HttpErr(c, err) return } common.HttpSuccess(c, res) } func GetViewList(c *gin.Context) { res, err := service.ProtocolClient.GetViewList(common.GC2GM(c), common.GetQueryString(c, "patient_type"), common.GetQueryString(c, "body_part"), common.GetQueryString(c, "procedure_id"), common.IsEnabled(c)) if err != nil { common.HttpErr(c, err) return } common.HttpSuccess(c, res) }