fis kesimpulan

This commit is contained in:
Hanan Askarim
2024-06-13 19:11:14 +07:00
committed by adibwp
parent 1bfeb97a57
commit 8dd071a924
10 changed files with 17 additions and 501 deletions

View File

@@ -30,8 +30,6 @@ func (h *KesimpulanHandler) HandleShowKesimpulanScreen(c echo.Context) error {
logger, _ := zap.NewProduction()
tableID := utils.GenerateRandomID("tablebody")
tableIDNonLab := utils.GenerateRandomID("tablebody")
tableIDFisik := utils.GenerateRandomID("tablebody")
id := c.Param("id")
// table component
@@ -63,7 +61,7 @@ func (h *KesimpulanHandler) HandleShowKesimpulanScreen(c echo.Context) error {
logger.Info("CEK DATA",
zap.Any("data lab", dataNonLab))
tableComponentNonLab := dev_kesimpulan.CardTableKesimpulanNonLab("3 Kelainan Pemeriksaan Non Lab terbesar :", dataNonLab, tableIDNonLab)
tableComponentNonLab := dev_kesimpulan.CardTableKesimpulan("3 Kelainan Pemeriksaan Non Lab terbesar :", dataNonLab, tableID)
// table component fisik
dataFisik, err := h.KesimpulanService.GetListKesimpulanFisik(id)
@@ -78,11 +76,9 @@ func (h *KesimpulanHandler) HandleShowKesimpulanScreen(c echo.Context) error {
logger.Info("CEK DATA",
zap.Any("data lab", dataFisik))
tableComponentFisik := dev_kesimpulan.CardTableKesimpulanFisik("3 Kelainan Pemeriksaan Fisik terbesar :", dataFisik, tableIDFisik)
tableComponentFisik := dev_kesimpulan.CardTableKesimpulan("3 Kelainan Pemeriksaan Fisik terbesar :", dataFisik, tableID)
content := dev_kesimpulan.MainKesimpulan(tableID,
tableIDNonLab,
tableIDFisik,
tableComponentLab,
tableComponentNonLab,
tableComponentFisik)