|
@@ -367,14 +367,44 @@ const handleClickInjuryinfo = (row) => {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|
|
|
body: JSON.stringify({
|
|
|
- pat_no: patient.value.inpatientNo,
|
|
|
- times: patient.value.admissTimes,
|
|
|
- ledger_sn: patient.value.ledgerSn,
|
|
|
- psn_no: patient.value.readCardResult.data.output.psn_no,
|
|
|
- med_type: patient.value.medType,
|
|
|
- insuplc_admdvs: patient.value.readCardResult.data.output.insu_admdvs,
|
|
|
- mdtrt_id: result.data.request_parameters.businessParams.ipt_otp_no,//就诊ID 就是门诊/住院流水号 新增
|
|
|
- create_datetime: getCurrentDateTimeForCreate(),
|
|
|
+ pat_no:patient.value.inpatientNo,//住院号/门诊号
|
|
|
+ times:patient.value.admissTimes,//住院次数/门诊次数
|
|
|
+ ledger_sn:patient.value.ledgerSn,//账页号(门诊固定为0)
|
|
|
+ psn_no: patient.value.readCardResult.data.output.psn_no,//人员编号
|
|
|
+ //insutype,//险种类型
|
|
|
+ med_type: patient.value.medType,//医疗类别
|
|
|
+ insuplc_admdvs:patient.value.readCardResult.data.output.insu_admdvs,//参保地医保区划,可通过【1101】人员信息获取交易取得
|
|
|
+ psn_type:patient.value.readCardResult.data.output.psn_type,//人员类别
|
|
|
+ //psn_insu_stas,
|
|
|
+ //psn_insu_date,
|
|
|
+ //paus_insu_date,
|
|
|
+ //cvlserv_flag,
|
|
|
+ emp_name:patient.value.readCardResult.data.output.emp_name,//单位名称
|
|
|
+ //psn_idet_type,//人员身份类型(来自外部医保接口)
|
|
|
+ //psn_type_lv,
|
|
|
+ mdtrt_id: result.data.request_parameters.businessParams.ipt_otp_no,//就诊ID 就是门诊/住院流水号 新增
|
|
|
+ //setl_id,
|
|
|
+ //medins_setl_id,
|
|
|
+ //psn_cert_type,//人员证件类型(外部接口返回)
|
|
|
+ certno:patient.value.readCardResult.data.output.certno,//证件号码
|
|
|
+ psn_name:patient.value.readCardResult.data.output.psn_name,//人员姓名
|
|
|
+ gend:patient.value.readCardResult.data.output.gend,//性别
|
|
|
+ //naty,//民族(外部接口返回)
|
|
|
+ brdy: formatBirthdayForBrdy(patient.value.readCardResult.data.output.birthday),//brdy出生日期(yyyy-MM-dd)|birthday(yyyyMMdd)
|
|
|
+ age:patient.value.readCardResult.data.output.age,//年龄
|
|
|
+ //fulamt_ownpay_amt,
|
|
|
+ //overlmt_amt,
|
|
|
+ //preselfpay_amt,
|
|
|
+ //inscp_scp_amt,
|
|
|
+ create_datetime: getCurrentDateTimeForCreate(),//创建时间2025-05-06 17:45:12.743
|
|
|
+ //visit_datetime,//医保登记时间
|
|
|
+ adm_reg_msgid:result.data.transformed_parameters.msgid,//入院登记消息ID
|
|
|
+ //setl_msgid,
|
|
|
+ //rvk_setl_msgid,
|
|
|
+ //dise_code,
|
|
|
+ //dise_name,
|
|
|
+ //balc,//个人账户余额(外部接口返回)
|
|
|
+ //insuplc_admdvs_name
|
|
|
}),
|
|
|
})
|
|
|
const resultThree = await responseThree.json()
|
|
@@ -788,6 +818,17 @@ function getCurrentDateTimeStr() {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
+// 将yyyyMMdd格式转换为yyyy-MM-dd格式
|
|
|
+function formatBirthdayForBrdy(birthday) {
|
|
|
+ if (!birthday || birthday.length !== 8) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ const year = birthday.substring(0, 4);
|
|
|
+ const month = birthday.substring(4, 6);
|
|
|
+ const day = birthday.substring(6, 8);
|
|
|
+ return `${year}-${month}-${day}`;
|
|
|
+}
|
|
|
+
|
|
|
// 获取当前时间,格式为YYYY-MM-DD HH:mm:ss.SSS
|
|
|
function getCurrentDateTimeForCreate() {
|
|
|
const now = new Date()
|