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 "";
|
}
|
}
|