Use CPONE user name for HIS LoginBuat
This commit is contained in:
@@ -171,6 +171,10 @@ func validateMedrec(payload map[string]any) (repository.MedrecParams, string) {
|
||||
if !channelPresent || channel == "" {
|
||||
channel = "CPONE"
|
||||
}
|
||||
loginBuat, message := requiredLoginBuat(payload)
|
||||
if message != "" {
|
||||
return repository.MedrecParams{}, message
|
||||
}
|
||||
|
||||
identityType = normalizeText(identityType)
|
||||
identityNumber = normalizeIdentity(identityNumber)
|
||||
@@ -208,6 +212,7 @@ func validateMedrec(payload map[string]any) (repository.MedrecParams, string) {
|
||||
DependantID: strings.TrimSpace(dependantID),
|
||||
EmployeeName: strings.TrimSpace(employeeName),
|
||||
Channel: normalizeText(channel),
|
||||
LoginBuat: loginBuat,
|
||||
}, ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user