路泰机电科技体检——数据平台后端
zjh
2024-12-30 82f867252e6c76a57502fe15ea4706f3c036cc18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.example.service.shanxiqin.xian;
 
import com.example.constant.ApiParamsConstants;
import com.example.constant.ApiParamsConstantsLis;
import com.example.service.LisService;
import org.springframework.stereotype.Service;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * @Company: 西安路泰科技有限公司
 * @Author: zhaowenxuan
 * @Date: 2024/12/25 10:14
 */
@Service("ShanXiQinXiAnMeiJiLis")
public class MeiJiLisService implements LisService {
    @Override
    public String makeSqd(Map<String, Object> map) {
        HashMap<String, Object> hashMap = new HashMap<>();
        // 门诊号码
        hashMap.put("PATIENTNO", map.get(ApiParamsConstantsLis.PATIENTNO));
        // 挂号号码
        hashMap.put("GH_PATIENTNO", map.get(ApiParamsConstantsLis.GH_PATIENTNO));
        // 标本条形码
        hashMap.put("TXM", map.get(ApiParamsConstantsLis.TXM));
        // 辅助号码
        hashMap.put("PRINTNO",map.get(ApiParamsConstantsLis.PRINTNO));
        // 病人姓名
        hashMap.put("PATIENTNAME",map.get(ApiParamsConstants.CUS_NAME));
        // 出生日期
        hashMap.put("BIRTHDAY",map.get(ApiParamsConstants.CUS_BRITHDAY));
        // 身份证号
        hashMap.put("SFZH",map.get(ApiParamsConstants.CUS_ID_CARD));
        // 性别
        long cusSex = Long.parseLong(map.get(ApiParamsConstants.CUS_SEX).toString());
        if(cusSex==0L){
            hashMap.put ("GENDER","1");
        }else if(cusSex==1L){
            hashMap.put ("GENDER","2");
        }else {
            hashMap.put ("GENDER","0");
        }
        hashMap.put("ADDRESS",map.get(ApiParamsConstants.CUS_ADDR));
        hashMap.put("TELEPHONE",map.get(ApiParamsConstants.CUS_PHONE));
        hashMap.put("YBKH","");
        hashMap.put("TJDW",map.get(ApiParamsConstants.COMP_NAME));
 
 
 
 
 
 
        return "";
    }
}