Add CPONE lab and radiology result forwarding
This commit is contained in:
@@ -15,6 +15,7 @@ type Config struct {
|
||||
RSCode string
|
||||
DepartmentID string
|
||||
BearerToken string
|
||||
ResultBaseURL string
|
||||
DBMaxOpenConns int
|
||||
DBMaxIdleConns int
|
||||
DBConnMaxLifetime time.Duration
|
||||
@@ -36,6 +37,7 @@ func Load(path string) (Config, error) {
|
||||
RSCode: env("CPONE_RS_CODE", ""),
|
||||
DepartmentID: env("CPONE_DEPARTEMEN_ID", ""),
|
||||
BearerToken: env("CPONE_BEARER_TOKEN", ""),
|
||||
ResultBaseURL: env("CPONE_RESULT_BASE_URL", "https://devcpone.aplikasi.web.id/one-api/api_his"),
|
||||
DBMaxOpenConns: envInt("DB_MAX_OPEN_CONNS", 25),
|
||||
DBMaxIdleConns: envInt("DB_MAX_IDLE_CONNS", 25),
|
||||
DBConnMaxLifetime: time.Duration(envInt("DB_CONN_MAX_LIFETIME_MINUTES", 5)) * time.Minute,
|
||||
|
||||
Reference in New Issue
Block a user