@lm_fe/pages-mchc 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +1 -1
  2. package/dist/a_chunks/diagnoses-week.js +1 -1
  3. package/dist/a_chunks/index.js +16 -18
  4. package/dist/a_chunks/index2.js +1 -1
  5. package/dist/a_chunks/pages.config-table.list.js +1 -1
  6. package/dist/a_chunks/pages.config-table.panel.js +1 -1
  7. package/dist/a_chunks/pages.config-table.panel2.js +1 -1
  8. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end.js +7 -7
  9. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end10.js +46 -79
  10. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end11.js +75 -363
  11. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end12.js +334 -188
  12. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end13.js +213 -470
  13. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end14.js +463 -163
  14. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end15.js +135 -304
  15. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end16.js +320 -152
  16. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end17.js +181 -77
  17. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end18.js +70 -234
  18. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end19.js +239 -52
  19. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end2.js +1132 -341
  20. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end20.js +52 -251
  21. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end21.js +243 -99
  22. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end22.js +95 -83
  23. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end23.js +94 -515
  24. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end24.js +507 -297
  25. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end25.js +279 -408
  26. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end26.js +419 -103
  27. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end27.js +101 -187
  28. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end28.js +185 -423
  29. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end29.js +313 -246
  30. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end3.js +344 -550
  31. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end30.js +223 -133
  32. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end31.js +271 -93
  33. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end32.js +96 -216
  34. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end33.js +215 -117
  35. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end34.js +102 -91
  36. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end35.js +94 -22
  37. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end36.js +9 -16
  38. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end37.js +28 -44
  39. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end38.js +45 -41
  40. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end39.js +55 -108
  41. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end4.js +552 -30
  42. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end40.js +54 -105
  43. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end41.js +160 -234
  44. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end42.js +235 -0
  45. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end5.js +33 -40
  46. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end6.js +40 -33
  47. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end7.js +33 -40
  48. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end8.js +39 -33
  49. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end9.js +33 -39
  50. package/dist/a_chunks/prenatal-visit.pregnancy.nurse-end.js +4 -2
  51. package/dist/a_chunks/src.pages.config-table.js +1 -1
  52. package/dist/a_chunks/src.pages.system-config2.js +68 -56
  53. package/dist/a_chunks/utils.js +60 -110
  54. package/dist/a_chunks/utils2.js +113 -56
  55. package/dist/a_chunks/utils3.js +57 -0
  56. package/dist/pages/config-table/utils.d.ts +1 -0
  57. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherTable/index.d.ts +1 -0
  58. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/utils.d.ts +9 -0
  59. package/package.json +9 -9
  60. package/dist/a_chunks/DoctorEnd_FurtherPage.js +0 -1244
  61. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/config.d.ts +0 -9
  62. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherForm/config.d.ts +0 -6
