| | |
| | | <el-table-column label="就诊流水号" align="center" prop="episodeId" min-width="110px"/> |
| | | <el-table-column label="申请号" align="center" prop="applyNo" min-width="110px"/> |
| | | <el-table-column label="编号" align="center" prop="patId" /> |
| | | <!-- 本列标签由「就诊卡号」改为「门诊号」(经确认)。原因(详见《部署清单》5.1): |
| | | HIS 在卡号槽位传空,medical_card 全库 159,116 行**无一非空**; |
| | | 实测该列 99.9% 显示的是 outpatient_no(65% 形如身份证、35% 为门诊号)。 |
| | | 若继续叫「就诊卡号」会让医护人员误读,故按实际含义命名。 |
| | | resolveCardNo 仍按值形态给出**来源标注**(身份证/住院号/门诊号), |
| | | 便于区分混在 outpatient_no 里的身份证号。 --> |
| | | <el-table-column label="门诊号" align="center" min-width="140px"> |
| | | <template #default="scope"> |
| | | <span>{{ resolveCardNo(scope.row).value }}</span> |
| | | <el-tag v-if="resolveCardNo(scope.row).from" size="small" type="info" effect="plain" class="ml-1"> |
| | | {{ resolveCardNo(scope.row).from }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 需求1:医嘱号(HIS observationRequest.id.item[root=2.16.156.10011.1.28])。 |
| | | 该节点在规范中非必须项,历史数据(新增列之前采集的)为空,显示 '-'。 --> |
| | | <el-table-column label="医嘱号" align="center" prop="doctorAdviceNo" min-width="110px"> |
| | | <template #default="scope"> |
| | | {{ scope.row.doctorAdviceNo || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | <!-- |
| | | <el-table-column label="缴费" align="center" prop="paid"> |
| | | <template #default="scope"> |
| | |
| | | {{scope.row.patName}} <dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="scope.row.patGender" /> |
| | | <dict-tag :type="DICT_TYPE.ECG_PAT_SOURCE" :value="scope.row.patSrc" /> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 需求1:状态 --> |
| | | <!-- 注意:必须显式判空,不能用 v-if="scope.row.status" —— |
| | | 状态 '0'(未登记)是合法值,真值判断会把它误判为"无数据"而显示 '-' --> |
| | | <el-table-column label="状态" align="center" prop="status" width="110px"> |
| | | <template #default="scope"> |
| | | <dict-tag |
| | | v-if="scope.row.status !== null && scope.row.status !== undefined && scope.row.status !== ''" |
| | | :type="DICT_TYPE.ECG_STATUS" |
| | | :value="scope.row.status" |
| | | /> |
| | | <span v-else>-</span> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 需求1:年龄(库中无此列,由生日实时计算) --> |
| | | <el-table-column label="年龄" align="center" width="80px"> |
| | | <template #default="scope">{{ formatAge(scope.row.patBirthday) }}</template> |
| | | </el-table-column> |
| | | <!-- 需求1:开单日期 + 距今天数 --> |
| | | <el-table-column label="开单日期" align="center" min-width="150px"> |
| | | <template #default="scope">{{ formatDateTime(scope.row.doctorTime) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="距今天数" align="center" width="90px"> |
| | | <template #default="scope">{{ formatDaysFromOrder(scope.row.doctorTime) }}</template> |
| | | </el-table-column> |
| | | <!-- 需求1:开单医师 --> |
| | | <el-table-column label="开单医师" align="center" prop="doctor" min-width="100px"> |
| | | <template #default="scope">{{ scope.row.doctor || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="预约日期" |
| | |
| | | <script setup lang="ts"> |
| | | import {DICT_TYPE} from '@/utils/dict' |
| | | import { dateFormatter2 } from '@/utils/formatTime' |
| | | // 需求1:年龄 / 距今天数 / 开单日期格式化(库中无对应列,需实时计算) |
| | | import { formatAge, formatDaysFromOrder, formatDateTime, resolveCardNo } from '@/utils/patientInfo' |
| | | import download from '@/utils/download' |
| | | import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment' |
| | | import AppointmentForm from './AppointmentForm.vue' |