|
@@ -57,7 +57,7 @@ type ResultEmpty10265 struct {
|
57
|
57
|
|
58
|
58
|
func init() {
|
59
|
59
|
//service.ConnectNMMSDB()
|
60
|
|
- service.ConnectDB()
|
|
60
|
+ //service.ConnectDB()
|
61
|
61
|
//org_id, _ := beego.AppConfig.Int64("org_id")
|
62
|
62
|
//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
|
63
|
63
|
//////CreateLog(miConfig)
|
|
@@ -79,7 +79,7 @@ func main() {
|
79
|
79
|
//GetblBatchSettleList()
|
80
|
80
|
//GetblbrBatchSettleList()
|
81
|
81
|
//深圳百霖贝尔
|
82
|
|
- //GetbrBatchSettleList()
|
|
82
|
+ //GetblbrBatchSettleList()
|
83
|
83
|
|
84
|
84
|
//a, _ := service.GetResultRecord("2023-01-01")
|
85
|
85
|
//ticker := time.Tick(2 * time.Hour)
|
|
@@ -924,7 +924,7 @@ type ResultSeventeen struct {
|
924
|
924
|
|
925
|
925
|
func GetblbrBatchSettleList() {
|
926
|
926
|
org_id, _ := beego.AppConfig.Int64("org_id")
|
927
|
|
- org_id = 10278
|
|
927
|
+ org_id = 10537
|
928
|
928
|
var orders []*models.HisOrder
|
929
|
929
|
//var orders []*models.HisOrderError
|
930
|
930
|
orders, _ = service.GetAllHisOrder10278()
|
|
@@ -933,26 +933,26 @@ func GetblbrBatchSettleList() {
|
933
|
933
|
order, _ := service.GetHisOrderByIDTwo(order_id)
|
934
|
934
|
if order.MedType == "14" {
|
935
|
935
|
his, _ := service.GetHisPatientByNumber(order.MdtrtId)
|
936
|
|
- var patientPrescription models.HisPrescriptionInfo
|
937
|
|
- patientPrescription, _ = service.FindLastPatientPrescriptionInfo(order.UserOrgId, order.PatientId, order.SettleAccountsDate)
|
938
|
|
- doctor_info, _ := service.GetAdminUserInfoByID(order.UserOrgId, patientPrescription.DoctorId)
|
939
|
|
- department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
|
|
936
|
+ //var patientPrescription models.HisPrescriptionInfo
|
|
937
|
+ //patientPrescription, _ = service.FindLastPatientPrescriptionInfo(order.UserOrgId, order.PatientId, order.SettleAccountsDate)
|
|
938
|
+ //doctor_info, _ := service.GetAdminUserInfoByID(order.UserOrgId, patientPrescription.DoctorId)
|
|
939
|
+ //department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
|
940
|
940
|
miConfig, _ := service.FindMedicalInsuranceInfo(order.UserOrgId)
|
941
|
941
|
var configTwo []*models.HisXtDiagnoseConfig
|
942
|
942
|
diagnosis_idstwo := strings.Split(his.Diagnosis, ",")
|
943
|
|
- curRoles, _ := service.GetAdminUserInfoByID(org_id, 2791)
|
|
943
|
+ curRoles, _ := service.GetAdminUserInfoByID(org_id, 2234)
|
944
|
944
|
for _, item := range diagnosis_idstwo {
|
945
|
945
|
id, _ := strconv.ParseInt(item, 10, 64)
|
946
|
946
|
diagnosisConfig, _ := service.FindDiagnoseById(id)
|
947
|
947
|
configTwo = append(configTwo, &diagnosisConfig)
|
948
|
948
|
}
|
949
|
|
- patient, _ := service.GetPatientByIDTwo(10278, order.PatientId)
|
|
949
|
+ patient, _ := service.GetPatientByIDTwo(10537, order.PatientId)
|
950
|
950
|
|
951
|
|
- sickConfig, _ := service.FindSickById(his.SickType)
|
|
951
|
+ //sickConfig, _ := service.FindSickById(his.SickType)
|
952
|
952
|
//if order.MedType == "1111" || order.MedType == "1112" {
|
953
|
953
|
// order.MedType = "11"
|
954
|
954
|
//}
|
955
|
|
- service.Gdyb2203d(his.PsnNo, his.Number, doctor_info.UserName, department.Name, miConfig.OrgName, "14", doctor_info.DoctorNumber, miConfig.Code, his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.ContentCode, sickConfig.ClassName, curRoles.UserName, configTwo, time.Unix(his.RecordDate, 0).Format("2006-01-02 15:04:05"))
|
|
955
|
+ //service.Gdyb2203d(his.PsnNo, his.Number, doctor_info.UserName, department.Name, miConfig.OrgName, "14", doctor_info.DoctorNumber, miConfig.Code, his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.ContentCode, sickConfig.ClassName, curRoles.UserName, configTwo, time.Unix(his.RecordDate, 0).Format("2006-01-02 15:04:05"))
|
956
|
956
|
|
957
|
957
|
depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
|
958
|
958
|
pre, _ := service.GetNewHisPrescriptionByNumber(order.Number)
|