@@ -1,110 +1,426 @@
1
- import { LazyAntd } from '@lm_fe/components';
2
- import { request } from '@lm_fe/utils';
3
- import { Modal, Button } from 'antd';
4
- import { get } from 'lodash';
5
- import React, { useState, useRef, useEffect } from 'react';
6
- import ReactToPrint from 'react-to-print';
7
- import { s as styleInject } from './index.js';
8
- import '@lm_fe/env';
9
- import '@lm_fe/components_m';
10
- import '@lm_fe/pages';
11
- import '@lm_fe/service';
12
- var css_248z = ".diag-record-modal .add-class {\n color: #02a7f0;\n}\n.diag-record-modal .del-class {\n color: #ccc;\n text-decoration: line-through;\n}\n.diag-record-modal .diag-wrapper {\n display: none;\n}\n.diag-record-modal .diag-wrapper .diag-first .diag-GP {\n display: inline-block;\n width: 12px;\n}\n.diag-record-modal .diag-wrapper .diag-first .diag-week {\n display: inline-block;\n width: 34px;\n}\n.diag-record-modal .diag-wrapper .diag-item {\n padding-left: 43px;\n}\n";
13
- styleInject(css_248z);
14
- LazyAntd.Tree;
15
- LazyAntd.TreeSelect;
16
- LazyAntd.Select;
17
- var Table = LazyAntd.Table;
18
- LazyAntd.Dropdown;
19
- LazyAntd.Pagination;
20
- function diagTable(_a) {
21
- var visitsData = _a.visitsData,
22
- closeModal = _a.closeModal,
23
- headerInfo = _a.headerInfo,
24
- isShowHisModal = _a.isShowHisModal;
25
- var _b = useState([]),
26
- recordData = _b[0],
27
- setRecordData = _b[1];
28
- var printDiagRef = useRef(null);
29
- useEffect(function () {
30
- var pregnancyId = get(visitsData, 'id');
31
- request.get("/api/getDiagnosisHistories?pregnancyId=".concat(pregnancyId)).then(function (r) {
32
- return setRecordData(r.data);
33
- });
34
- return function () {};
35
- }, [visitsData]);
36
- var handleCancel = function handleCancel() {
37
- closeModal('isShowHisModal');
38
- };
39
- var renderTable = function renderTable() {
40
- var columns = [{
41
- title: '流水号',
42
- dataIndex: 'serialNo',
43
- key: 'serialNo',
44
- width: 150,
45
- align: 'center'
1
+ import { mchcEnv, rt_ctx } from '@lm_fe/env';
2
+ import { defineFormConfig } from '@lm_fe/service';
3
+ import { as 门诊_胎儿_form } from './utils3.js';
4
+ import { d as diag_filter_map } from './utils.js';
5
+ import { pressure_fd } from '@lm_fe/pages';
6
+ import '@lm_fe/utils';
7
+ var ctx = rt_ctx;
8
+ var _default = defineFormConfig([{
9
+ "key": "id",
10
+ form_hidden: true
11
+ }, {
12
+ "key": "outEmrId",
13
+ form_hidden: true
14
+ }, {
15
+ "key": "visitDate",
16
+ "label": "日期",
17
+ "inputType": "DatePicker",
18
+ required: true,
19
+ layout: '1/4'
20
+ }, {
21
+ "key": "gestationalWeek",
22
+ "label": "孕周",
23
+ "inputType": "input",
24
+ required: true,
25
+ inputProps: {
26
+ onFocus: function onFocus(e) {
27
+ ctx.mchcEvent.emit('my_form', {
28
+ type: 'onFocus',
29
+ name: 'gestationalWeek'
30
+ });
31
+ }
32
+ },
33
+ layout: '1/4'
34
+ }, {
35
+ "key": "physicalExam.height",
36
+ "label": "身高",
37
+ "inputType": "InputNumber",
38
+ required: true,
39
+ isActive: mchcEnv["in"](['广州市八']),
40
+ isNewRow: true,
41
+ "inputProps": {
42
+ 'unit': 'cm'
43
+ },
44
+ layout: '1/4'
45
+ }, {
46
+ "key": "physicalExam.weight",
47
+ "label": "体重",
48
+ "inputType": "InputNumber",
49
+ required: true,
50
+ "inputProps": {
51
+ 'unit': 'kg'
52
+ },
53
+ layout: '1/4'
54
+ }, {
55
+ "key": "physicalExam.bmi",
56
+ "label": "bmi",
57
+ "inputType": "InputNumber",
58
+ required: true,
59
+ "inputProps": {},
60
+ isActive: mchcEnv["in"](['广州市八']),
61
+ layout: '1/4'
62
+ }, pressure_fd({
63
+ label: '血压首测',
64
+ isNewRow: true
65
+ }, {
66
+ name: 'physicalExam.systolic',
67
+ required: true
68
+ }, {
69
+ name: 'physicalExam.diastolic',
70
+ required: true
71
+ }), pressure_fd({
72
+ label: '血压二测'
73
+ }, {
74
+ name: 'physicalExam.systolic2'
75
+ }, {
76
+ name: 'physicalExam.diastolic2'
77
+ }), pressure_fd({
78
+ label: '血压三测'
79
+ }, {
80
+ name: 'physicalExam.systolic3'
81
+ }, {
82
+ name: 'physicalExam.diastolic3'
83
+ }), {
84
+ "key": "physicalExam.pulse",
85
+ "label": "脉搏",
86
+ "inputType": "InputNumber",
87
+ "inputProps": {
88
+ 'unit': '次/分'
89
+ },
90
+ layout: '1/4'
91
+ }, {
92
+ "key": "chiefComplaint",
93
+ "label": "主诉",
94
+ "inputType": "textareaWithTemplate",
95
+ isNewRow: 1,
96
+ inputProps: {
97
+ TemplateTextarea_type: [{
98
+ title: '科室',
99
+ type: 16,
100
+ depid: 2
46
101
  }, {
47
- title: 'ICD编码',
48
- dataIndex: 'diagnosisCode',
49
- key: 'diagnosisCode',
50
- width: 150,
51
- align: 'center'
102
+ title: '个人',
103
+ type: 17
104
+ }]
105
+ },
106
+ layout: '1/2'
107
+ }, {
108
+ "key": "phi",
109
+ "label": "现病史",
110
+ "inputType": "textareaWithTemplate",
111
+ inputProps: {
112
+ TemplateTextarea_type: [{
113
+ title: '科室',
114
+ type: 8,
115
+ depid: 2
52
116
  }, {
53
- title: '诊断',
54
- dataIndex: 'diagnosis',
55
- key: 'diagnosis',
56
- align: 'center'
117
+ title: '个人',
118
+ type: 9
119
+ }]
120
+ },
121
+ layout: '1/2'
122
+ }, {
123
+ "key": "gynExam.fundalHeight",
124
+ "label": "宫高",
125
+ "inputType": "InputNumber",
126
+ "inputProps": {
127
+ 'unit': 'cm'
128
+ },
129
+ layout: '1/4',
130
+ "isNewRow": 1
131
+ }, {
132
+ "key": "gynExam.waistHip",
133
+ "label": "腹围",
134
+ "inputType": "InputNumber",
135
+ "inputProps": {
136
+ 'unit': 'cm'
137
+ },
138
+ layout: '1/4'
139
+ }, {
140
+ "key": "edema",
141
+ "label": "下肢水肿",
142
+ "inputType": "select",
143
+ "inputProps": {
144
+ 'options': mchcEnv.get_other_options('edemaOptions'),
145
+ marshal: 0
146
+ },
147
+ layout: '1/4'
148
+ }, {
149
+ "key": "gynExam.engagement",
150
+ "label": "衔接",
151
+ "inputType": "select",
152
+ "inputProps": {
153
+ 'options': mchcEnv.get_other_options('engagementOptions'),
154
+ marshal: 0
155
+ },
156
+ layout: '1/4'
157
+ }, 门诊_胎儿_form, {
158
+ "name": "childUltrasounds",
159
+ "label": "",
160
+ "inputType": "ArrayPanel",
161
+ inputProps: {
162
+ marshal: 0,
163
+ targetLabelCol: 2,
164
+ tip: '胎儿超声',
165
+ formDescriptions: [{
166
+ layout: '1/4',
167
+ inputType: 'input',
168
+ label: 'BPD',
169
+ name: 'bpd',
170
+ unit: 'mm',
171
+ inputProps: {
172
+ type: 'number'
173
+ }
57
174
  }, {
58
- title: '诊断医生',
59
- dataIndex: 'doctor',
60
- key: 'doctor',
61
- width: 150,
62
- align: 'center'
175
+ layout: '1/4',
176
+ inputType: 'input',
177
+ label: '胎儿体重',
178
+ name: 'fetalweight',
179
+ unit: 'g',
180
+ inputProps: {
181
+ type: 'number'
182
+ }
183
+ }, {
184
+ layout: '1/4',
185
+ inputType: 'input',
186
+ label: 'AFV',
187
+ name: 'afv',
188
+ unit: 'mm',
189
+ inputProps: {
190
+ type: 'number'
191
+ }
63
192
  }, {
64
- title: '诊断日期',
65
- dataIndex: 'createdDate',
66
- key: 'createdDate',
67
- width: 200,
68
- align: 'center'
69
- }];
70
- return /*#__PURE__*/React.createElement(Table, {
71
- className: "prenatal-visit-main-table",
72
- columns: columns,
73
- dataSource: recordData,
74
- pagination: false
75
- });
76
- };
77
- var renderPrint = function renderPrint() {
78
- return /*#__PURE__*/React.createElement("div", {
79
- className: "diag-wrapper",
80
- ref: printDiagRef
81
- }, /*#__PURE__*/React.createElement("div", {
82
- style: {
83
- fontWeight: 700,
84
- fontSize: '18px',
85
- marginTop: '15px',
86
- marginLeft: '15px',
87
- marginBottom: '15px'
193
+ layout: '1/4',
194
+ inputType: 'input',
195
+ label: '脐血流',
196
+ name: 'ubf',
197
+ unit: 'mm',
198
+ inputProps: {
199
+ type: 'number'
88
200
  }
89
- }, /*#__PURE__*/React.createElement("span", null, get(headerInfo, 'name')), " \xA0\xA0\xA0\xA0", /*#__PURE__*/React.createElement("span", null, "\u5C31\u8BCA\u5361\u53F7\uFF1A", get(headerInfo, 'outpatientNO')), "\xA0\xA0\xA0\xA0", /*#__PURE__*/React.createElement("span", null, "\u5E74\u9F84\uFF1A", get(headerInfo, 'age'))), renderTable());
90
- };
91
- var buttons = [/*#__PURE__*/React.createElement(ReactToPrint, {
92
- trigger: function trigger() {
93
- return /*#__PURE__*/React.createElement(Button, {
94
- type: "primary"
95
- }, "\u6253\u5370\u6700\u65B0\u8BCA\u65AD");
201
+ }, {
202
+ layout: '1/5',
203
+ name: 'id',
204
+ form_hidden: true
205
+ }]
206
+ },
207
+ usr1: diag_filter_map.ultrasounds,
208
+ layout: '1/1'
209
+ }, {
210
+ label: '妊娠糖尿病',
211
+ usr1: diag_filter_map.diabetes,
212
+ children: [{
213
+ "key": "gdm.fbg",
214
+ "label": "FBG",
215
+ "inputType": "InputNumber",
216
+ "inputProps": {
217
+ 'unit': 'mmol/L'
218
+ },
219
+ layout: '1/4'
220
+ }, {
221
+ "key": "gdm.pbg2",
222
+ "label": "P2BG",
223
+ "inputType": "InputNumber",
224
+ "inputProps": {
225
+ 'unit': 'mmol/L'
226
+ },
227
+ layout: '1/4'
228
+ }, {
229
+ "key": "gdm.hbalc",
230
+ "label": "HbA1C",
231
+ "inputType": "InputNumber",
232
+ "inputProps": {
233
+ 'unit': '%'
234
+ },
235
+ layout: '1/4'
236
+ }, {
237
+ "key": "gdm.inslname",
238
+ "label": "胰岛素方案",
239
+ "inputType": "input",
240
+ layout: '1/1'
241
+ }]
242
+ }, {
243
+ label: '妊娠高血压',
244
+ usr1: diag_filter_map.hypertension,
245
+ children: [{
246
+ "key": "pih.quality",
247
+ "label": "尿蛋白-定性",
248
+ "inputType": "input",
249
+ layout: '1/4',
250
+ "isNewRow": 1
251
+ }, {
252
+ "key": "pih.quantity",
253
+ "label": "24H定量",
254
+ "inputType": "input",
255
+ layout: '1/4'
256
+ }, {
257
+ "key": "pih.medication",
258
+ "label": "用药方案",
259
+ "inputType": "MA",
260
+ "inputProps": {
261
+ 'options': '拉贝洛尔,硝苯地平,硫酸镁'
96
262
  },
97
- content: function content() {
98
- return printDiagRef.current;
263
+ layout: '1/2'
264
+ }]
265
+ }, {
266
+ label: '心脏病',
267
+ usr1: diag_filter_map.coronary,
268
+ children: [{
269
+ "key": "cardiacDisease.otherNote",
270
+ "label": "其他异常特征",
271
+ "inputType": "input",
272
+ layout: '1/1'
273
+ }, {
274
+ "key": "cardiacDisease.heartrate",
275
+ "label": "心率",
276
+ "inputType": "InputNumber",
277
+ "inputProps": {
278
+ 'unit': '次/分'
279
+ },
280
+ layout: '1/4',
281
+ "isNewRow": 1
282
+ }, {
283
+ "key": "cardiacDisease.medication",
284
+ "label": "用药情况",
285
+ "inputType": "input",
286
+ layout: '3/4'
287
+ }]
288
+ }, {
289
+ label: 'ICP',
290
+ usr1: diag_filter_map.ICP,
291
+ children: [{
292
+ "key": "icp.tba",
293
+ "label": "TBA",
294
+ "inputType": "InputNumber",
295
+ "inputProps": {
296
+ 'unit': 'umol/L'
297
+ },
298
+ layout: '1/4',
299
+ "isNewRow": 1
300
+ }, {
301
+ "key": "icp.alt",
302
+ "label": "ALT",
303
+ "inputType": "InputNumber",
304
+ "inputProps": {
305
+ 'unit': 'U/L'
306
+ },
307
+ layout: '1/4'
308
+ }, {
309
+ "key": "icp.ast",
310
+ "label": "AST",
311
+ "inputType": "InputNumber",
312
+ "inputProps": {
313
+ 'unit': 'U/L'
314
+ },
315
+ layout: '1/4'
316
+ }]
317
+ }, {
318
+ label: '甲减',
319
+ usr1: diag_filter_map.hypothyroidism,
320
+ children: [{
321
+ "key": "hypothyroidism.tsh",
322
+ "label": "TSH",
323
+ "inputType": "InputNumber",
324
+ "inputProps": {
325
+ 'unit': 'uIU/ml'
326
+ },
327
+ layout: '1/4',
328
+ "isNewRow": 1
329
+ }, {
330
+ "key": "hypothyroidism.t4",
331
+ "label": "游离T4",
332
+ "inputType": "InputNumber",
333
+ "inputProps": {
334
+ 'unit': 'pmol/L'
335
+ },
336
+ layout: '1/4'
337
+ }]
338
+ }, {
339
+ "key": "inspection",
340
+ "label": "检验检查",
341
+ "inputType": "textareaWithResult",
342
+ isActive: true,
343
+ "inputProps": {
344
+ 'rows': 2,
345
+ TemplateTextarea_type: [{
346
+ title: '检验结果',
347
+ url: '/api/getLabExamImportTree'
348
+ }, {
349
+ title: '超声结果',
350
+ url: '/api/getImageExamImportTree'
351
+ }],
352
+ gen_obj: function gen_obj() {
353
+ return {
354
+ pregnancyId: ctx.utils.single_id()
355
+ };
99
356
  }
100
- })];
101
- return /*#__PURE__*/React.createElement(Modal, {
102
- className: "diag-record-modal",
103
- width: "80%",
104
- footer: buttons,
105
- title: "\u8BCA\u65AD\u5386\u53F2",
106
- visible: isShowHisModal,
107
- onCancel: handleCancel
108
- }, renderTable(), renderPrint());
109
- }
110
- export { diagTable as default };
357
+ },
358
+ layout: '1/2',
359
+ "isNewRow": 1
360
+ }, {
361
+ "key": "exam",
362
+ "label": "辅助检查",
363
+ "inputType": "textareaWithTemplate",
364
+ inputProps: {
365
+ TemplateTextarea_type: [{
366
+ title: '个人',
367
+ type: 14
368
+ }, {
369
+ title: '科室',
370
+ type: 13,
371
+ depid: 2
372
+ }]
373
+ },
374
+ layout: '1/2'
375
+ }, {
376
+ "key": "prescription",
377
+ "label": "处理措施",
378
+ "inputType": "textareaWithTemplate",
379
+ inputProps: {
380
+ TemplateTextarea_type: [{
381
+ title: '个人',
382
+ type: 7
383
+ }, {
384
+ title: '科室',
385
+ type: 6,
386
+ depid: 2
387
+ }]
388
+ },
389
+ layout: '1/2'
390
+ }, {
391
+ "key": "appointmentType",
392
+ "label": "下次复诊",
393
+ "inputType": "select",
394
+ "inputProps": {
395
+ 'options': mchcEnv.get_other_options('appointmentTypeOptions'),
396
+ marshal: 0
397
+ },
398
+ layout: '1/4',
399
+ "isNewRow": 1
400
+ }, {
401
+ "key": "appointmentCycle",
402
+ "label": "",
403
+ "inputType": "select",
404
+ "inputProps": {
405
+ 'options': mchcEnv.get_other_options('appointmentCycleOptions'),
406
+ marshal: 0
407
+ },
408
+ "span": 2
409
+ }, {
410
+ "key": "appointmentDate",
411
+ "label": "",
412
+ "inputType": "DatePicker",
413
+ required: true,
414
+ "span": 3
415
+ }, {
416
+ "key": "appointmentPeriod",
417
+ "label": "",
418
+ isActive: !mchcEnv["in"](['广州市八']),
419
+ "inputType": "select",
420
+ "inputProps": {
421
+ 'options': mchcEnv.get_other_options('appointmentPeriodOptions'),
422
+ marshal: 0
423
+ },
424
+ "span": 2
425
+ }]);
426
+ export { _default as default };