|
@@ -303,7 +303,7 @@ import {
|
|
delEmrCopy,
|
|
delEmrCopy,
|
|
emrConfig,
|
|
emrConfig,
|
|
emrMitt, EmrParam,
|
|
emrMitt, EmrParam,
|
|
- getEmrCopy, loadingTime, patientInfo,
|
|
|
|
|
|
+ getEmrCopy, loadingTime, parsingDataElements, patientInfo,
|
|
query
|
|
query
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
import {ElInput, ElMessage, ElMessageBox} from "element-plus";
|
|
import {ElInput, ElMessage, ElMessageBox} from "element-plus";
|
|
@@ -1201,17 +1201,6 @@ const courseSegmentLocking = async () => {
|
|
}
|
|
}
|
|
let courseTitles = [];
|
|
let courseTitles = [];
|
|
|
|
|
|
- function editorGetData(value, dataSource, code) {
|
|
|
|
- if (value === null) return ''
|
|
|
|
- if (value[dataSource] === null) return ''
|
|
|
|
- if (value[dataSource].value === null) return ''
|
|
|
|
- try {
|
|
|
|
- return value[dataSource]?.value[0][code]
|
|
|
|
- } catch {
|
|
|
|
- return ''
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
循环病程返回数据元((value, node) => {
|
|
循环病程返回数据元((value, node) => {
|
|
let fragment = node.getAttribute('fragment')
|
|
let fragment = node.getAttribute('fragment')
|
|
let pushData = {
|
|
let pushData = {
|
|
@@ -1221,9 +1210,9 @@ const courseSegmentLocking = async () => {
|
|
emrDocumentId: getId(),
|
|
emrDocumentId: getId(),
|
|
emrCategoryCode: categoryCode.value,
|
|
emrCategoryCode: categoryCode.value,
|
|
jump: true,
|
|
jump: true,
|
|
- createName: editorGetData(value, '编辑者', 'name'), //value['编辑者']?.value[0].name,
|
|
|
|
|
|
+ createName: parsingDataElements(value, '编辑者', 'name'),
|
|
createDate: value['查房时间']?.value,
|
|
createDate: value['查房时间']?.value,
|
|
- createId: editorGetData(value, '编辑者', 'code') || fragment.createId, // value['编辑者']?.value[0].code || fragment.createId,
|
|
|
|
|
|
+ createId: parsingDataElements(value, '编辑者', 'code') || fragment.createId,
|
|
type: 'category',
|
|
type: 'category',
|
|
trueCreationTime: '',
|
|
trueCreationTime: '',
|
|
}
|
|
}
|
|
@@ -1233,7 +1222,7 @@ const courseSegmentLocking = async () => {
|
|
}
|
|
}
|
|
courseTitles.push(pushData);
|
|
courseTitles.push(pushData);
|
|
if (emrConfig.value.editor) {
|
|
if (emrConfig.value.editor) {
|
|
- let editorCode = pushData.createId
|
|
|
|
|
|
+ const editorCode = pushData.createId
|
|
// 如果这个为空的话,就让她删了重新写,只能删除不能写
|
|
// 如果这个为空的话,就让她删了重新写,只能删除不能写
|
|
if (stringIsBlank(editorCode)) {
|
|
if (stringIsBlank(editorCode)) {
|
|
node.view.setReadonly(true);
|
|
node.view.setReadonly(true);
|