qcp QCP pad
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

200 lines
4.3 KiB

export interface IConfig {
text: string
description?: string
rightArrow?: boolean
type: string
default: string
range?: { value: string; text: string }[]
showType?: {
type: string
code: string
value: string
}
}
// 患者基本信息
export const BASE_CODE_DICT = {
'JBXX-SFXHCZ': {
// 是否醒后卒中
text: '发病时间',
type: 'radio',
default: '已知',
range: [
{ value: '已知', text: '已知' },
{ value: '未知', text: '未知' },
{ value: '醒后卒中', text: '醒后卒中' },
],
},
'JBXX-FBSJ': {
text: '发病时间',
type: 'datetime',
default: '',
valueType: 'string',
showType: {
type: 'value',
code: 'JBXX-SFXHCZ',
value: '已知',
},
},
'JBXX-ZHZC-TIME': {
text: '最后正常时间',
type: 'datetime',
default: '',
valueType: 'string',
showType: {
type: 'value',
code: 'JBXX-SFXHCZ',
value: '醒后卒中',
},
},
'JBXX-SFYNCZ': {
text: '是否院内卒中',
type: 'radio',
range: [
{ value: '是', text: '是' },
{ value: '否', text: '否' },
],
default: '是',
},
'JBXX-DDJZ-TIME': {
text: '到达急诊时间',
type: 'datetime',
default: '',
valueType: 'string',
},
'JBXX-TZCZYS-TIME': {
text: '通知卒中医生时间',
type: 'datetime',
default: '',
valueType: 'string',
},
'JBXX-CZYSDC-TIME': {
text: '卒中到场时间',
type: 'datetime',
default: '',
valueType: 'string',
},
'JBXX-LYFS': {
text: '来院方式',
type: 'select',
range: [
{ value: '120', text: '120' },
{ value: '自行住院', text: '自行住院' },
{ value: '院内住院患者', text: '院内住院患者' },
{ value: '院内公共区域患者', text: '院内公共区域患者' },
{ value: '医疗机构转入', text: '医疗机构转入' },
],
default: '',
},
}
export const AID_RECORD_DICT = {
'RYPG-HEIGHT': {
text: '身高',
description: '(cm)',
type: 'input',
inputType: 'digit',
default: '',
},
'RYPG-WEIGHT': { text: '体重', description: '(kg)', type: 'text', default: '' },
'RYPG-GENDER': { text: '性别', description: '', type: 'text', default: '' },
'RYPG-BMI': {
text: 'BMI',
description: '',
type: 'text',
default: '',
},
'RYPG-SYSTOLIC-PRESSURE': {
text: '收缩压',
description: '(mmHg)',
type: 'input',
inputType: 'digit',
default: '',
},
'RYPG-DIASTOLIC-PRESSURE': {
text: '舒张压',
description: '(mmHg)',
type: 'input',
inputType: 'digit',
default: '',
},
'RYPG-PULSE': {
text: '脉搏',
description: '(次/分)',
type: 'input',
inputType: 'digit',
default: '',
},
'RYPG-MRS': {
text: '本次入院mRS评分',
description: '',
type: 'text',
rightArrow: true,
default: '',
},
'RYPG-NIHSS': {
text: '本次入院NIHSS评分',
description: '',
type: 'text',
rightArrow: true,
default: '',
},
'RYPG-BLOOD-REPORT-TIME': {
text: '血样完成时间',
type: 'datetime',
default: '',
valueType: 'string',
},
'RYPG-BLOOD-SUGAR': {
text: '血糖',
description: '(mol/L)',
type: 'input',
inputType: 'digit',
default: '',
},
'RYPG-CT-LK-TIME': {
text: 'CT完成时间',
type: 'datetime',
default: '',
valueType: 'string',
},
'JMRS-Y': {
text: '是否进行静脉溶栓',
type: 'radio',
default: '是',
range: [
{ value: '是', text: '是' },
{ value: '否', text: '否' },
],
},
'JMRS-WRSYY': {
text: '未溶栓原因',
type: 'checkbox',
default: '',
range: [
{ value: '超时间创', text: '超时间创' },
{ value: '禁忌症', text: '禁忌症' },
{ value: '患者/家属拒绝', text: '患者/家属拒绝' },
{ value: '其他', text: '其他' },
],
showType: {
type: 'value',
code: 'JMRS-Y',
value: '否',
},
},
'JMRS-WRSYY-ELSE': {
text: '',
type: 'input',
default: '',
showType: {
type: 'valueInclude',
code: 'JMRS-WRSYY',
value: '其他',
},
},
}
// all, you know?
export const CODE_DICT: { [key: string]: IConfig } = { ...BASE_CODE_DICT, ...AID_RECORD_DICT }