|
@@ -62,15 +62,18 @@ func createBaseInfo(tmp map[string]interface{}) string {
|
|
|
data_info["mi_name"] = name
|
|
|
data_info["introduce"] = qu.ObjToString(tmp["introduce"])
|
|
|
//代码标准化
|
|
|
- new_level, new_type, new_bustype := codificationOfInfo(qu.ObjToString(tmp["level"]), qu.ObjToString(tmp["type"]), qu.ObjToString(tmp["business_type"]))
|
|
|
+ new_level, new_type, new_bustype, new_sdequipment := codificationOfInfo(qu.ObjToString(tmp["level"]), qu.ObjToString(tmp["type"]), qu.ObjToString(tmp["business_type"]))
|
|
|
data_info["level_code"] = new_level
|
|
|
data_info["mi_type_code"] = new_type
|
|
|
data_info["business_type"] = new_bustype
|
|
|
+ data_info["sdequipment_code"] = new_sdequipment
|
|
|
+
|
|
|
data_info["address"] = qu.ObjToString(tmp["address"])
|
|
|
data_info["equipment"] = qu.ObjToString(tmp["equipment"])
|
|
|
beds := qu.IntAll(tmp["beds"])
|
|
|
visit_perday := qu.IntAll(tmp["visit_perday"])
|
|
|
doctorsnum := qu.IntAll(tmp["doctorsnum"])
|
|
|
+ staffnum := qu.IntAll(tmp["staffnum"])
|
|
|
if beds > 0 {
|
|
|
data_info["beds"] = beds
|
|
|
}
|
|
@@ -80,6 +83,9 @@ func createBaseInfo(tmp map[string]interface{}) string {
|
|
|
if doctorsnum > 0 {
|
|
|
data_info["doctorsnum"] = doctorsnum
|
|
|
}
|
|
|
+ if staffnum > 0 {
|
|
|
+ data_info["staffnum"] = staffnum
|
|
|
+ }
|
|
|
data_info["tel"] = qu.ObjToString(tmp["tel"])
|
|
|
data_info["fax_number"] = qu.ObjToString(tmp["fax_number"])
|
|
|
data_info["website"] = qu.ObjToString(tmp["website"])
|
|
@@ -145,10 +151,6 @@ func createDepartsInfo(tmp map[string]interface{}, level string) {
|
|
|
data["company_id"] = qu.ObjToString(tmp["company_id"])
|
|
|
|
|
|
data["departname_code"] = depart_code
|
|
|
- //equipment_code 设备代码~需要构建
|
|
|
- equipment_code := level + depart_code
|
|
|
- data["equipment_code"] = equipment_code
|
|
|
-
|
|
|
data["departname_class1"] = qu.ObjToString(v["departclass1"])
|
|
|
data["departname_class2"] = qu.ObjToString(v["departclass2"])
|
|
|
data["introduce"] = qu.ObjToString(v["depart_introduce"])
|
|
@@ -168,11 +170,12 @@ func createDepartsInfo(tmp map[string]interface{}, level string) {
|
|
|
}
|
|
|
|
|
|
//等级,类型,性质代码化
|
|
|
-func codificationOfInfo(med_level string, med_type string, med_bustype string) (string, string, int) {
|
|
|
+func codificationOfInfo(med_level string, med_type string, med_bustype string) (string, string, int, string) {
|
|
|
new_level := class.Medical_Level_Code[med_level]
|
|
|
- new_type := class.Medical_Type_Code[med_type]
|
|
|
new_bustype := class.Medical_BusType_Code[med_bustype]
|
|
|
- return new_level, new_type, new_bustype
|
|
|
+ new_type := class.Medical_Type_Code[med_type]
|
|
|
+ new_sdequipment := new_level[:2] + new_type
|
|
|
+ return new_level, new_type, new_bustype, new_sdequipment
|
|
|
}
|
|
|
|
|
|
//区域代码
|