Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Stat *StatHandler
}
type ResponsePeriod ¶
type ResponseTotal ¶
type StatHandler ¶
type StatHandler struct {
// contains filtered or unexported fields
}
func NewStatHandler ¶
func NewStatHandler(db *localDB.DB) *StatHandler
func (*StatHandler) GetStat ¶
func (h *StatHandler) GetStat(c *gin.Context)
GetStatPerMonth @Summary Get IPEHR statistics per month @Description Retrieve the IPEHR statistics per month @Tags Stat @Produce json @Param period path string false "Month in YYYYYMM format. Example: 202201" @Success 200 {object} ResponsePeriod @Failure 500 "Is returned when an unexpected error occurs while processing a request" @Router /{period} [get]
func (*StatHandler) GetTotal ¶
func (h *StatHandler) GetTotal(c *gin.Context)
GetStat @Summary Get IPEHR statistics total @Description Retrieve the IPEHR statistics total and current month @Tags Stat @Produce json @Success 200 {object} ResponseTotal @Failure 500 "Is returned when an unexpected error occurs while processing a request" @Router / [get]