Use CPONE user name for HIS LoginBuat
This commit is contained in:
@@ -233,6 +233,10 @@ func validateLabRegistration(payload map[string]any) (validatedLabRegistration,
|
||||
channel = "CPONE"
|
||||
}
|
||||
channel = strings.ToUpper(strings.TrimSpace(channel))
|
||||
loginBuat, message := requiredLoginBuat(payload)
|
||||
if message != "" {
|
||||
return validatedLabRegistration{}, message
|
||||
}
|
||||
|
||||
return validatedLabRegistration{Params: repository.LabRegistrationParams{
|
||||
MedrecID: medrecID,
|
||||
@@ -255,6 +259,7 @@ func validateLabRegistration(payload map[string]any) (validatedLabRegistration,
|
||||
WorkingDiagnosis: workingDiagnosis,
|
||||
Notes: notes,
|
||||
Channel: channel,
|
||||
LoginBuat: loginBuat,
|
||||
}}, ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user