From 0c38db7065c503b6d4cc11ced0b6077b7db880b7 Mon Sep 17 00:00:00 2001 From: chenqi Date: Mon, 22 Jun 2026 11:31:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(db):=20V104=E8=BF=81=E7=A7=BB=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E5=9C=A8healthlink=5Fhis=20schema=E4=B8=8A=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=82=A3=E8=80=85=E4=BF=A1=E6=81=AF=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../V104__add_patient_info_to_emr_search_index_hisdev.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V104__add_patient_info_to_emr_search_index_hisdev.sql diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V104__add_patient_info_to_emr_search_index_hisdev.sql b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V104__add_patient_info_to_emr_search_index_hisdev.sql new file mode 100644 index 000000000..ee8c1418d --- /dev/null +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V104__add_patient_info_to_emr_search_index_hisdev.sql @@ -0,0 +1,8 @@ +-- V104__add_patient_info_to_emr_search_index_hisdev.sql +-- 在 healthlink_his schema 上添加患者信息字段 + +ALTER TABLE emr_search_index ADD COLUMN IF NOT EXISTS patient_gender VARCHAR(10); +ALTER TABLE emr_search_index ADD COLUMN IF NOT EXISTS patient_age VARCHAR(10); +ALTER TABLE emr_search_index ADD COLUMN IF NOT EXISTS patient_phone VARCHAR(20); +ALTER TABLE emr_search_index ADD COLUMN IF NOT EXISTS patient_id_card VARCHAR(20); +ALTER TABLE emr_search_index ADD COLUMN IF NOT EXISTS encounter_no VARCHAR(50);