-- Tóm tắt xuất viện
INSERT INTO note (
note_id, person_id, note_date,
note_type_concept_id, note_class_concept_id,
note_title, note_text,
encoding_concept_id, language_concept_id,
provider_id, visit_occurrence_id
) VALUES (
160001, 100001, '2024-06-20',
32817, -- EHR
44814637, -- Discharge summary
'TÓM TẮT XUẤT VIỆN',
'Bệnh nhân nam, 55 tuổi, nhập viện vì đau ngực. '
|| 'Chẩn đoán: Nhồi máu cơ tim cấp. '
|| 'Đã can thiệp mạch vành, đặt 2 stent. '
|| 'Xuất viện ngày 20/06/2024 với đơn thuốc: '
|| 'Aspirin 81mg, Clopidogrel 75mg, Atorvastatin 40mg. '
|| 'Tái khám sau 1 tháng.',
32678, -- UTF-8
4181730, -- Vietnamese
5001, 50001
);
4.NOTE_NLP-NLP處理結果
專欄
類型
必填
說明
note_nlp_id
大智
✅ PK
身分證
note_id
整數
✅ FK
原文
section_concept_id
整數
部份(HPI、評估...)
snippet
VARCHAR(250)
摘錄文字
offset
VARCHAR(50)
註解中的位置
lexical_variant
VARCHAR(250)
✅
字根/片語
note_nlp_concept_id
整數
✅
概念發現
note_nlp_source_concept_id
整數
nlp_system
VARCHAR(250)
名稱 NLP 工具
nlp_date
日期
✅
NLP 跑步日
nlp_datetime
日期時間
term_exists
VARCHAR(1)
VARCHAR(1)
term_temporal
VARCHAR(50)
過去/現在/未來
term_modifiers
VARCHAR(2000)
修飾語(否定、家族...)
-- NLP phát hiện "Nhồi máu cơ tim" từ tóm tắt xuất viện
INSERT INTO note_nlp (
note_nlp_id, note_id,
snippet, offset, lexical_variant,
note_nlp_concept_id,
nlp_system, nlp_date,
term_exists, term_temporal
) VALUES (
170001, 160001,
'Chẩn đoán: Nhồi máu cơ tim cấp',
'120-153',
'nhồi máu cơ tim cấp',
4329847, -- SNOMED: AMI
'cTAKES-VN', '2024-07-01',
'Y', -- Có (không phải negation)
'Present' -- Hiện tại
);
5. 何時使用哪一個表格?
Dữ liệu gốc
│
├── Thiết bị gắn/cấy trên BN ──→ DEVICE_EXPOSURE
│ (stent, pacemaker, kính)
│
├── Mẫu bệnh phẩm ──────────→ SPECIMEN
│ (máu, nước tiểu, mô)
│
├── Văn bản tự do ───────────→ NOTE
│ (tóm tắt xuất viện,
│ biên bản phẫu thuật)
│
└── Kết quả NLP từ NOTE ─────→ NOTE_NLP
(concepts phát hiện tự động)