Use CPONE user name for HIS LoginBuat
This commit is contained in:
@@ -35,6 +35,7 @@ type LabRegistrationParams struct {
|
||||
WorkingDiagnosis string
|
||||
Notes string
|
||||
Channel string
|
||||
LoginBuat string
|
||||
}
|
||||
|
||||
type LabRegistrationOutcome struct {
|
||||
@@ -290,7 +291,7 @@ func registerLabInTransaction(ctx context.Context, tx *sql.Tx, params LabRegistr
|
||||
params.ClassID,
|
||||
strings.TrimSpace(params.Notes),
|
||||
shiftID,
|
||||
params.Channel,
|
||||
params.LoginBuat,
|
||||
nowText,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -309,7 +310,7 @@ func registerLabInTransaction(ctx context.Context, tx *sql.Tx, params LabRegistr
|
||||
senderDoctorID,
|
||||
nowText,
|
||||
params.ClassID,
|
||||
params.Channel,
|
||||
params.LoginBuat,
|
||||
nowText,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -323,7 +324,7 @@ func registerLabInTransaction(ctx context.Context, tx *sql.Tx, params LabRegistr
|
||||
if err := upsertLabNominals(ctx, tx, regID, trxDepartmentID, params.DepartmentID); err != nil {
|
||||
return LabRegistrationOutcome{}, err
|
||||
}
|
||||
if err := saveLabDiagnosis(ctx, tx, regID, patient.MEDRECID, strings.TrimSpace(params.WorkingDiagnosis), params.Channel, nowText); err != nil {
|
||||
if err := saveLabDiagnosis(ctx, tx, regID, patient.MEDRECID, strings.TrimSpace(params.WorkingDiagnosis), params.LoginBuat, nowText); err != nil {
|
||||
return LabRegistrationOutcome{}, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user