提交正式官网
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
# 在服务器 SSH 窗口执行此脚本,授权本机免密上传
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKJYa/Qgyo/IXHVY34XYcvBQeO0ylykDFMWCm9lhFPm9 administrator@WIN-4NE4GC1BQ9E' >> ~/.ssh/authorized_keys
|
||||
chmod 600 ~/.ssh/authorized_keys
|
||||
echo "部署密钥已添加"
|
||||
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": "role_1",
|
||||
"name": "超级管理员",
|
||||
"code": "super_admin",
|
||||
"description": "拥有系统所有权限",
|
||||
"is_built_in": 1,
|
||||
"status": "active",
|
||||
"menu_ids": "[\"menu_dash_dir\",\"menu_dash_home\",\"menu_msg_dir\",\"menu_msg_assessment\",\"menu_msg_assessment_view\",\"menu_msg_assessment_delete\",\"menu_msg_partner\",\"menu_msg_partner_view\",\"menu_msg_partner_delete\",\"menu_sys_dir\",\"menu_sys_role\",\"menu_sys_role_view\",\"menu_sys_user\",\"menu_sys_user_add\",\"menu_sys_user_edit\",\"menu_sys_user_delete\",\"menu_sys_user_view\",\"menu_seo_dir\",\"menu_seo_list\",\"menu_seo_edit\"]",
|
||||
"create_time": "2026-06-26 02:20:42",
|
||||
"update_time": "2026-06-29 10:25:40"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"id": "user_1",
|
||||
"username": "admin",
|
||||
"password": "7fef6171469e80d32c0559f88b377245",
|
||||
"name": "超级管理员",
|
||||
"avatar": null,
|
||||
"phone": null,
|
||||
"email": "admin@umedglobal.com",
|
||||
"role_id": "role_1",
|
||||
"status": "active",
|
||||
"is_built_in": 1,
|
||||
"bio": null,
|
||||
"tags": null,
|
||||
"create_time": "2026-06-26 02:20:42",
|
||||
"update_time": "2026-06-26 03:09:09"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,94 @@
|
||||
1|Alipay Setup Guide for Digital Payments: Medical Tourism in China
|
||||
2|China’s consumer economy operates predominantly on a digital payment infrastructure, with mobile applications like Alipay and WeChat Pay managing the vast majority of daily transactions. For patients navigating medical tourism in China, integrating with these platforms is a necessary step for managing out-of-pocket expenses, local transport, and daily logistics. Traditional international payment methods, such as physical bank cards, frequently experience compatibility limitations with local point-of-sale systems outside major international hubs.
|
||||
3|
|
||||
4|To address these infrastructural barriers, Chinese regulatory bodies have recently established integration mechanisms for international arrivals. These system updates allow overseas visitors to link standard foreign bank cards directly to domestic mobile payment applications. This structural optimization standardizes the payment procedure for foreign nationals, facilitating reliable transaction processing for accommodation, transportation, and medical concierge logistics.
|
||||
6|Alipay: Primary Digital Payment Infrastructure for International Patients
|
||||
7|Alipay, developed by Ant Financial, is a foundational mobile payment solution in China with an active user base exceeding one billion. The platform facilitates comprehensive digital transactions, including online and offline payments, bill settlement, and transportation procurement. For those navigating medical tourism in China, utilizing this system is a practical requirement for the efficient management of hospital expenses, local transit, and residential logistics.
|
||||
9|Standard Registration and Regulatory Verification
|
||||
11|Application Acquisition: The official Alipay application is available via the Google Play Store, Apple App Store, and the developer's primary website. Pre-departure installation and configuration are recommended to ensure functional availability immediately upon arrival in China.
|
||||
14|Language Localization: The platform provides localized interfaces for international users, including English. If the application is installed outside of mainland China, it is designed to default to the international version.
|
||||
17|Account Registration: Users must register using a valid international mobile number to receive a required SMS verification code and establish security credentials. While the platform supports foreign numbers, registration success rates may vary by carrier; in certain instances, a local Chinese number may be required for full account activation.
|
||||
20|Identity Verification Protocols: To comply with Chinese financial regulations, users are required to undergo a Know Your Customer (KYC) process. This involves submitting digital scans of a valid passport and, depending on the status, additional documentation such as a visa or residence permit. While verification often completes within 24 hours, users should allow several business days for processing during periods of high volume.
|
||||
23|Financial Integration: Linking International Payment Methods
|
||||
24|Managing logistics for medical tourism in China requires a functional mobile payment setup. While the digital landscape is highly integrated, international patients have several validated methods for securing transaction capabilities.
|
||||
26|Direct Integration of International Cards
|
||||
27|The primary method for most international arrivals is the direct linking of foreign-issued credit or debit cards to the Alipay platform.
|
||||
29|Supported Networks: Current system updates permit the integration of most mainstream international networks, including Visa, Mastercard, Diners Club, Discover, JCB, and UnionPay.
|
||||
32|Procedure: Access the "Me" section of the application, navigate to "Bank Cards," and input the required card details.
|
||||
35|Verification: A small, refundable charge is typically processed to verify the card's validity.
|
||||
38|Data Accuracy: It is essential that the information entered matches the cardholder’s bank records exactly, particularly the inclusion of middle names and correct international area codes for associated phone numbers.
|
||||
41|Security Protocol: Transactions processed via linked cards require the entry of a 6-digit payment password (PIN) for each instance.
|
||||
44|Technical Note: If a specific card is declined by the processor, it is standard practice to attempt the link with an alternative card from a different issuing bank.
|
||||
47|Secondary Option: Virtual Account via TourCard
|
||||
48|For users whose primary bank cards are incompatible with direct linking, the TourCard mini-app provides a secondary logistical solution.
|
||||
50|Functionality: This service generates a temporary virtual bank account within China, valid for a 180-day period.
|
||||
53|Supported Funding: The virtual account can be funded using Visa, Mastercard, Diners Club International, or JCB.
|
||||
56|Constraints and Fees: * Funding Limit: The account is capped at a maximum top-up of 10,000 CNY (approximately $1,400 USD) for the duration of the 180-day cycle.
|
||||
59|Service Fees: A 5% service charge is applied to each top-up transaction.
|
||||
62|Renewal: Once the 10,000 CNY limit is reached, the user must wait for the 180-day period to expire before a new TourCard can be initialized.
|
||||
65|Activation: To utilize this service, users must search for "TourCard" within the Alipay interface and complete a secondary ID verification involving passport documentation.
|
||||
68|Alternative Funding and "Balance" Limitations
|
||||
69|It is important to distinguish between paying with a linked card and the "Alipay Balance" feature.
|
||||
71|Top-Up Restrictions: International credit cards cannot be used to directly fund the "Alipay Balance".
|
||||
74|Chinese Bank Accounts: Patients with an existing Chinese bank account may transfer funds directly into their digital balance.
|
||||
77|Peer-to-Peer Transfers: A common method for smaller logistical needs involves a domestic contact transferring funds to the patient's Alipay account, followed by a reimbursement via other means.
|
||||
79|Transaction Methods and Utility via Alipay
|
||||
80|QR Code Transactions
|
||||
81|QR-based payments constitute the standard method for financial transactions in China. Users typically utilize two primary operational modes:
|
||||
83|Merchant-Presented QR (Scanning): Users activate the "Scan" function to capture a merchant’s QR code, enter the required currency amount, and authorize the payment.
|
||||
86|User-Presented QR (Merchant Scans): Users access the "Pay/Receive" interface to display a personal QR code. The merchant scans this code to initiate the transaction, which the user then verifies, typically via a 6-digit PIN.
|
||||
88|
|
||||
90|Digital and Administrative Payments
|
||||
91|Alipay is integrated into the checkout infrastructure of major domestic e-commerce platforms. For desktop-based transactions, the platform generates a QR code for mobile authentication. Additionally, the application supports administrative payments for mobile service top-ups and utility management.
|
||||
92|
|
||||
93|Transportation and Patient Logistics
|
||||
94|Navigating urban centers is a critical component of medical tourism in China. Alipay is a recognized payment method for taxis and municipal public transport systems, including metro and bus networks in major medical hubs like Beijing and Shanghai. Patients can settle taxi fares via the driver's QR code or activate a city-specific digital transportation card within the application by providing necessary identity details.
|
||||
95|
|
||||
96|Integrated Service Ecosystem
|
||||
97|Beyond financial transactions, the platform provides access to essential logistical services. This includes car-hailing (Didi), bicycle rentals, and shared power resources. To facilitate navigation for international visitors, the application incorporates functional tools such as real-time currency exchange rates and translation features.
|
||||
98|Alipay Transaction Constraints for International Patients
|
||||
99|While mobile payment integration is a cornerstone of logistics for medical tourism in China, international users should be aware of specific platform constraints regarding Alipay. These parameters are dictated by domestic financial regulations and technical infrastructure.
|
||||
101|Commercial Transaction Focus: International accounts are restricted to commercial transactions with verified businesses. Peer-to-peer (P2P) transfers—sending or receiving funds from private individuals—are currently unavailable for foreign users.
|
||||
104|Liquidity and Withdrawals: The application does not facilitate direct cash withdrawals from linked international bank accounts.
|
||||
107|Geographic Scope: Transaction capabilities are primarily optimized for domestic payments within mainland China.
|
||||
110|Balance Capitalization: Users cannot directly transfer funds from an international credit card to their Alipay "Balance". Payment is instead processed via direct card-linking or through the TourCard mini-app.
|
||||
113|Connectivity Requirements: Active internet connectivity is mandatory for real-time transaction processing.
|
||||
116|Merchant Compatibility: Certain individual vendors utilize personal QR codes that may not accept international credit cards. In these instances, patients may need to utilize an alternative payment method or a vendor-provided commercial code.
|
||||
119|Fee Structure: Alipay does not typically impose additional surcharges for transactions using linked international cards. However, users should verify potential foreign transaction fees with their specific card issuer. Note that the TourCard service maintains a 5% service charge on all top-ups.
|
||||
121|Payment Infrastructure Challenges for International Patients
|
||||
122|The high saturation of mobile payment systems in China presents specific logistical challenges for international arrivals accustomed to bank card transactions.
|
||||
124|Operational Costs and Merchant Preferences: Domestic merchants often prioritize digital payments over physical credit cards due to significant differences in transaction fees. Cross-border credit card fees range from 2.5% to 3.5%, whereas domestic card fees are approximately 0.6% and Alipay transactions are 0.38%.
|
||||
127|Currency and Cash Limitations: While cash remains legal tender, its practical use is declining. Many vendors do not maintain sufficient physical currency to provide change, which can lead to the refusal of cash transactions.
|
||||
130|Card Processing Compatibility: Point-of-Sale (POS) infrastructure in many regions lacks the hardware to process international networks such as Visa, Mastercard, or Apple Pay. While municipal programs in hubs like Shanghai have expanded POS availability since late 2023, infrastructure remains primarily focused on domestic networks.
|
||||
133|Digital Dependency in Transportation: Payment for local transit, particularly taxis, is almost exclusively managed via car-hailing applications and QR codes. Drivers frequently lack the equipment to process cards or the cash reserves to facilitate manual transactions.
|
||||
136|Data and Privacy Requirements: International users must provide real-name identity verification—typically involving passport documentation—to satisfy domestic financial regulations. This is a necessary step for those utilizing mobile payment platforms for significant medical or travel expenses.
|
||||
139|Operational Recommendation: To ensure reliable transaction capabilities throughout a medical journey, patients should install and verify both Alipay and WeChat Pay. Maintaining both platforms serves as a contingency measure, as vendor compatibility can vary between the two systems.
|
||||
140|UMedGlobal provides logistical coordination for the practical requirements of Medical Tourism in China, including payment integration and administrative navigation. We facilitate communication with specialized medical institutions and manage the logistical components of the patient journey to maintain operational efficiency.
|
||||
141|Regulatory and Infrastructural Framework for Medical Tourism in China
|
||||
142|To facilitate international medical travel, Chinese authorities have implemented a series of structural reforms designed to streamline entry and transaction procedures for foreign nationals. These measures aim to standardize the logistical experience for patients, from visa acquisition to local healthcare payment processing.
|
||||
143|
|
||||
144|Key Infrastructural Measures:
|
||||
146|Mobile Payment Integration: In July 2023, the primary mobile payment architectures—Alipay and WeChat Pay—underwent comprehensive system upgrades to support the direct linking of international bank cards.
|
||||
149|Policy Directives: The State Council and the People's Bank of China issued formal "Opinions on Further Optimizing Payment Services," establishing a regulatory focus on accessibility for international arrivals.
|
||||
152|Terminal Port Assistance: Dedicated service centers have been established at major aviation hubs, including Beijing Capital (PEK) and Daxing (PKX), to assist with mobile application configuration and RMB currency exchange.
|
||||
155|Expansion of Card Acceptance: Significant regional expansions of point-of-sale (POS) terminals supporting foreign cards have occurred in major medical hubs like Shanghai and Zhejiang, where merchant coverage for international cards now exceeds 90%.
|
||||
158|Administrative Visa Streamlining: Simplified protocols for international exchanges include shortened application forms, fee reductions, and expanded visa-free entry for citizens of selected countries.
|
||||
161|The efficacy of these systemic updates is supported by data from Q4 2023, which recorded 35 million mobile payment transactions by inbound travelers, totaling approximately 5 billion CNY. During the same period, inbound travel volume recovered to 62.9% of 2019 baseline levels, indicating a stabilized environment for international medical travel.
|
||||
162|Frequently Asked Questions (FAQ)
|
||||
163|Q: Can I use my existing international credit card for medical and logistical expenses in China?
|
||||
164|A: Yes. The Alipay platform currently supports the direct integration of major international networks, including Visa, Mastercard, Diners Club, Discover, and JCB. By linking your card directly to the application, you can process payments for hospital fees, transportation, and daily transactions without requiring a local Chinese bank account.
|
||||
165|
|
||||
166|Q: Are there additional transaction fees when using a foreign card on Alipay?
|
||||
167|A: Alipay typically does not impose additional platform surcharges for transactions processed through directly linked international cards. However, patients should consult their specific credit card issuer regarding potential foreign transaction fees. If utilizing the alternative TourCard mini-app, a 5% service charge is applied to all account top-up transactions.
|
||||
168|
|
||||
169|Q: Do I need a Chinese phone number to register for an Alipay account?
|
||||
170|A: Account registration can generally be initiated using a valid international mobile number to receive the necessary SMS verification code. While most foreign numbers are supported by the system, international carrier success rates can vary. In certain instances, acquiring a local Chinese phone number may be required for full account activation and identity verification.
|
||||
171|
|
||||
172|Q: Can I rely on physical bank cards or cash instead of mobile payment applications?
|
||||
173|A: While major medical hubs like Shanghai have expanded Point-of-Sale (POS) infrastructure for foreign cards, domestic mobile applications remain the primary operational standard across the country. Physical cash usage is significantly declining, and vendors frequently lack the necessary physical currency to provide change. Establishing a mobile payment setup is strongly recommended to ensure reliable transaction capabilities throughout your medical journey.
|
||||
174|
|
||||
175|Q: Can I transfer funds directly to other individuals (P2P) using my international Alipay account?
|
||||
176|A: No. Under current domestic financial regulations, international Alipay accounts are strictly limited to commercial transactions with verified business entities. Peer-to-peer (P2P) transfers—such as sending or receiving funds from private individuals—are currently restricted for foreign users.
|
||||
177|Professional Coordination for Medical Tourism in China
|
||||
178|Navigating an international healthcare system involves complex administrative and logistical requirements. UMedGlobal serves as a specialized medical concierge and logistics coordinator, facilitating patient access to China’s leading medical institutions. We provide structured support for hospital referrals, specialist consultations, and the integration of domestic digital payment systems to ensure all non-clinical aspects of your journey are managed according to professional standards. By addressing these practical barriers, we enable international patients to focus exclusively on their clinical care pathways.
|
||||
179|Begin Preliminary Assessment
|
||||
@@ -0,0 +1,321 @@
|
||||
"""从 Excel + 25家医院照片合集 生成 hospitals-content.ts 并复制图片到 public。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import re
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
from hospitals_en_maps import (
|
||||
dept_en,
|
||||
expert_label_en,
|
||||
hospital_intro_en,
|
||||
hospital_name_en,
|
||||
name_to_pinyin,
|
||||
)
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
WEB = ROOT / "web"
|
||||
EXCEL_JSON = WEB / "scripts" / "hospitals-excel-raw.json"
|
||||
PHOTOS_ROOT = None
|
||||
for d in ROOT.iterdir():
|
||||
if d.is_dir() and "25" in d.name and "医院" in d.name:
|
||||
inner = d / d.name if (d / d.name).is_dir() else d
|
||||
for sub in d.iterdir():
|
||||
if sub.is_dir() and "25" in sub.name:
|
||||
PHOTOS_ROOT = sub
|
||||
break
|
||||
if PHOTOS_ROOT is None:
|
||||
PHOTOS_ROOT = d
|
||||
break
|
||||
|
||||
OUT_DATA = WEB / "data" / "hospitals-content.ts"
|
||||
OUT_HOSPITALS = WEB / "public" / "images" / "hospitals"
|
||||
OUT_DOCTORS = WEB / "public" / "images" / "doctors"
|
||||
EXPERT_INFO_EN = WEB / "scripts" / "doctor-expert-info-en.json"
|
||||
|
||||
FOLDER_TO_HOSPITAL: dict[str, str] = {
|
||||
"中山一院图": "中山大学附属第一医院(越秀院区、南沙院区)",
|
||||
"广东省人民医院": "广东省人民医院",
|
||||
"广东省妇幼保健院": "广东省妇幼保健院",
|
||||
"孙逸仙纪念医院": "中山大学孙逸仙纪念医院",
|
||||
"中山三院": "中山大学附属第三医院",
|
||||
"中山大学中山眼科中心": "中山大学中山眼科中心",
|
||||
"中山肿瘤": "中山大学肿瘤防治中心",
|
||||
"中大口腔": "中山大学附属口腔医院",
|
||||
"中山六院": "中山大学附属第六医院",
|
||||
"南方医院": "南方医科大学南方医院",
|
||||
"珠江医院": "南方医科大学珠江医院",
|
||||
"暨大附一院": "暨南大学附属第一医院",
|
||||
"广东省中医院": "广东省中医院",
|
||||
"汕大附一院": "汕头大学医学院第一附属医院",
|
||||
"广医附一院": "广州医科大学附属第一医院",
|
||||
"广州市一院": "广州市第一人民医院",
|
||||
"广妇儿中心": "广州医科大学附属妇女儿童医疗中心",
|
||||
"深圳人医": "深圳市人民医院",
|
||||
"北大深圳": "北京大学深圳医院",
|
||||
"港大深圳": "香港大学深圳医院",
|
||||
"南方深圳": "南方医科大学深圳医院",
|
||||
"中山5院": "中山大学附属第五医院",
|
||||
"珠海人民医院": "珠海市人民医院",
|
||||
"祈福医院": "广东祈福医院",
|
||||
"佛山复星": "佛山复星禅诚医院",
|
||||
"湘雅二院": "中南大学湘雅二医院",
|
||||
}
|
||||
|
||||
HOSPITAL_IMAGE_HINTS = (
|
||||
"医院",
|
||||
"院.png",
|
||||
"院.jpg",
|
||||
"院.jpeg",
|
||||
"院.webp",
|
||||
"一院",
|
||||
"肿瘤",
|
||||
"口腔",
|
||||
"眼科",
|
||||
"妇儿",
|
||||
"人民",
|
||||
"祈福",
|
||||
"复星",
|
||||
"禅城",
|
||||
)
|
||||
|
||||
|
||||
def extract_doctor_name(expert: str) -> str:
|
||||
expert = expert.strip()
|
||||
if not expert:
|
||||
return expert
|
||||
# 去掉常见前缀职称/科室描述,取末尾 2-4 个汉字为人名
|
||||
m = re.search(r"([\u4e00-\u9fff]{2,4})$", expert)
|
||||
if m:
|
||||
return m.group(1)
|
||||
parts = expert.split()
|
||||
return parts[-1] if parts else expert
|
||||
|
||||
|
||||
def is_hospital_image(filename: str, folder_name: str = "") -> bool:
|
||||
stem = Path(filename).stem
|
||||
if folder_name and (stem == folder_name or folder_name in stem):
|
||||
return True
|
||||
if any(h in filename for h in HOSPITAL_IMAGE_HINTS):
|
||||
return True
|
||||
for hint in ("院", "医院", "中心", "附一", "人民", "肿瘤", "口腔", "眼科", "妇儿", "祈福", "复星", "深圳", "禅城"):
|
||||
if hint in stem and len(stem) <= 14:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def find_doctor_file(folder: Path, name: str) -> str | None:
|
||||
for f in folder.iterdir():
|
||||
if not f.is_file() or f.name.startswith("."):
|
||||
continue
|
||||
if is_hospital_image(f.name, folder.name):
|
||||
continue
|
||||
stem = f.stem.split("251219")[0] # 孙颖251219.jpg
|
||||
if name in stem or stem in name or stem.endswith(name) or name in f.stem:
|
||||
return f.name
|
||||
if name == stem or name in stem.replace(" ", ""):
|
||||
return f.name
|
||||
# 模糊:文件名包含人名
|
||||
for f in folder.iterdir():
|
||||
if not f.is_file() or f.name.startswith(".") or is_hospital_image(f.name, folder.name):
|
||||
continue
|
||||
if name in f.stem:
|
||||
return f.name
|
||||
return None
|
||||
|
||||
|
||||
def find_hospital_image(folder: Path) -> str | None:
|
||||
candidates = []
|
||||
for f in folder.iterdir():
|
||||
if not f.is_file() or f.name.startswith("."):
|
||||
continue
|
||||
if is_hospital_image(f.name, folder.name):
|
||||
candidates.append(f.name)
|
||||
if not candidates:
|
||||
return None
|
||||
# 优先 png/webp/jpg 里最短文件名(通常是医院主图)
|
||||
candidates.sort(key=lambda x: (len(x), x))
|
||||
return candidates[0]
|
||||
|
||||
|
||||
def parse_excel() -> list[dict]:
|
||||
with open(EXCEL_JSON, encoding="utf-8") as fh:
|
||||
rows = json.load(fh)
|
||||
hospitals: list[dict] = []
|
||||
current: dict | None = None
|
||||
for row in rows[1:]:
|
||||
cells = (row + [None] * 9)[:9]
|
||||
h, dept, expert, _hospital_en, _idx, expert_info, intro, url, cert = cells
|
||||
if h:
|
||||
if current:
|
||||
hospitals.append(current)
|
||||
current = {
|
||||
"name": h,
|
||||
"intro": intro or "",
|
||||
"url": url or "",
|
||||
"cert": cert or "",
|
||||
"doctors": [],
|
||||
}
|
||||
if current and expert:
|
||||
current["doctors"].append(
|
||||
{
|
||||
"department": dept or "",
|
||||
"expert": expert,
|
||||
"name": extract_doctor_name(expert),
|
||||
"expertInfo": (expert_info or "").strip() or None,
|
||||
}
|
||||
)
|
||||
if current:
|
||||
hospitals.append(current)
|
||||
return hospitals
|
||||
|
||||
|
||||
def main() -> None:
|
||||
if PHOTOS_ROOT is None:
|
||||
raise SystemExit("找不到 25家医院照片合集 目录")
|
||||
|
||||
excel_hospitals = parse_excel()
|
||||
name_to_excel = {h["name"]: h for h in excel_hospitals}
|
||||
expert_info_en = json.loads(EXPERT_INFO_EN.read_text(encoding="utf-8")) if EXPERT_INFO_EN.is_file() else {}
|
||||
|
||||
OUT_HOSPITALS.mkdir(parents=True, exist_ok=True)
|
||||
OUT_DOCTORS.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
hospitals_out: list[dict] = []
|
||||
doctors_out: list[dict] = []
|
||||
|
||||
for folder_name, hospital_name in FOLDER_TO_HOSPITAL.items():
|
||||
folder = PHOTOS_ROOT / folder_name
|
||||
if not folder.is_dir():
|
||||
raise SystemExit(f"缺少照片目录: {folder_name}")
|
||||
|
||||
excel = name_to_excel.get(hospital_name)
|
||||
if not excel:
|
||||
raise SystemExit(f"Excel 中未找到医院: {hospital_name}")
|
||||
|
||||
hid = folder_name
|
||||
hosp_img = find_hospital_image(folder)
|
||||
if not hosp_img:
|
||||
raise SystemExit(f"未找到医院主图: {folder_name}")
|
||||
|
||||
ext = Path(hosp_img).suffix.lower()
|
||||
dest_hosp = f"{hid}{ext}"
|
||||
shutil.copy2(folder / hosp_img, OUT_HOSPITALS / dest_hosp)
|
||||
|
||||
intro = hospital_intro_en(hospital_name, excel.get("cert") or None)
|
||||
display_hospital_name = hospital_name_en(hospital_name)
|
||||
|
||||
hospitals_out.append(
|
||||
{
|
||||
"id": hid,
|
||||
"name": display_hospital_name,
|
||||
"intro": intro,
|
||||
"url": excel["url"],
|
||||
"image": f"/images/hospitals/{dest_hosp}",
|
||||
}
|
||||
)
|
||||
|
||||
for doc in excel["doctors"]:
|
||||
dname_zh = doc["name"]
|
||||
dname_en = name_to_pinyin(dname_zh)
|
||||
photo = find_doctor_file(folder, dname_zh)
|
||||
if not photo:
|
||||
print(f"WARN: 无照片 {folder_name} / {dname_zh} ({doc['expert']})")
|
||||
photo = "placeholder.jpg"
|
||||
|
||||
did = f"{hid}-{dname_zh}"
|
||||
if photo != "placeholder.jpg":
|
||||
ext_d = Path(photo).suffix.lower()
|
||||
dest_doc = f"{did}{ext_d}"
|
||||
shutil.copy2(folder / photo, OUT_DOCTORS / dest_doc)
|
||||
image_path = f"/images/doctors/{dest_doc}"
|
||||
else:
|
||||
image_path = "/images/doctor.jpg"
|
||||
|
||||
record = {
|
||||
"id": did,
|
||||
"name": dname_en,
|
||||
"department": dept_en(doc["department"]),
|
||||
"hospitalId": hid,
|
||||
"hospitalName": display_hospital_name,
|
||||
"image": image_path,
|
||||
"expertLabel": expert_label_en(doc["department"], dname_en),
|
||||
}
|
||||
expert_info = doc.get("expertInfo")
|
||||
if expert_info:
|
||||
record["expertInfo"] = expert_info_en.get(did, expert_info)
|
||||
doctors_out.append(record)
|
||||
|
||||
# 指定优先排序(按 id),其余按英文名字母顺序顺延
|
||||
PRIORITY_ORDER = ["祈福医院", "珠江医院", "广州市一院", "孙逸仙纪念医院", "广东省中医院"]
|
||||
priority_rank = {hid: i for i, hid in enumerate(PRIORITY_ORDER)}
|
||||
hospitals_out.sort(
|
||||
key=lambda x: (priority_rank.get(x["id"], len(PRIORITY_ORDER)), x["name"])
|
||||
)
|
||||
doctors_out.sort(key=lambda x: (x["hospitalName"], x["name"]))
|
||||
# 指定优先排序(按 id),其余保持 (hospitalName, name) 顺序顺延
|
||||
DOCTOR_PRIORITY_ORDER = [
|
||||
"广东省人民医院-吴一龙",
|
||||
"广东省人民医院-钟文昭",
|
||||
"中山大学中山眼科中心-陈伟蓉",
|
||||
"中山肿瘤-马骏",
|
||||
"中山肿瘤-孙颖",
|
||||
"广医附一院-何健行",
|
||||
"南方医院-侯凡凡",
|
||||
"广妇儿中心-陈欣欣",
|
||||
"广医附一院-曾国华",
|
||||
]
|
||||
doctor_rank = {did: i for i, did in enumerate(DOCTOR_PRIORITY_ORDER)}
|
||||
indexed_docs = list(enumerate(doctors_out))
|
||||
|
||||
def doctor_sort_key(item: tuple[int, dict]) -> tuple[int, int]:
|
||||
idx, doc = item
|
||||
return (doctor_rank.get(doc["id"], len(DOCTOR_PRIORITY_ORDER)), idx)
|
||||
|
||||
indexed_docs.sort(key=doctor_sort_key)
|
||||
doctors_out = [doc for _, doc in indexed_docs]
|
||||
|
||||
ts_lines = [
|
||||
"/** Auto-generated by web/scripts/build-hospitals-data.py — do not edit manually */",
|
||||
"",
|
||||
"export type HospitalRecord = {",
|
||||
" id: string",
|
||||
" name: string",
|
||||
" intro: string",
|
||||
" url: string",
|
||||
" image: string",
|
||||
"}",
|
||||
"",
|
||||
"export type DoctorRecord = {",
|
||||
" id: string",
|
||||
" name: string",
|
||||
" department: string",
|
||||
" hospitalId: string",
|
||||
" hospitalName: string",
|
||||
" image: string",
|
||||
" /** Full specialist title for future hover bio */",
|
||||
" expertLabel: string",
|
||||
" /** Specialist bio — shown when available */",
|
||||
" expertInfo?: string",
|
||||
"}",
|
||||
"",
|
||||
f"export const hospitals: HospitalRecord[] = {json.dumps(hospitals_out, ensure_ascii=False, indent=2)}",
|
||||
"",
|
||||
f"export const doctors: DoctorRecord[] = {json.dumps(doctors_out, ensure_ascii=False, indent=2)}",
|
||||
"",
|
||||
"export function getHospitalById(id: string): HospitalRecord | undefined {",
|
||||
" return hospitals.find((h) => h.id === id)",
|
||||
"}",
|
||||
"",
|
||||
"export function getDoctorsByHospitalId(hospitalId: string): DoctorRecord[] {",
|
||||
" return doctors.filter((d) => d.hospitalId === hospitalId)",
|
||||
"}",
|
||||
"",
|
||||
]
|
||||
OUT_DATA.write_text("\n".join(ts_lines), encoding="utf-8")
|
||||
print(f"OK: {len(hospitals_out)} hospitals, {len(doctors_out)} doctors -> {OUT_DATA}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,182 @@
|
||||
"""从 Excel 原始数据生成医院/专家中文 locale 文件(与 hospitals-content.ts 的 id 对齐)。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
WEB = ROOT / "web"
|
||||
EXCEL_JSON = WEB / "scripts" / "hospitals-excel-raw.json"
|
||||
OUT_NAMES = WEB / "data" / "locale" / "zh" / "hospitals-names.zh.ts"
|
||||
OUT_INTROS = WEB / "data" / "locale" / "zh" / "hospitals-intros.zh.ts"
|
||||
OUT_DOCTORS = WEB / "data" / "locale" / "zh" / "doctors.zh.ts"
|
||||
|
||||
# 与 build-hospitals-data.py 保持一致:照片目录 id -> Excel 医院中文名
|
||||
FOLDER_TO_HOSPITAL: dict[str, str] = {
|
||||
"中山一院图": "中山大学附属第一医院(越秀院区、南沙院区)",
|
||||
"广东省人民医院": "广东省人民医院",
|
||||
"广东省妇幼保健院": "广东省妇幼保健院",
|
||||
"孙逸仙纪念医院": "中山大学孙逸仙纪念医院",
|
||||
"中山三院": "中山大学附属第三医院",
|
||||
"中山大学中山眼科中心": "中山大学中山眼科中心",
|
||||
"中山肿瘤": "中山大学肿瘤防治中心",
|
||||
"中大口腔": "中山大学附属口腔医院",
|
||||
"中山六院": "中山大学附属第六医院",
|
||||
"南方医院": "南方医科大学南方医院",
|
||||
"珠江医院": "南方医科大学珠江医院",
|
||||
"暨大附一院": "暨南大学附属第一医院",
|
||||
"广东省中医院": "广东省中医院",
|
||||
"汕大附一院": "汕头大学医学院第一附属医院",
|
||||
"广医附一院": "广州医科大学附属第一医院",
|
||||
"广州市一院": "广州市第一人民医院",
|
||||
"广妇儿中心": "广州医科大学附属妇女儿童医疗中心",
|
||||
"深圳人医": "深圳市人民医院",
|
||||
"北大深圳": "北京大学深圳医院",
|
||||
"港大深圳": "香港大学深圳医院",
|
||||
"南方深圳": "南方医科大学深圳医院",
|
||||
"中山5院": "中山大学附属第五医院",
|
||||
"珠海人民医院": "珠海市人民医院",
|
||||
"祈福医院": "广东祈福医院",
|
||||
"佛山复星": "佛山复星禅诚医院",
|
||||
"湘雅二院": "中南大学湘雅二医院",
|
||||
}
|
||||
|
||||
HOSPITAL_ZH_TO_ID = {v: k for k, v in FOLDER_TO_HOSPITAL.items()}
|
||||
|
||||
|
||||
def extract_doctor_name(expert: str) -> str:
|
||||
expert = expert.strip()
|
||||
if not expert:
|
||||
return expert
|
||||
m = re.search(r"([\u4e00-\u9fff]{2,4})$", expert)
|
||||
if m:
|
||||
return m.group(1)
|
||||
parts = expert.split()
|
||||
return parts[-1] if parts else expert
|
||||
|
||||
|
||||
def parse_excel() -> list[dict]:
|
||||
with open(EXCEL_JSON, encoding="utf-8") as fh:
|
||||
rows = json.load(fh)
|
||||
hospitals: list[dict] = []
|
||||
current: dict | None = None
|
||||
for row in rows[1:]:
|
||||
h, dept, expert, _hospital_en, _idx, expert_info, intro, url, cert = (row + [None] * 9)[:9]
|
||||
if h:
|
||||
if current:
|
||||
hospitals.append(current)
|
||||
current = {
|
||||
"name": str(h).strip(),
|
||||
"intro": (intro or "").strip() if intro else "",
|
||||
"url": (url or "").strip() if url else "",
|
||||
"cert": (cert or "").strip() if cert else "",
|
||||
"doctors": [],
|
||||
}
|
||||
if current and expert:
|
||||
expert_s = str(expert).strip()
|
||||
dept_s = str(dept).strip() if dept else ""
|
||||
current["doctors"].append(
|
||||
{
|
||||
"department": dept_s,
|
||||
"expert": expert_s,
|
||||
"name": extract_doctor_name(expert_s),
|
||||
"expertInfo": str(expert_info).strip() if expert_info else None,
|
||||
}
|
||||
)
|
||||
if current:
|
||||
hospitals.append(current)
|
||||
return hospitals
|
||||
|
||||
|
||||
def format_intro_zh(intro: str, cert: str) -> str:
|
||||
parts = [p for p in (intro, cert) if p]
|
||||
return "\n\n".join(parts)
|
||||
|
||||
|
||||
def ts_string(value: str) -> str:
|
||||
return json.dumps(value, ensure_ascii=False)
|
||||
|
||||
|
||||
def write_names(hospital_names: dict[str, str]) -> None:
|
||||
lines = [
|
||||
"/** 医院中文名称 — 来源:医院-科室-专家 Excel */",
|
||||
"",
|
||||
"export const hospitalNameZh: Record<string, string> = {",
|
||||
]
|
||||
for hid in sorted(hospital_names):
|
||||
lines.append(f" {json.dumps(hid, ensure_ascii=False)}: {ts_string(hospital_names[hid])},")
|
||||
lines.append("}")
|
||||
lines.append("")
|
||||
OUT_NAMES.write_text("\n".join(lines), encoding="utf-8")
|
||||
|
||||
|
||||
def write_intros(hospital_intros: dict[str, str]) -> None:
|
||||
lines = [
|
||||
"/** 医院简介中文 — 来源:医院-科室-专家 Excel(含认证情况) */",
|
||||
"",
|
||||
"export const hospitalIntroZh: Record<string, string> = {",
|
||||
]
|
||||
for hid in sorted(hospital_intros):
|
||||
lines.append(f" {json.dumps(hid, ensure_ascii=False)}: {ts_string(hospital_intros[hid])},")
|
||||
lines.append("}")
|
||||
lines.append("")
|
||||
OUT_INTROS.write_text("\n".join(lines), encoding="utf-8")
|
||||
|
||||
|
||||
def write_doctors(doctor_zh: dict[str, dict]) -> None:
|
||||
lines = [
|
||||
'import type { DoctorRecord } from \'~/data/hospitals-content\'',
|
||||
"",
|
||||
"export type DoctorZhFields = Pick<DoctorRecord, 'name' | 'department' | 'hospitalName' | 'expertLabel' | 'expertInfo'>",
|
||||
"",
|
||||
"/** 专家中文 — 来源:医院-科室-专家 Excel */",
|
||||
"export const doctorZh: Record<string, DoctorZhFields> = " + json.dumps(doctor_zh, ensure_ascii=False, indent=2),
|
||||
"",
|
||||
]
|
||||
OUT_DOCTORS.write_text("\n".join(lines), encoding="utf-8")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
excel_hospitals = parse_excel()
|
||||
name_to_excel = {h["name"]: h for h in excel_hospitals}
|
||||
|
||||
hospital_names: dict[str, str] = {}
|
||||
hospital_intros: dict[str, str] = {}
|
||||
doctor_zh: dict[str, dict] = {}
|
||||
|
||||
missing_hospitals: list[str] = []
|
||||
for hid, hospital_name in FOLDER_TO_HOSPITAL.items():
|
||||
excel = name_to_excel.get(hospital_name)
|
||||
if not excel:
|
||||
missing_hospitals.append(hospital_name)
|
||||
continue
|
||||
hospital_names[hid] = hospital_name
|
||||
hospital_intros[hid] = format_intro_zh(excel["intro"], excel["cert"])
|
||||
for doc in excel["doctors"]:
|
||||
did = f"{hid}-{doc['name']}"
|
||||
fields = {
|
||||
"name": doc["name"],
|
||||
"department": doc["department"],
|
||||
"hospitalName": hospital_name,
|
||||
"expertLabel": doc["expert"],
|
||||
}
|
||||
if doc.get("expertInfo"):
|
||||
fields["expertInfo"] = doc["expertInfo"]
|
||||
doctor_zh[did] = fields
|
||||
|
||||
if missing_hospitals:
|
||||
raise SystemExit(f"Excel 中缺少医院: {missing_hospitals}")
|
||||
|
||||
write_names(hospital_names)
|
||||
write_intros(hospital_intros)
|
||||
write_doctors(doctor_zh)
|
||||
|
||||
print(f"OK: {len(hospital_names)} hospitals, {len(doctor_zh)} doctors")
|
||||
print(f" -> {OUT_NAMES.name}")
|
||||
print(f" -> {OUT_INTROS.name}")
|
||||
print(f" -> {OUT_DOCTORS.name}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,87 @@
|
||||
[
|
||||
"中医科",
|
||||
"乳腺外科",
|
||||
"乳腺科",
|
||||
"乳腺肿瘤",
|
||||
"产科",
|
||||
"产科(含医学遗传中心)团队",
|
||||
"健康管理中心",
|
||||
"儿内科",
|
||||
"关节骨外科",
|
||||
"变态反应科",
|
||||
"口腔修复科",
|
||||
"口腔正畸专科",
|
||||
"口腔颌面外科",
|
||||
"呼吸内科",
|
||||
"呼吸病科",
|
||||
"器官移植",
|
||||
"围产医学",
|
||||
"国医馆",
|
||||
"外科介入医学",
|
||||
"妇科",
|
||||
"妇科(含生殖健康与不孕症科)团队",
|
||||
"小儿内科团队",
|
||||
"小儿外科",
|
||||
"小儿外科(含新生儿外科、心脏中心)团队",
|
||||
"小儿眼病和眼遗传科",
|
||||
"广东省心血管病研究所(霍英东心脏中心)",
|
||||
"广东省神经科学研究所",
|
||||
"广东省肺癌研究所",
|
||||
"心外科",
|
||||
"心脏中心",
|
||||
"心脏血管学科群",
|
||||
"心脑血管",
|
||||
"心血管内科",
|
||||
"心血管内科 + 心血管外科",
|
||||
"心血管医学中心",
|
||||
"感染内科",
|
||||
"感染病防治中心",
|
||||
"抗衰老医学中心",
|
||||
"放射治疗科",
|
||||
"整形外科",
|
||||
"整形美容中心",
|
||||
"新生儿科团队",
|
||||
"普外中心",
|
||||
"普通外科",
|
||||
"普通外科-胃肠肛门外科",
|
||||
"核药临床诊疗学科群",
|
||||
"治未病科",
|
||||
"泌尿外科",
|
||||
"消化内科",
|
||||
"消化病学",
|
||||
"消化科",
|
||||
"消化系统疾病团队",
|
||||
"牙体牙髓病专科",
|
||||
"牙槽外科",
|
||||
"生殖医学",
|
||||
"生殖医学中心",
|
||||
"甲状腺外科",
|
||||
"白内障科",
|
||||
"皮肤科",
|
||||
"眼底病科",
|
||||
"眼科急症与眼外伤科",
|
||||
"神经内科",
|
||||
"神经医学",
|
||||
"神经肿瘤外科+脑血管外科",
|
||||
"耳鼻咽喉头颈外科",
|
||||
"肝病内科(感染性疾病科)",
|
||||
"肝癌",
|
||||
"肝胆外科",
|
||||
"肥胖代谢外科与减重学科群",
|
||||
"肾内科",
|
||||
"肾科",
|
||||
"肾脏病学",
|
||||
"肿瘤",
|
||||
"肿瘤中心",
|
||||
"肿瘤科",
|
||||
"胸外科",
|
||||
"脊柱外科",
|
||||
"脑机接口相关学科群",
|
||||
"血液内科(含造血干细胞移植治疗\n再生障碍性贫血、地中海贫血基因治疗、A 型血友病基因治\n疗、幼年型粒单核细胞白血病移植治疗、戈谢氏病基因治疗)",
|
||||
"运动医学与康复",
|
||||
"运动医学科",
|
||||
"重症医学科",
|
||||
"青光眼科",
|
||||
"骨科",
|
||||
"鼻咽癌防治中心"
|
||||
]
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"广东省人民医院-吴一龙": "Professor of Oncology, Chief Physician, Doctoral Supervisor, Chief Expert of Guangdong Provincial People's Hospital, Honorary Director of Guangdong Lung Cancer Institute, recipient of the IASLC Distinguished Scientific Award, widely regarded as China's leading authority in lung cancer. Specialties: multidisciplinary lung cancer care; personalized lung cancer treatment and targeted therapy.",
|
||||
"广东省人民医院-钟文昭": "Director of Thoracic Surgery, Professor, Doctor of Surgical Oncology, Doctoral Supervisor, Director of Guangdong Lung Cancer Institute at Guangdong Provincial People's Hospital. Specialties: multidisciplinary lung cancer care centered on surgical oncology; minimally invasive thoracoscopic lung cancer radical surgery.",
|
||||
"中山大学中山眼科中心-陈伟蓉": "Professor, Chief Physician, Doctoral Supervisor. Particularly skilled in diagnosis and treatment of complex cataracts and congenital cataracts.",
|
||||
"中山肿瘤-马骏": "Academician of the Chinese Academy of Sciences; Executive Deputy Director and Executive Vice President of Sun Yat-sen University Cancer Center; Professor and Doctoral Supervisor. Specializes in personalized treatment plans for locally advanced and advanced nasopharyngeal carcinoma.",
|
||||
"南方医院-侯凡凡": "Academician of the Chinese Academy of Sciences; Director of the Institute of Nephrology at Southern Medical University, Professor of Internal Medicine, Director of Nephrology at Nanfang Hospital, Director of the National Clinical Research Center for Kidney Diseases, and Director of the National Key Laboratory for Organ Failure Prevention and Treatment. Specializes in prevention and treatment of chronic kidney disease.",
|
||||
"广医附一院-何健行": "Professor at The First Affiliated Hospital of Guangzhou Medical University, Director of the National Center for Respiratory Medicine, and President of Guangzhou Institute of Respiratory Health. Specialties: early diagnosis and treatment of lung tumors; complex thoracic surgical procedures; advanced COPD treatment; minimally invasive thoracic surgery.",
|
||||
"广医附一院-曾国华": "Vice President of The First Affiliated Hospital of Guangzhou Medical University and leader of urology. Serves as Chairman and Secretary-General of the International Alliance in Urolithiasis (IAU). Dedicated to research and promotion of minimally invasive urological techniques, with major contributions in minimally invasive treatment of urinary stones.",
|
||||
"广妇儿中心-陈欣欣": "Leader of the Heart Center at Guangzhou Women and Children's Medical Center and a renowned pediatric cardiac surgeon in China. Specialties: surgical treatment of congenital heart disease, especially complex congenital heart disease in neonates and infants, ranking among China's leading centers.",
|
||||
"北大深圳-李长忠": "Director of Obstetrics and Gynecology at Peking University Shenzhen Hospital; Chief Physician, Professor, and Doctoral Supervisor. Specialties: gynecologic oncology prevention and treatment, minimally invasive surgery, and fertility preservation.",
|
||||
"中大口腔-张志光": "Second-level Professor of Oral and Maxillofacial Surgery and Doctoral Supervisor at the Hospital of Stomatology, Sun Yat-sen University; expert physician of the Central Health Care Office. Specialties: caries; non-carious hard tissue diseases of teeth; endodontic and periapical disease diagnosis and treatment.",
|
||||
"湘雅二院-周智广": "President of the Second Xiangya Hospital of Central South University, Director of the Metabolic Endocrinology Research Institute, and Director of the National Clinical Research Center for Metabolic Diseases. Specialties: diabetes, thyroid disease, metabolic bone disease, pituitary-adrenal disease, and inherited endocrine and metabolic disorders.",
|
||||
"湘雅二院-李霞": "Director of the Department of Metabolic Endocrinology at the Second Xiangya Hospital of Central South University; Deputy Director of the National Clinical Research Center for Metabolic Diseases. Long engaged in clinical and basic research on diabetes and immunology."
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import sys
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
docx = Path(sys.argv[1])
|
||||
out_dir = Path(sys.argv[2])
|
||||
out_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
with zipfile.ZipFile(docx) as z:
|
||||
for name in z.namelist():
|
||||
if name.startswith('word/media/image'):
|
||||
data = z.read(name)
|
||||
filename = Path(name).name
|
||||
(out_dir / filename).write_bytes(data)
|
||||
print(f'extracted {filename} ({len(data)} bytes)')
|
||||
@@ -0,0 +1,23 @@
|
||||
import zipfile
|
||||
import xml.etree.ElementTree as ET
|
||||
import sys
|
||||
|
||||
path = sys.argv[1]
|
||||
W = '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}'
|
||||
|
||||
with zipfile.ZipFile(path) as z:
|
||||
root = ET.fromstring(z.read('word/document.xml'))
|
||||
|
||||
out = sys.argv[2] if len(sys.argv) > 2 else None
|
||||
lines = []
|
||||
for i, p in enumerate(root.iter(f'{W}p')):
|
||||
texts = [t.text or '' for t in p.iter(f'{W}t')]
|
||||
line = ''.join(texts).strip()
|
||||
if line:
|
||||
lines.append(f'{i + 1}|{line}')
|
||||
text = '\n'.join(lines)
|
||||
if out:
|
||||
with open(out, 'w', encoding='utf-8') as f:
|
||||
f.write(text)
|
||||
else:
|
||||
sys.stdout.buffer.write(text.encode('utf-8'))
|
||||
@@ -0,0 +1,34 @@
|
||||
"""从 Excel 提取医院-科室-专家原始数据到 hospitals-excel-raw.json。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from openpyxl import load_workbook
|
||||
|
||||
WEB = Path(__file__).resolve().parents[1]
|
||||
DOCS = WEB / "public" / "documents"
|
||||
OUT = Path(__file__).resolve().parent / "hospitals-excel-raw.json"
|
||||
|
||||
|
||||
def find_xlsx() -> Path:
|
||||
files = sorted(DOCS.glob("*.xlsx"))
|
||||
if not files:
|
||||
raise SystemExit(f"找不到 Excel: {DOCS}")
|
||||
return files[-1]
|
||||
|
||||
|
||||
def main() -> None:
|
||||
xlsx = find_xlsx()
|
||||
wb = load_workbook(xlsx, read_only=True, data_only=True)
|
||||
ws = wb.active
|
||||
rows: list[list] = []
|
||||
for row in ws.iter_rows(values_only=True):
|
||||
rows.append([cell if cell is not None else None for cell in row])
|
||||
|
||||
OUT.write_text(json.dumps(rows, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||
print(f"OK: {xlsx.name} -> {len(rows)} rows -> {OUT}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,133 @@
|
||||
1|International Patient Guide to Medical Tourism in China: Procedures & Infrastructure
|
||||
2|The growth of medical tourism in China has led to an increase in international patients accessing specialized medical services. For both dedicated medical travelers and expatriates, navigating the multi-tiered Chinese healthcare system requires an understanding of local regulations and administrative protocols. This guide provides an overview of the clinical landscape, registration requirements, and logistical steps necessary to facilitate an organized healthcare experience.
|
||||
3|Accurately categorizing the clinical urgency and nature of a condition is a prerequisite for navigating the multi-tiered medical infrastructure in China.
|
||||
5|Acute/Life-Threatening Conditions: For critical events requiring immediate intervention, the national emergency number is 120.
|
||||
8|Protocol: Operators require precise location data and symptom descriptions in either English or Chinese.
|
||||
11|Facility Access: Emergency Departments (ED) operate 24/7 without prior appointments, utilizing a triage system that prioritizes patients based on clinical severity.
|
||||
14|Logistical Note: While ambulances provide essential life support, they function primarily as stabilization and transport units and may not contain the advanced diagnostic suites found in tertiary hospitals.
|
||||
17|Minor/Self-Limiting Issues: For non-acute symptoms (e.g., respiratory infections, localized dermatological issues), community pharmacies serve as the primary point of access.
|
||||
20|Pharmacological Guidance: Licensed pharmacists can provide consultations for over-the-counter (OTC) medications.
|
||||
23|Resource Optimization: Utilizing community resources for non-urgent care reduces unnecessary clinical load on hospitals and minimizes patient expenditure and wait times.
|
||||
26|Complex/Tertiary Care: Conditions requiring advanced diagnostics and specialized intervention (e.g., oncology, cardiology) are best managed at Grade III Level A (3A) hospitals.
|
||||
29|Infrastructure: These institutions, such as Peking University People’s Hospital or Ruijin Hospital, represent the apex of China’s public healthcare hierarchy.
|
||||
32|International Patient Services: For cases necessitating sustained multilingual support and nuanced clinical communication, international clinics or international departments within 3A hospitals are the standard for non-native speakers.
|
||||
34|I. Clinical Categorization & Triage of Medical Needs
|
||||
35|The selection of an appropriate medical institution is a foundational component of medical tourism in China. Choice of facility is typically determined by clinical requirements, budgetary parameters, and the necessary scope of administrative support.
|
||||
36|Type
|
||||
37|Best For
|
||||
38|Key Considerations
|
||||
39|Public Hospitals
|
||||
40|Cost-sensitive patients
|
||||
41|• Long waits; limited English; • International Departments offer English services (higher fees); • Accept social insurance for eligible foreigners
|
||||
42|Private Hospitals
|
||||
43|Faster service; comfort
|
||||
44|• English widely spoken; • Direct billing with international insurance; • Higher fees but shorter wait times
|
||||
45|International Clinics
|
||||
46|Western standards
|
||||
47|• Full multilingual support; • Most expensive option; • Ideal for complex cases requiring detailed communication
|
||||
48|To identify suitable medical facilities for international patients, we maintain a registry of institutions across nine major Chinese cities. Our selection criteria prioritize Grade III, Level A facilities—the highest tier in China's healthcare classification system—which comprise over 95% of the monitored list, encompassing public, private, and international sectors. Hospital selection should align with the patient's clinical profile, financial parameters, and logistical requirements.
|
||||
49|II. Hospital Selection Framework for Medical Tourism in China
|
||||
50|III. Healthcare Access:Appointment Protocols & Registration Requirements
|
||||
51|Appointments are mandatory for all non-emergency clinical consultations. Patient registration is facilitated through the following official channels:
|
||||
53|Online Platforms:
|
||||
56|Beijing: The 114 Appointment Platform or the WeChat "114 Appointment" mini-program.
|
||||
59|Shanghai: The "Shanghai Government Services" app (随申办).
|
||||
62|Nationwide: Individual hospital portals or integrated platforms such as Yuyueguahao.
|
||||
65|Telephonic Channels:
|
||||
68|Direct dialing via 114 (for Beijing) or hospital-specific hotlines, such as 400-066-1144 for Peking University People’s Hospital.
|
||||
70|Administrative Compliance & Attendance Standards
|
||||
72|⚠️ Identification Requirements: A valid passport, along with a visa or residence permit, is a regulatory requirement for hospital registration.
|
||||
75|⚠️ Punctuality Protocols: Appointment slots are subject to same-day expiration. Standard protocol requires patients to arrive at least 30 minutes prior to the scheduled time to complete physical registration.
|
||||
77|Navigating local digital interfaces and hospital-specific booking systems can be complex for international patients. UMedGlobal provides logistical coordination, including appointment management within Grade III Level A facilities, to facilitate access to specialized medical consultations. Detailed information on our coordination services is available here.
|
||||
78|IV. Clinical and Administrative Preparation for Medical Tourism in China
|
||||
79|Systematic preparation is a prerequisite for navigating the healthcare landscape during medical tourism in China. Coordinating documentation and logistics in advance facilitates a more structured clinical encounter.
|
||||
80|
|
||||
81|Pre-Consultation Requirements:
|
||||
83|Identification & Documentation
|
||||
86|Standard ID: A valid passport and visa or residence permit are mandatory for all hospital registrations in China. Certain clinical pathways may require a specialized medical visa.
|
||||
89|Clinical History: For complex conditions, patients should provide medical records translated by certified services to maintain the accuracy of clinical data.
|
||||
92|Insurance Verification: Presentation of a valid insurance card is required. It is advisable to verify direct billing capabilities with the facility prior to arrival.
|
||||
95|Financial Settlement
|
||||
98|Digital Payments: Alipay and WeChat Pay are the primary methods for transactional processing in Chinese hospitals.
|
||||
101|Local Currency (RMB): Cash remains necessary for upfront payments, which are often required before diagnostic tests or specialist consultations are performed.
|
||||
104|Communication Assistance
|
||||
107|Clinical Terminology: Familiarity with basic terms such as Téng (疼/Pain) and Fāshāo (发烧/Fever) can support initial patient-provider interaction.
|
||||
110|Digital Tools: Translation applications with OCR (camera scanning) capabilities assist in interpreting medical signage and documentation.
|
||||
112|UMedGlobal provides technical translation services for medical records to ensure that patient histories are accurately communicated to attending physicians in China. This supports clinical accuracy during the diagnostic process.
|
||||
113|V. Clinical Workflow and Outpatient Protocols
|
||||
114|Adhering to established hospital protocols facilitates navigation through the administrative and clinical requirements of the Chinese healthcare system.
|
||||
116|Registration:
|
||||
119|Patients are required to register and pay a nominal administrative fee (typically ¥10-30 RMB) to receive a medical record card and a designated queue number.
|
||||
122|In public Grade III facilities, high patient volumes often necessitate extended waiting periods.
|
||||
125|Consultation:
|
||||
128|During the clinical consultation, provide a concise history of symptoms (e.g., 'three-day headache, no fever')..
|
||||
131|Attending physicians may adjust their communication pace to accommodate varying levels of language proficiency; however, professional medical translation is recommended for complex cases.
|
||||
134|Tests & Diagnosis:
|
||||
137|The Chinese healthcare system operates on a pre-payment model; fees for diagnostic tests or imaging must be settled before services are rendered.
|
||||
140|Facilities typically utilize directional signage or color-coded indicators to guide patients to laboratory and imaging departments.
|
||||
143|It is advisable to request diagnostic reports in both Chinese and English where available.
|
||||
146|Pharmacy:
|
||||
149|Pharmaceutical dispensing for Western and Traditional Chinese Medicine (TCM) typically occurs at separate counters.
|
||||
152|Patients should verify dosage instructions and potential contraindications on all pharmaceutical labels.
|
||||
155|Pharmacists are available to clarify administration protocols if the instructions are unclear.
|
||||
157|VI. Medical Financial Administration & Payment Protocols
|
||||
158|Clear understanding of China's medical pricing structures and settlement procedures is necessary for effective healthcare financial planning.
|
||||
160|Public Medical Insurance (Social Insurance): Eligible international residents may utilize the National Health Insurance card (医保卡) at designated public facilities. Coverage parameters for foreign nationals are subject to regional regulations and employment terms; verification of eligibility with the local human resources and social security bureau is recommended prior to initiating treatment.
|
||||
163|Commercial Health Insurance: Most international policies operate on a 'pay-and-claim' basis, requiring patients to settle accounts upfront and subsequently seek reimbursement via itemized billing (费用清单). Certain providers necessitate pre-authorization for specialist consultations or advanced diagnostic procedures.
|
||||
166|Self-Funded Payments: For out-of-pocket expenses, it is standard practice to retain all official tax receipts (Fapiao) for record-keeping or potential secondary claims. Grade III hospitals can often provide English-language invoices or bilingual financial statements upon formal request to the hospital's financial department.
|
||||
168|VII. Post-Treatment Care and Clinical Follow-up in China
|
||||
169|Structured follow-up appointments and rehabilitation services are standard components of post-treatment protocols to monitor recovery and manage chronic conditions.
|
||||
171|Clinical Indications for Follow-up:
|
||||
174|Post-surgical monitoring and recovery.
|
||||
177|Long-term management of chronic conditions, such as diabetes.
|
||||
180|Physical rehabilitation; specialized Grade III hospitals provide dedicated units with multilingual support.
|
||||
183|Post-Discharge Guidelines:
|
||||
186|Ensure all discharge summaries include written exercise and dietary protocols.
|
||||
189|Utilize integrated hospital applications for remote follow-up consultations, which are currently operational in major metropolitan centers like Beijing and Shanghai.
|
||||
191|VIII. Clinical and Logistical Guidelines for International Patients
|
||||
192|Adhering to established clinical protocols and administrative practices is essential for navigating the Chinese healthcare system efficiently. The following considerations facilitate a structured medical experience:
|
||||
194|Clinical Environment & Patient Privacy:
|
||||
197|Be advised that patient privacy standards in public hospitals may involve shared consultation rooms.
|
||||
200|Accurate diagnosis relies on the transparent disclosure of lifestyle factors, including dietary habits and tobacco use.
|
||||
203|Emergency Response Protocols:
|
||||
206|Remember to call 120.
|
||||
209|Practice the phrase: "Wǒ xūyào jiùhùchē" (I need an ambulance), and clearly state your address.
|
||||
212|Carry a local contact person's details to assist with communication if needed.
|
||||
215|Administrative Efficiency & Scheduling:
|
||||
218|Standard procedure involves an initial assessment by a general practitioner (GP) prior to specialist referral.
|
||||
221|Statistical data indicates peak hospital volume occurs Monday through Wednesday, 8:00 AM – 11:00 AM. For reduced wait times, scheduling during weekday afternoons (1:00 PM – 4:00 PM) is recommended.
|
||||
224|Clinical readiness requires the availability of identity documents (Passport), registration cards, and historical diagnostic records.
|
||||
227|For medical examinations, patients should wear non-restrictive clothing and avoid cosmetics to ensure diagnostic accuracy.
|
||||
229|
|
||||
230|Why Choose a Medical Concierge?
|
||||
231|Assessing the Role of Concierge Services in Medical Tourism in China
|
||||
232|
|
||||
233|Navigating the Chinese healthcare system involves managing a multi-tiered infrastructure that can present logistical complexities for international visitors. A professional medical concierge acts as a logistical intermediary and patient advocate, managing the administrative requirements necessary for an organized healthcare visit.
|
||||
234|
|
||||
235|A structured concierge service facilitates the following aspects of the patient journey:
|
||||
237|Clinical Navigation & Hospital Selection: Concierge services identify healthcare institutions and specialists based on specific clinical needs. This selection process prioritizes facilities with documented experience in treating international patients and established clinical outcomes.
|
||||
240|Linguistic Coordination: To mitigate communication risks, services include the certified translation of medical records and the provision of professional medical interpreters for clinical consultations. This ensures that medical history and diagnostic questions are communicated with technical accuracy.
|
||||
243|Administrative & Regulatory Management: Professional services manage time-intensive tasks, including the scheduling of specialist appointments, coordination of hospital admissions, and assistance with medical visa documentation. This approach is designed to navigate institutional protocols and regulatory requirements efficiently.
|
||||
246|Patient Representation & Care Coordination: A concierge serves as a coordinator throughout the treatment process, assisting the patient in understanding the proposed medical plan and ensuring that patient requirements are addressed within the clinical setting.
|
||||
249|Utilizing a concierge service like UMedGlobal allows for a systematic approach to the logistical challenges of medical tourism in China, enabling patients to prioritize their clinical recovery and follow-up care.
|
||||
250|Frequently Asked Questions (FAQ)
|
||||
251|Q: What is the protocol for medical emergencies in China?
|
||||
252|A: For acute or life-threatening conditions, the national emergency number is 120. Operators require precise location data and symptom descriptions in either English or Chinese. Emergency Departments (ED) operate 24/7 without prior appointments and utilize a triage system that prioritizes patients based on clinical severity. Please note that ambulances serve primarily as stabilization and transport units, rather than advanced diagnostic suites.
|
||||
253|
|
||||
254|Q: What documentation is required to register at a Chinese hospital?
|
||||
255|A: A valid passport, along with a visa or residence permit, is a mandatory regulatory requirement for all hospital registrations in China. For complex clinical cases, patients should also provide medical records translated by certified services to maintain diagnostic accuracy. Additionally, presentation of a valid insurance card is required.
|
||||
256|
|
||||
257|Q: Are appointments required for clinical consultations?
|
||||
258|A: Yes, appointments are mandatory for all non-emergency clinical consultations. Registration can be completed through official online platforms (such as the 114 Appointment Platform or integrated hospital portals) or via specific telephonic channels. Standard protocol requires patients to arrive at least 30 minutes prior to their scheduled time to complete the physical registration process.
|
||||
259|
|
||||
260|Q: How are medical fees processed within the Chinese healthcare system?
|
||||
261|A: The Chinese healthcare system operates primarily on a pre-payment model. Fees for diagnostic tests, imaging, and consultations must be settled before services are rendered. Alipay and WeChat Pay are the primary methods for transactional processing, though cash (RMB) remains necessary for certain upfront payments. Patients utilizing commercial health insurance typically settle accounts upfront and subsequently seek reimbursement using itemized billing (费用清单) and official tax receipts (Fapiao).
|
||||
262|
|
||||
263|Q: What is the clinical difference between a public Grade III hospital and an international clinic?
|
||||
264|A: Public Grade III Level A (3A) hospitals represent the apex of China's public healthcare hierarchy and are equipped for advanced diagnostics and tertiary care. However, public facilities may present logistical challenges such as high patient volumes and limited English proficiency. International clinics or international departments within 3A hospitals provide full multilingual support and nuanced clinical communication, making them standard for non-native speakers, though they represent a higher-cost financial parameter.
|
||||
265|
|
||||
266|Q: How does UMedGlobal facilitate the medical tourism process?
|
||||
267|A: UMedGlobal acts as a logistical intermediary and patient advocate, managing the administrative requirements necessary for an organized healthcare visit. Services include clinical navigation to identify appropriate healthcare institutions, appointment management, technical translation of medical records, and the provision of professional medical interpreters. This systematic approach is designed to navigate institutional protocols and regulatory requirements efficiently.
|
||||
268|Consultation and Coordination for Medical Tourism China
|
||||
269|For further information regarding medical tourism China or to discuss specific procedural inquiries, please contact the international patient services team. We provide administrative coordination and logistical support to facilitate an organized healthcare experience. Correspondence is typically addressed within a 24-hour timeframe.
|
||||
270|Contact International Patient Services
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @deprecated 请使用 Python 流程(以 Excel 为唯一数据源):
|
||||
* python scripts/extract-hospitals-excel.py
|
||||
* python scripts/build-hospitals-data.py
|
||||
* python scripts/build-hospitals-zh-locale.py
|
||||
*/
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { dirname, join } from 'node:path'
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const steps = [
|
||||
'extract-hospitals-excel.py',
|
||||
'build-hospitals-data.py',
|
||||
'build-hospitals-zh-locale.py'
|
||||
]
|
||||
|
||||
for (const script of steps) {
|
||||
const r = spawnSync('python', [join(root, 'scripts', script)], {
|
||||
stdio: 'inherit',
|
||||
cwd: root
|
||||
})
|
||||
if (r.status !== 0) process.exit(r.status ?? 1)
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
World-Class Health Screenings in China - 100% Transparent Pricing & VIP Access
|
||||
Skip the long waitlists. Access cutting-edge medical technology and comprehensive cancer screenings at China's leading international hospitals. Enjoy VIP English concierge service with our Zero-Markup Guarantee—you pay the official public rate directly to the hospital.
|
||||
✅ Zero-Markup Guarantee & 100% Financial Transparency
|
||||
✅ VIP Access: Priority booking, Pre-examination consultation & English-speaking escort.
|
||||
✅ Medical Concierge: Pre-trip assessment & travel logistics support included.
|
||||
The UMedGlobal Advantage
|
||||
The UMedGlobal Transparent Pricing & Zero-Markup Guarantee
|
||||
As an official medical tourism partner for China's top private hospitals, we believe in 100% financial transparency. Here is how we guarantee you the best value and a stress-free experience:
|
||||
Step 1 Secure Your VIP Access ($68 USD): Pay a fully-refundable $49 Priority Booking Fee. This secures your fast-track appointment, English translation arrangements, and pre-trip medical logistics.
|
||||
Step 2 Pay the Hospital Directly (Zero Markup): Upon arrival, you pay the exact official public rate directly at the hospital counter (via Credit Card, Alipay, or WeChat). We never add hidden fees to your medical bills.
|
||||
Step 3 Comprehensive Post-Screening Support: Receive a detailed, comprehensive medical report in English. We ensure you have all the official documentation needed to share results easily with your local GP for ongoing care.
|
||||
A Message from Our Founder
|
||||
We believe that quality healthcare should not be out of reach due to distance, language barriers, or complicated procedures. We hope to use our professionalism and sincerity to help more people access health more easily and with greater peace of mind.
|
||||
Frequently Asked Questions
|
||||
Services & Guarantees
|
||||
Q: Why should I book through UMedGlobal instead of contacting the hospital directly?
|
||||
A: Navigating cross-border healthcare systems can be complex (for a deep dive into the overall landscape, read our Comprehensive Guide to Health Checkups in China for Foreigners). As a dedicated medical concierge provider, our $49 fee saves you hours of research and ensures you are matched with the exact screening package for your age and health goals. You receive priority scheduling, step-by-step payment logistics, and full VIP treatment—all while paying the exact same official public rate directly at the hospital counter.
|
||||
|
||||
Q: What exactly does the $49 Priority Booking Fee cover?A: This fee covers the comprehensive "Pre-trip Medical Logistics" provided by our team, which includes:
|
||||
Medical Intake & Matching: Recommending the exact screening package based on your age and health goals.
|
||||
Priority Scheduling: Securing your preferred dates and times directly with the hospital's international department.
|
||||
Payment Guidance: Step-by-step advice on setting up Alipay/WeChat Pay with your foreign credit cards for a smooth checkout at the hospital.
|
||||
Travel Logistics: Advice on hospital locations, transport, and nearby English-friendly accommodations.
|
||||
Q: Is the $49 fee refundable if my travel plans to China change?A: Yes, it is 100% risk-free. We understand that international travel plans can change. Your $49 fee is fully refundable at any time up to 72 hours before your scheduled hospital appointment. No questions asked.
|
||||
The Hospital Experience & Logistics
|
||||
Q: I don't speak Chinese. Will I face language barriers?A: Not at all. Both SinoUnited and Jiahui are premier international hospitals catering to expats and foreign visitors. Their doctors and frontline staff are fluent in English. Your entire experience, from the front desk to the examination room, will be in English.
|
||||
Q: Will my final medical report be in English?A: Absolutely. You will receive a comprehensive, detailed medical report in English. You can easily share these results with your local GP back in New Zealand or your home country for ongoing care.
|
||||
Q: Can I claim the screening cost on my health insurance?A: We will ensure you receive the proper official English medical invoices from the hospital. While many private health insurance policies (like certain Southern Cross plans) offer allowances for international health check-ups, please verify directly with your insurance provider regarding your specific coverage.
|
||||
Q: Does UMedGlobal provide medical advice?
|
||||
A: No. UMedGlobal is a medical tourism agency and concierge service. We do not provide medical advice, diagnosis, or treatment. All medical services are strictly provided by the certified professionals at our partner hospitals.
|
||||
**Disclaimer: The USD price is an estimate only for your convenience (based on 1 USD ≈ 7CNY). The actual USD amount will vary based on your bank's exchange rate at the time of transaction.
|
||||
Ready to Prioritize Your Health?
|
||||
Let our medical concierge match you with the perfect package based on your personal health goals and family history. We are here to help you find the perfect match, not just sell a package.
|
||||
Secure My Spot
|
||||
@@ -0,0 +1,27 @@
|
||||
[
|
||||
"中山大学附属第一医院(越秀院区、南沙院区)",
|
||||
"广东省人民医院",
|
||||
"广东省妇幼保健院",
|
||||
"中山大学孙逸仙纪念医院",
|
||||
"中山大学附属第三医院",
|
||||
"中山大学中山眼科中心",
|
||||
"中山大学肿瘤防治中心",
|
||||
"中山大学附属口腔医院",
|
||||
"中山大学附属第六医院",
|
||||
"南方医科大学南方医院",
|
||||
"南方医科大学珠江医院",
|
||||
"暨南大学附属第一医院",
|
||||
"广东省中医院",
|
||||
"汕头大学医学院第一附属医院",
|
||||
"广州医科大学附属第一医院",
|
||||
"广州市第一人民医院",
|
||||
"广州医科大学附属妇女儿童医疗中心",
|
||||
"深圳市人民医院",
|
||||
"北京大学深圳医院",
|
||||
"香港大学深圳医院",
|
||||
"南方医科大学深圳医院",
|
||||
"中山大学附属第五医院",
|
||||
"珠海市人民医院",
|
||||
"广东祈福医院",
|
||||
"佛山复星禅诚医院"
|
||||
]
|
||||
Binary file not shown.
@@ -0,0 +1,293 @@
|
||||
{
|
||||
"root": "25家医院照片合集_副本\\25家医院照片合集_副本",
|
||||
"items": [
|
||||
{
|
||||
"name": "中大口腔",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
".DS_Store",
|
||||
"中大口腔.png",
|
||||
"古丽莎.jpg",
|
||||
"王焱.jpeg",
|
||||
"陈泽涛.jpg"
|
||||
],
|
||||
"count": 7
|
||||
},
|
||||
{
|
||||
"name": "中山5院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"中山5院.webp",
|
||||
"林天歆.png",
|
||||
"肖非.jpeg",
|
||||
"陈明远.jpeg"
|
||||
],
|
||||
"count": 4
|
||||
},
|
||||
{
|
||||
"name": "中山一院图",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
".DS_Store",
|
||||
"中山一院.png",
|
||||
"何晓顺.webp",
|
||||
"尹长军.jpg",
|
||||
"董吁钢.jpg"
|
||||
],
|
||||
"count": 10
|
||||
},
|
||||
{
|
||||
"name": "中山三院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
".DS_Store",
|
||||
"中山三院.png",
|
||||
"戎利民.jpeg",
|
||||
"李源.jpg",
|
||||
"杨宏志.jpg"
|
||||
],
|
||||
"count": 7
|
||||
},
|
||||
{
|
||||
"name": "中山六院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"中山六院.png",
|
||||
"宋斌.jpeg",
|
||||
"梁晓燕.jpeg",
|
||||
"汪建平.jpeg",
|
||||
"胡品津.jpeg"
|
||||
],
|
||||
"count": 6
|
||||
},
|
||||
{
|
||||
"name": "中山大学中山眼科中心",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"中山眼科.png",
|
||||
"刘臻臻.jpg",
|
||||
"卓业鸿.jpg",
|
||||
"文峰.jpg",
|
||||
"林浩添.jpg"
|
||||
],
|
||||
"count": 8
|
||||
},
|
||||
{
|
||||
"name": "中山肿瘤",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"中山肿瘤.png",
|
||||
"刘卓炜.jpeg",
|
||||
"周志伟.jpeg",
|
||||
"孙颖251219.jpg",
|
||||
"张兰军.jpeg"
|
||||
],
|
||||
"count": 8
|
||||
},
|
||||
{
|
||||
"name": "佛山复星",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"复星禅城.jpeg",
|
||||
"彭亮.jpeg",
|
||||
"李朝晖.jpeg",
|
||||
"谢大志.jpeg"
|
||||
],
|
||||
"count": 4
|
||||
},
|
||||
{
|
||||
"name": "北大深圳",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"北大深圳医院.jpg",
|
||||
"张国伟.jpeg",
|
||||
"李长忠.jpeg",
|
||||
"熊奡.jpeg"
|
||||
],
|
||||
"count": 4
|
||||
},
|
||||
{
|
||||
"name": "南方医院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"侯凡凡.jpeg",
|
||||
"侯金林.jpeg",
|
||||
"刘思德.png",
|
||||
"南方医院.png",
|
||||
"胡振富.png"
|
||||
],
|
||||
"count": 7
|
||||
},
|
||||
{
|
||||
"name": "南方深圳",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"南方深圳.jpeg",
|
||||
"桑宏勋.jpeg",
|
||||
"王卫东.jpeg",
|
||||
"陈烨.jpeg"
|
||||
],
|
||||
"count": 4
|
||||
},
|
||||
{
|
||||
"name": "孙逸仙纪念医院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
".DS_Store",
|
||||
"姚和瑞.jpeg",
|
||||
"孙逸仙纪念医院.png",
|
||||
"宋尔卫.png",
|
||||
"张金明.jpg"
|
||||
],
|
||||
"count": 9
|
||||
},
|
||||
{
|
||||
"name": "广东省中医院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"广东省中医院.png",
|
||||
"张忠德.jpeg",
|
||||
"李红毅.png",
|
||||
"杨志敏.png",
|
||||
"郭力恒.jpeg"
|
||||
],
|
||||
"count": 5
|
||||
},
|
||||
{
|
||||
"name": "广东省人民医院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"余学清.jpeg",
|
||||
"吴一龙.jpeg",
|
||||
"广东省人民医院.png",
|
||||
"庄建.jpeg",
|
||||
"沙卫红.jpeg"
|
||||
],
|
||||
"count": 8
|
||||
},
|
||||
{
|
||||
"name": "广东省妇幼保健院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
".DS_Store",
|
||||
"刘王凯.png",
|
||||
"叶秀桢.jpeg",
|
||||
"孙善权.webp",
|
||||
"广东省妇幼保健院.png"
|
||||
],
|
||||
"count": 9
|
||||
},
|
||||
{
|
||||
"name": "广医附一院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"何建行.jpeg",
|
||||
"广医一院.png",
|
||||
"曾国华.jpeg",
|
||||
"李靖.jpeg",
|
||||
"钟南山.jpeg"
|
||||
],
|
||||
"count": 6
|
||||
},
|
||||
{
|
||||
"name": "广妇儿中心",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"何丽雅.png",
|
||||
"何耀娟.png",
|
||||
"夏慧敏.png",
|
||||
"广妇儿.png",
|
||||
"张广兰.png"
|
||||
],
|
||||
"count": 6
|
||||
},
|
||||
{
|
||||
"name": "广州市一院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"广州市第一人民医院.png",
|
||||
"王顺清.jpeg"
|
||||
],
|
||||
"count": 2
|
||||
},
|
||||
{
|
||||
"name": "暨大附一院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"暨大附一.png",
|
||||
"李琰.jpeg",
|
||||
"杨景哥.webp",
|
||||
"毕伟.png",
|
||||
"王璐.jpeg"
|
||||
],
|
||||
"count": 6
|
||||
},
|
||||
{
|
||||
"name": "汕大附一院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"任春红.jpeg",
|
||||
"汕大附一院.jpeg",
|
||||
"谭学瑞.jpeg"
|
||||
],
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"name": "深圳人医",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"张轶庠.jpeg",
|
||||
"深圳人民医院.jpg",
|
||||
"王光锁.jpeg",
|
||||
"钟才能.webp"
|
||||
],
|
||||
"count": 4
|
||||
},
|
||||
{
|
||||
"name": "港大深圳",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"张文智.jpeg",
|
||||
"李勇杰.jpeg",
|
||||
"梁加利.png",
|
||||
"港大深圳医院.jpeg",
|
||||
"魏民新.jpeg"
|
||||
],
|
||||
"count": 5
|
||||
},
|
||||
{
|
||||
"name": "珠江医院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"乔贵宾.jpeg",
|
||||
"徐啊白.jpeg",
|
||||
"方驰华.jpeg",
|
||||
"段传志.jpeg",
|
||||
"珠江医院.png"
|
||||
],
|
||||
"count": 5
|
||||
},
|
||||
{
|
||||
"name": "珠海人民医院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"珠海人民医院.png",
|
||||
"程光森.jpeg",
|
||||
"许卫国.jpeg"
|
||||
],
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"name": "祈福医院",
|
||||
"type": "dir",
|
||||
"files": [
|
||||
"区俊文.webp",
|
||||
"彭磷基.jpeg",
|
||||
"祈福医院.png",
|
||||
"简志祥.png",
|
||||
"肖烈钢.jpeg"
|
||||
],
|
||||
"count": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,207 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""English display strings for Featured Hospitals / Specialists pages."""
|
||||
from __future__ import annotations
|
||||
|
||||
from pypinyin import Style, lazy_pinyin
|
||||
|
||||
DEPT_EN: dict[str, str] = {
|
||||
"中医科": "Traditional Chinese Medicine",
|
||||
"乳腺外科": "Breast Surgery",
|
||||
"乳腺科": "Breast Department",
|
||||
"乳腺肿瘤": "Breast Oncology",
|
||||
"产科": "Obstetrics",
|
||||
"产科(含医学遗传中心)团队": "Obstetrics (incl. Medical Genetics) Team",
|
||||
"健康管理中心": "Health Management Center",
|
||||
"儿内科": "Pediatric Internal Medicine",
|
||||
"关节骨外科": "Joint & Orthopedic Surgery",
|
||||
"变态反应科": "Allergy & Immunology",
|
||||
"口腔修复科": "Prosthodontics",
|
||||
"口腔正畸专科": "Orthodontics",
|
||||
"口腔颌面外科": "Oral & Maxillofacial Surgery",
|
||||
"呼吸内科": "Respiratory Medicine",
|
||||
"呼吸病科": "Respiratory Diseases",
|
||||
"器官移植": "Organ Transplantation",
|
||||
"围产医学": "Perinatal Medicine",
|
||||
"国医馆": "Traditional Medicine Center",
|
||||
"外科介入医学": "Interventional Surgery",
|
||||
"妇科": "Gynecology",
|
||||
"妇科(含生殖健康与不孕症科)团队": "Gynecology (incl. Reproductive Health & Infertility) Team",
|
||||
"小儿内科团队": "Pediatric Internal Medicine Team",
|
||||
"小儿外科": "Pediatric Surgery",
|
||||
"小儿外科(含新生儿外科、心脏中心)团队": "Pediatric Surgery (incl. Neonatal Surgery & Cardiac Center) Team",
|
||||
"小儿眼病和眼遗传科": "Pediatric Ophthalmology & Ocular Genetics",
|
||||
"广东省心血管病研究所(霍英东心脏中心)": "Guangdong Cardiovascular Institute (Hou Ying Dong Heart Center)",
|
||||
"广东省神经科学研究所": "Guangdong Institute of Neuroscience",
|
||||
"广东省肺癌研究所": "Guangdong Lung Cancer Institute",
|
||||
"心外科": "Cardiac Surgery",
|
||||
"心脏中心": "Heart Center",
|
||||
"心脏血管学科群": "Cardiovascular Medicine Cluster",
|
||||
"心脑血管": "Cardiovascular Medicine",
|
||||
"心血管内科": "Cardiology",
|
||||
"心血管内科 + 心血管外科": "Cardiology & Cardiac Surgery",
|
||||
"心血管医学中心": "Cardiovascular Medicine Center",
|
||||
"感染内科": "Infectious Diseases",
|
||||
"感染病防治中心": "Infection Prevention & Treatment Center",
|
||||
"抗衰老医学中心": "Anti-Aging Medicine Center",
|
||||
"放射治疗科": "Radiation Oncology",
|
||||
"整形外科": "Plastic Surgery",
|
||||
"整形美容中心": "Plastic & Aesthetic Surgery Center",
|
||||
"新生儿科团队": "Neonatology Team",
|
||||
"普外中心": "General Surgery Center",
|
||||
"普通外科": "General Surgery",
|
||||
"普通外科-胃肠肛门外科": "General Surgery — Gastrointestinal & Colorectal Surgery",
|
||||
"核药临床诊疗学科群": "Nuclear Medicine Clinical Cluster",
|
||||
"治未病科": "Preventive Medicine",
|
||||
"泌尿外科": "Urology",
|
||||
"消化内科": "Gastroenterology",
|
||||
"消化病学": "Digestive Diseases",
|
||||
"消化科": "Digestive Medicine",
|
||||
"消化系统疾病团队": "Digestive Diseases Team",
|
||||
"牙体牙髓病专科": "Endodontics",
|
||||
"牙槽外科": "Oral Surgery",
|
||||
"生殖医学": "Reproductive Medicine",
|
||||
"生殖医学中心": "Reproductive Medicine Center",
|
||||
"甲状腺外科": "Thyroid Surgery",
|
||||
"白内障科": "Cataract Department",
|
||||
"皮肤科": "Dermatology",
|
||||
"眼底病科": "Retinal Diseases",
|
||||
"眼科急症与眼外伤科": "Ocular Emergency & Trauma",
|
||||
"神经内科": "Neurology",
|
||||
"神经医学": "Neurosciences",
|
||||
"神经肿瘤外科+脑血管外科": "Neuro-Oncology & Cerebrovascular Surgery",
|
||||
"耳鼻咽喉头颈外科": "Otorhinolaryngology (ENT)",
|
||||
"肝病内科(感染性疾病科)": "Hepatology (Infectious Diseases)",
|
||||
"肝癌": "Liver Cancer",
|
||||
"肝胆外科": "Hepatobiliary Surgery",
|
||||
"肥胖代谢外科与减重学科群": "Metabolic & Bariatric Surgery Cluster",
|
||||
"肾内科": "Nephrology",
|
||||
"肾科": "Kidney Medicine",
|
||||
"肾脏病学": "Nephrology",
|
||||
"肿瘤": "Oncology",
|
||||
"肿瘤中心": "Cancer Center",
|
||||
"肿瘤科": "Oncology Department",
|
||||
"胸外科": "Thoracic Surgery",
|
||||
"脊柱外科": "Spine Surgery",
|
||||
"脑机接口相关学科群": "Brain-Computer Interface Cluster",
|
||||
"血液内科(含造血干细胞移植治疗\n再生障碍性贫血、地中海贫血基因治疗、A 型血友病基因治\n疗、幼年型粒单核细胞白血病移植治疗、戈谢氏病基因治疗)": "Hematology (incl. HSCT & gene therapy programs)",
|
||||
"运动医学与康复": "Sports Medicine & Rehabilitation",
|
||||
"运动医学科": "Sports Medicine",
|
||||
"重症医学科": "Critical Care Medicine",
|
||||
"青光眼科": "Glaucoma Department",
|
||||
"骨科": "Orthopedics",
|
||||
"鼻咽癌防治中心": "Nasopharyngeal Carcinoma Center",
|
||||
}
|
||||
|
||||
HOSPITAL_EN: dict[str, str] = {
|
||||
"中山大学附属第一医院(越秀院区、南沙院区)": "The First Affiliated Hospital, Sun Yat-sen University (Yuexiu & Nansha)",
|
||||
"广东省人民医院": "Guangdong Provincial People's Hospital",
|
||||
"广东省妇幼保健院": "Guangdong Provincial Maternal and Child Health Hospital",
|
||||
"中山大学孙逸仙纪念医院": "Sun Yat-sen Memorial Hospital, Sun Yat-sen University",
|
||||
"中山大学附属第三医院": "The Third Affiliated Hospital, Sun Yat-sen University",
|
||||
"中山大学中山眼科中心": "Zhongshan Ophthalmic Center, Sun Yat-sen University",
|
||||
"中山大学肿瘤防治中心": "Sun Yat-sen University Cancer Center",
|
||||
"中山大学附属口腔医院": "Hospital of Stomatology, Sun Yat-sen University",
|
||||
"中山大学附属第六医院": "The Sixth Affiliated Hospital, Sun Yat-sen University",
|
||||
"南方医科大学南方医院": "Nanfang Hospital, Southern Medical University",
|
||||
"南方医科大学珠江医院": "Zhujiang Hospital of Southern Medical University",
|
||||
"暨南大学附属第一医院": "The First Affiliated Hospital of Jinan University",
|
||||
"广东省中医院": "Guangdong Provincial Hospital of Chinese Medicine",
|
||||
"汕头大学医学院第一附属医院": "The First Affiliated Hospital of Shantou University Medical College",
|
||||
"广州医科大学附属第一医院": "The First Affiliated Hospital of Guangzhou Medical University",
|
||||
"广州市第一人民医院": "Guangzhou First People's Hospital",
|
||||
"广州医科大学附属妇女儿童医疗中心": "Guangzhou Women and Children's Medical Center",
|
||||
"深圳市人民医院": "Shenzhen People's Hospital",
|
||||
"北京大学深圳医院": "Peking University Shenzhen Hospital",
|
||||
"香港大学深圳医院": "The University of Hong Kong-Shenzhen Hospital",
|
||||
"南方医科大学深圳医院": "Shenzhen Hospital, Southern Medical University",
|
||||
"中山大学附属第五医院": "The Fifth Affiliated Hospital, Sun Yat-sen University",
|
||||
"珠海市人民医院": "Zhuhai People's Hospital",
|
||||
"广东祈福医院": "Guangdong Clifford Hospital",
|
||||
"佛山复星禅诚医院": "Fosun Chan Cheng Hospital (Foshan)",
|
||||
"中南大学湘雅二医院": "The Second Xiangya Hospital of Central South University",
|
||||
}
|
||||
|
||||
CERT_EN: dict[str, str] = {
|
||||
"首批参加中国国际版医院标准评审认证的医院之一": "Among the first hospitals accredited under China's International Hospital Standard.",
|
||||
"2018年获得JCI国际认证": "JCI accredited since 2018.",
|
||||
"曾通过澳洲ACHS认证,牵头制定中国国际版医院标准": "ACHS accredited; led development of China's International Hospital Standard.",
|
||||
"2018年通过JCI认证,是华南地区首批通过JCI认证的医院之一": "JCI accredited since 2018; among the first in South China.",
|
||||
"2003年通过JCI认证,是华南地区首批通过JCI认证的医院之一": "JCI accredited since 2003; among the first in South China.",
|
||||
"2003年通过JCI认证,是华南地区首批通过JCI认证的医院之一,2026年通过国际医院评审认证标准(中国版)评审认证": "JCI accredited since 2003; re-certified under the China edition of the International Hospital Standard in 2026.",
|
||||
" 首批参加中国国际版医院标准评审认证的医院之一": "Among the first hospitals accredited under China's International Hospital Standard.",
|
||||
"2003年通过JCI认证,并连续七次通过JCI认证;2026年通过国际医院评审认证标准(中国)认证": "JCI accredited since 2003 with seven consecutive renewals; certified under the China edition of the International Hospital Standard in 2026.",
|
||||
"首批参加中国国际版医院标准评审认证的医院之一": "Among the first hospitals accredited under China's International Hospital Standard.",
|
||||
"湘雅国际医疗部于2016年通过JCI认证": "The Xiangya International Medical Department received JCI accreditation in 2016.",
|
||||
}
|
||||
|
||||
|
||||
def cert_en(cert: str) -> str:
|
||||
c = cert.strip()
|
||||
return CERT_EN.get(c, "Internationally accredited hospital credentials available upon request.")
|
||||
|
||||
INTRO_EN: dict[str, str] = {
|
||||
"中山大学附属第一医院(越秀院区、南沙院区)": "Founded in 1910, the First Affiliated Hospital of Sun Yat-sen University is a leading Grade 3A comprehensive hospital recognized nationally and internationally for modern clinical care.",
|
||||
"广东省人民医院": "Established in 1946, Guangdong Provincial People's Hospital is one of South China's largest Grade 3A hospitals, renowned for cardiovascular care and consistently ranked among the nation's top public hospitals.",
|
||||
"广东省妇幼保健院": "Founded in 1944, this Grade 3A maternal and child health hospital ranks among China's top provincial women's and children's hospitals and serves as Guangdong's clinical guidance center.",
|
||||
"中山大学孙逸仙纪念医院": "Founded in 1835, Sun Yat-sen Memorial Hospital is a national Grade 3A comprehensive hospital under the National Health Commission.",
|
||||
"中山大学附属第三医院": "Founded in 1971, the Third Affiliated Hospital has grown into a modern Grade 3A hospital integrating care, teaching, research, prevention, and rehabilitation.",
|
||||
"中山大学中山眼科中心": "Originating in 1835, Zhongshan Ophthalmic Center is China's only national ophthalmic specialty hospital and WHO Collaborating Centre for eye health.",
|
||||
"中山大学肿瘤防治中心": "Founded in 1964, SYSUCC is a national Grade 3A cancer center and a leading NPC and solid-tumor treatment hub in South China.",
|
||||
"中山大学附属口腔医院": "Tracing its roots to 1908, the hospital is a national specialty stomatology center and top-ranked oral hospital in China.",
|
||||
"中山大学附属第六医院": "A Grade 3A comprehensive hospital with national A+ performance ratings and leadership in gastroenterology and colorectal surgery.",
|
||||
"南方医科大学南方医院": "Founded in 1941, Nanfang Hospital is a large Grade 3A teaching hospital with strengths in nephrology, gastroenterology, and trauma care.",
|
||||
"南方医科大学珠江医院": "Founded in 1947, Zhujiang Hospital is a Grade 3A comprehensive hospital and a designated international medical service institution in Guangdong.",
|
||||
"暨南大学附属第一医院": "Established in 1978, this Grade 3A hospital is a high-level construction unit in Guangdong's provincial hospital excellence program.",
|
||||
"广东省中医院": "Founded in 1926, it is one of China's largest TCM hospitals and a national pilot for modern TCM hospital management.",
|
||||
"汕头大学医学院第一附属医院": "Founded in 1989, this Grade 3A hospital is a provincial pediatric hemophilia treatment center and regional referral hub.",
|
||||
"广州医科大学附属第一医院": "Founded in 1903, it is a Grade 3A hospital affiliated with Guangzhou Institute of Respiratory Health and a leader in respiratory medicine.",
|
||||
"广州市第一人民医院": "Founded in 1899, the hospital is advancing integrated diagnosis and treatment for hematologic malignancies and related disorders.",
|
||||
"广州医科大学附属妇女儿童医疗中心": "A leading women and children's specialty center; in May 2026 it became a national children's medical center with top national rankings.",
|
||||
"深圳市人民医院": "Founded in 1946, Shenzhen People's Hospital is a historic Grade 3A comprehensive hospital with strong clinical research capacity.",
|
||||
"北京大学深圳医院": "Founded in 1999, this modern Grade 3A public hospital has earned A+ ratings in national public hospital performance assessments.",
|
||||
"香港大学深圳医院": "Opened in 2012, HKU-Shenzhen Hospital delivers comprehensive care through the University of Hong Kong management model.",
|
||||
"南方医科大学深圳医院": "Established in 2015, this university-affiliated hospital in the Qianhai Free Trade Zone serves international patients with full English support.",
|
||||
"中山大学附属第五医院": "Affiliated with Sun Yat-sen University since 2001, the Fifth Affiliated Hospital is Zhuhai's only hospital licensed for liver, kidney, and lung transplantation.",
|
||||
"珠海市人民医院": "Founded in 1950, Zhuhai People's Hospital is the city's leading Grade 3A public hospital with A+ national performance ratings.",
|
||||
"广东祈福医院": "A pioneering integrated TCM-Western medicine hospital; among the first in mainland China to achieve JCI accreditation (2003).",
|
||||
"佛山复星禅诚医院": "Founded in 1958, Fosun Chan Cheng Hospital is a leading private Grade 3A hospital and eight-time top-ranked non-public hospital in China.",
|
||||
"中南大学湘雅二医院": "Tracing its roots to 1906, the Second Xiangya Hospital of Central South University is a Grade 3A comprehensive hospital in Changsha, Hunan, directly administered by the National Health Commission and affiliated with Central South University.",
|
||||
}
|
||||
|
||||
# 姓氏特殊读音(区作姓氏读 Ou,非 Qu)
|
||||
NAME_EN_OVERRIDE: dict[str, str] = {
|
||||
"区俊文": "Ou Jun Wen",
|
||||
"张志光": "Zhang Zhi Guang",
|
||||
"周智广": "Zhou Zhi Guang",
|
||||
"李霞": "Li Xia",
|
||||
}
|
||||
|
||||
|
||||
def name_to_pinyin(chinese_name: str) -> str:
|
||||
if chinese_name in NAME_EN_OVERRIDE:
|
||||
return NAME_EN_OVERRIDE[chinese_name]
|
||||
syllables = lazy_pinyin(chinese_name, style=Style.NORMAL)
|
||||
return " ".join(s.capitalize() for s in syllables)
|
||||
|
||||
|
||||
def dept_en(zh: str) -> str:
|
||||
if not zh:
|
||||
return ""
|
||||
return DEPT_EN.get(zh.strip(), zh)
|
||||
|
||||
|
||||
def hospital_name_en(zh: str) -> str:
|
||||
return HOSPITAL_EN.get(zh, zh)
|
||||
|
||||
|
||||
def hospital_intro_en(zh: str, cert: str | None) -> str:
|
||||
intro = INTRO_EN.get(zh, "")
|
||||
if cert:
|
||||
cert_line = cert_en(cert)
|
||||
intro = f"{intro}\n\n{cert_line}" if intro else cert_line
|
||||
return intro.strip()
|
||||
|
||||
|
||||
def expert_label_en(dept_zh: str, name_en: str) -> str:
|
||||
d = dept_en(dept_zh)
|
||||
return f"{d} — {name_en}" if d else name_en
|
||||
@@ -0,0 +1,111 @@
|
||||
香港大学深圳医院 The Hong Kong University-Shenzhen Hospital
|
||||
国际医疗中心 International Medical Center
|
||||
男性健康体检套餐(钻石)Male Health Assessment Package (Diamond)
|
||||
体检内容
|
||||
Tests and Examinations
|
||||
≥18岁
|
||||
Age ≥18
|
||||
M套餐
|
||||
Package M
|
||||
【IMC服务*】健康评估组套 Health assessment by nurse
|
||||
√
|
||||
【IMC服务*】眼压检查(非接触眼压计法或压平眼压计法) Eye pressure measurement
|
||||
√
|
||||
【IMC服务*】全科体格检查Physical examination
|
||||
√
|
||||
血常规 Blood routine
|
||||
血常规(22) Complete blood counts
|
||||
√
|
||||
肝功能 Liver function
|
||||
肝功能八项 Hepatic biochemistry tests
|
||||
√
|
||||
肾功相关 Renal function
|
||||
肾功能七项 Renal function tests
|
||||
√
|
||||
血糖 Blood glucose
|
||||
空腹血糖 Fasting blood glucose
|
||||
√
|
||||
糖化血红蛋白 Glycosylated hemoglobin
|
||||
√
|
||||
脂代谢 Lipid metabolism
|
||||
血脂四项 Lipid profile
|
||||
√
|
||||
心血管相关
|
||||
Cardiovascular disease
|
||||
同型半胱氨酸(HCYS)Homocysteine
|
||||
√
|
||||
肌钙蛋白T(TNT)/Troponin T
|
||||
√
|
||||
【IMC服务*】多通道十二导联心电图检查Electrocardiogram
|
||||
√
|
||||
【IMC服务*】心电图踏车负荷试验(平板运动试验)/Treadmill stress test
|
||||
√
|
||||
甲状腺功能Thyroid function
|
||||
甲状腺功能二项 Thyroid function TSH+FT4
|
||||
√
|
||||
营养代谢筛查
|
||||
Nutritional and Metabolic Screening
|
||||
维生素B12 Vitamin B12
|
||||
√
|
||||
叶酸 Folic acid
|
||||
√
|
||||
铁蛋白 Ferritin
|
||||
√
|
||||
骨代谢
|
||||
Bone metabolism
|
||||
维生素D两项(色谱质谱)Vitamin D Duo Testing
|
||||
√
|
||||
【IMC服务*】CT骨密度测定/CT bone density measurement QCT
|
||||
√
|
||||
肿瘤标志物
|
||||
Tumor markers
|
||||
男性肿瘤标志物五项 Male tumor markers
|
||||
√
|
||||
EBV DNA
|
||||
√
|
||||
消化相关
|
||||
Gastric disease
|
||||
碳13呼气试验 (1)Carbon-13 urea breath test
|
||||
√
|
||||
炎性指标 Inflammatory
|
||||
超敏C-反应蛋白(hsCRP)High-sensitivity C-reactive protein
|
||||
√
|
||||
尿液检查
|
||||
Urine test
|
||||
尿常规 Urinalysis
|
||||
√
|
||||
尿微量白蛋白/肌酐 Urinary microalbumin/creatinine
|
||||
√
|
||||
粪便检查
|
||||
Stool test
|
||||
无创肠癌基因筛查
|
||||
Non-invasive genetic screening for colorectal cancer
|
||||
√
|
||||
彩超
|
||||
Ultrasonogram
|
||||
彩超:肝胆脾胰(不含门静脉系)Hepatic system
|
||||
√
|
||||
彩超:双肾输尿管膀胱前列腺 Urinary system & Prostate
|
||||
√
|
||||
浅表彩超:甲状腺及淋巴结 Thyroid gland
|
||||
√
|
||||
胸部检查
|
||||
Chest examination
|
||||
(体检专用)CT胸部平扫(肺癌筛查)+CT薄层扫描Chest CT
|
||||
√
|
||||
眼科
|
||||
Ophthalmology
|
||||
光学相干断层成相(OCT)(双眼)
|
||||
Optical coherence tomography (OCT) (binocular)
|
||||
√
|
||||
其他 Others
|
||||
【IMC服务*】静脉采血(体检) Phlebotomy
|
||||
√
|
||||
【IMC服务*】健康管理(检后) Post-assessment consultation
|
||||
√
|
||||
【IMC服务*】营养服务2Nutrition consultation
|
||||
√
|
||||
套餐价格 Total
|
||||
15162.00
|
||||
注:实际价格以体检中心实际发生费用为准。Remarks: The price above is for reference only. Final pricing is subject to the actual cost and the most updated price
|
||||
in the system. 预约热线Hotline: 0755-86913388 更新日期/Update date:20260420
|
||||
@@ -0,0 +1,95 @@
|
||||
香港大学深圳医院 The Hong Kong University-Shenzhen Hospital
|
||||
国际医疗中心 International Medical Center
|
||||
男性健康体检套餐(黄金)Male Health Assessment Package (Gold)
|
||||
体检内容
|
||||
Tests and Examinations
|
||||
≥18岁
|
||||
Age ≥18
|
||||
M套餐
|
||||
Package M
|
||||
【IMC服务*】健康评估组套 Health assessment by nurse
|
||||
√
|
||||
【IMC服务*】眼压检查(非接触眼压计法或压平眼压计法) Eye pressure measurement
|
||||
√
|
||||
【IMC服务*】全科体格检查Physical examination
|
||||
√
|
||||
血常规 Blood routine
|
||||
血常规(22) Complete blood counts
|
||||
√
|
||||
肝功能 Liver function
|
||||
肝功能八项 Hepatic biochemistry tests
|
||||
√
|
||||
肾功相关 Renal function
|
||||
肾功能七项 Renal function tests
|
||||
√
|
||||
血糖 Blood glucose
|
||||
空腹血糖 Fasting blood glucose
|
||||
√
|
||||
糖化血红蛋白 Glycosylated hemoglobin
|
||||
√
|
||||
脂代谢 Lipid metabolism
|
||||
血脂四项 Lipid profile
|
||||
√
|
||||
心血管相关
|
||||
Cardiovascular disease
|
||||
同型半胱氨酸(HCYS)Homocysteine
|
||||
√
|
||||
【IMC服务*】多通道十二导联心电图检查Electrocardiogram
|
||||
√
|
||||
甲状腺功能Thyroid function 甲状腺功能二项 Thyroid function TSH+FT4
|
||||
√
|
||||
营养代谢筛查
|
||||
Nutritional and Metabolic
|
||||
Screening
|
||||
维生素B12 Vitamin B12
|
||||
√
|
||||
叶酸 Folic acid
|
||||
√
|
||||
铁蛋白 Ferritin
|
||||
√
|
||||
骨代谢
|
||||
Bone metabolism
|
||||
维生素D两项(色谱质谱)Vitamin D Duo Testing
|
||||
√
|
||||
肿瘤标志物
|
||||
Tumor markers
|
||||
男性肿瘤标志物五项 Male tumor markers
|
||||
√
|
||||
EBV DNA
|
||||
√
|
||||
消化相关
|
||||
Gastric disease
|
||||
碳13呼气试验 (1)Carbon-13 urea breath test
|
||||
√
|
||||
炎性指标 Inflammatory
|
||||
超敏C-反应蛋白(hsCRP)High-sensitivity C-reactive protein
|
||||
√
|
||||
尿液检查
|
||||
Urine test
|
||||
尿常规 Urinalysis
|
||||
√
|
||||
尿微量白蛋白/肌酐 Urinary microalbumin/creatinine
|
||||
√
|
||||
粪便检查
|
||||
Stool test
|
||||
粪便隐血OB(胶体金)Stool occult blood+大便常规(1) Stool routine
|
||||
√
|
||||
彩超
|
||||
Ultrasonogram
|
||||
彩超:肝胆脾胰(不含门静脉系)Hepatic system
|
||||
√
|
||||
彩超:双肾输尿管膀胱前列腺 Urinary system & Prostate
|
||||
√
|
||||
胸部检查
|
||||
Chest examination
|
||||
(体检专用)CT胸部平扫(肺癌筛查)+CT薄层扫描Chest CT
|
||||
√
|
||||
其他 Others
|
||||
【IMC服务*】静脉采血(体检) Phlebotomy
|
||||
√
|
||||
【IMC服务*】健康管理(检后) Post-assessment consultation
|
||||
√
|
||||
套餐价格 Total
|
||||
8753.00
|
||||
注:实际价格以体检中心实际发生费用为准。Remarks: The price above is for reference only. Final pricing is subject to the actual cost
|
||||
and the most updated price in the system. 预约热线Hotline: 0755-86913388 更新日期/Update date:20260420
|
||||
@@ -0,0 +1,171 @@
|
||||
香港大学深圳医院 The Hong Kong University-Shenzhen Hospital
|
||||
国际医疗中心 International Medical Center
|
||||
女性健康体检套餐(钻石)Female Health Assessment Package (Diamond)
|
||||
体检内容
|
||||
Tests and Examinations
|
||||
18-49岁
|
||||
Age 18-49
|
||||
≥50岁
|
||||
Age ≥50
|
||||
F1套餐
|
||||
Package F1
|
||||
F2套餐
|
||||
Package F2
|
||||
【IMC服务*】健康评估组套 Health assessment by nurse
|
||||
√
|
||||
√
|
||||
【IMC服务*】眼压检查(非接触眼压计法或压平眼压计法) Eye pressure measurement
|
||||
/
|
||||
√
|
||||
【IMC服务*】全科体格检查Physical examination
|
||||
√
|
||||
√
|
||||
血常规 Blood routine
|
||||
血常规(22) Complete blood counts
|
||||
√
|
||||
√
|
||||
肝功能 Liver function
|
||||
肝功能八项 Hepatic biochemistry tests
|
||||
√
|
||||
√
|
||||
肾功相关 Renal function
|
||||
肾功能七项 Renal function tests
|
||||
√
|
||||
√
|
||||
血糖 Blood glucose
|
||||
空腹血糖 Fasting blood glucose
|
||||
√
|
||||
√
|
||||
糖化血红蛋白 Glycosylated hemoglobin
|
||||
√
|
||||
√
|
||||
脂代谢 Lipid metabolism
|
||||
血脂四项 Lipid profile
|
||||
√
|
||||
√
|
||||
心血管相关
|
||||
Cardiovascular disease
|
||||
同型半胱氨酸(HCYS)Homocysteine
|
||||
√
|
||||
√
|
||||
【IMC服务*】多通道十二导联心电图检查Electrocardiogram
|
||||
√
|
||||
√
|
||||
甲状腺功能 Thyroid function
|
||||
甲状腺功能二项 Thyroid function TSH+FT4
|
||||
√
|
||||
√
|
||||
营养代谢筛查
|
||||
Nutritional and Metabolic Screening
|
||||
维生素B12 Vitamin B12
|
||||
√
|
||||
/
|
||||
叶酸 Folic acid
|
||||
√
|
||||
/
|
||||
铁蛋白 Ferritin
|
||||
√
|
||||
√
|
||||
骨代谢
|
||||
Bone metabolism
|
||||
25-(羟基)维生素D Vitamin D
|
||||
√
|
||||
√
|
||||
【IMC服务*】CT骨密度测定 QCT
|
||||
/
|
||||
√
|
||||
肿瘤标志物
|
||||
Tumor markers
|
||||
女性肿瘤标志物五项 Female tumor markers
|
||||
√
|
||||
√
|
||||
人附睾蛋白4(HE4)测定 Human epididymis protein 4
|
||||
√
|
||||
/
|
||||
EBV DNA
|
||||
√
|
||||
√
|
||||
消化相关 Gastric disease
|
||||
碳13呼气试验 Carbon-13 urea breath test
|
||||
√
|
||||
√
|
||||
炎性指标 Inflammatory
|
||||
超敏C-反应蛋白(hsCRP)High-sensitivity C-reactive protein
|
||||
√
|
||||
√
|
||||
类风湿因子 Rheumatoid factor
|
||||
√
|
||||
√
|
||||
卵巢储备功能
|
||||
Ovarian reserve function
|
||||
抗苗勒氏管激素 AMH Anti-Mullerian hormone
|
||||
√
|
||||
/
|
||||
尿液检查 Urine test
|
||||
尿常规 Urinalysis
|
||||
√
|
||||
√
|
||||
尿微量白蛋白/肌酐 Urinary microalbumin/creatinine
|
||||
√
|
||||
√
|
||||
无创肠癌基因筛查
|
||||
Non-invasive genetic screening for colorectal cancer
|
||||
√
|
||||
√
|
||||
彩超
|
||||
Ultrasonogram
|
||||
彩超:肝胆脾胰(不含门静脉系)Hepatic system
|
||||
√
|
||||
√
|
||||
彩超:双肾输尿管膀胱 Urinary system
|
||||
√
|
||||
√
|
||||
彩超:子宫附件Uterus & Adnexa
|
||||
√
|
||||
√
|
||||
浅表彩超:甲状腺及淋巴结 Thyroid gland
|
||||
√
|
||||
√
|
||||
浅表彩超:乳腺及腋窝淋巴结Breast
|
||||
√
|
||||
√
|
||||
胸部检查
|
||||
Chest examination
|
||||
(体检专用)CT胸部平扫(肺癌筛查)+CT薄层扫描Chest CT
|
||||
√
|
||||
√
|
||||
妇科相关
|
||||
Gynecology examination
|
||||
妇科常规检查(体检)Gynecology examination
|
||||
*
|
||||
*
|
||||
【IMC服务*】病理宫颈细胞学(TCT) Papanicoolaou test
|
||||
*
|
||||
*
|
||||
HPV核酸检测Human Papilloma Virus
|
||||
*
|
||||
*
|
||||
眼科
|
||||
Ophthalmology
|
||||
光学相干断层成相(OCT)(双眼)
|
||||
Optical coherence tomography (OCT) (binocular)
|
||||
/
|
||||
√
|
||||
其他 Others
|
||||
【IMC服务*】静脉采血(体检) Phlebotomy
|
||||
√
|
||||
√
|
||||
【IMC服务*】健康管理(检后) Post-assessment consultation
|
||||
√
|
||||
√
|
||||
【IMC服务*】营养服务2Nutrition consultation
|
||||
√
|
||||
√
|
||||
Total(不含*妇科相关检查 without gynecology examination)
|
||||
12039.00
|
||||
13944.00
|
||||
Total(含*妇科相关检查 with gynecology examination)
|
||||
14124.00
|
||||
16029.00
|
||||
注:实际价格以体检中心实际发生费用为准。Remarks: The price above is for reference only. Final pricing is subject to the actual cost and the most updated price in
|
||||
the system. 预约热线Hotline: 0755-86913388 更新日期/Update date:20260420
|
||||
@@ -0,0 +1,131 @@
|
||||
香港大学深圳医院 The Hong Kong University-Shenzhen Hospital
|
||||
国际医疗中心 International Medical Center
|
||||
女性健康体检套餐(黄金)Female Health Assessment Package (Gold)
|
||||
体检内容
|
||||
Tests and Examinations
|
||||
18-49岁
|
||||
Age 18-49
|
||||
≥50岁
|
||||
Age ≥50
|
||||
F1套餐
|
||||
Package F1
|
||||
F2套餐
|
||||
Package F2
|
||||
【IMC服务*】健康评估组套 Health assessment by nurse
|
||||
√
|
||||
√
|
||||
【IMC服务*】眼压检查(非接触眼压计法或压平眼压计法) Eye pressure measurement
|
||||
/
|
||||
√
|
||||
【IMC服务*】全科体格检查Physical examination
|
||||
√
|
||||
√
|
||||
血常规 Blood routine
|
||||
血常规(22) Complete blood counts
|
||||
√
|
||||
√
|
||||
肝功能 Liver function
|
||||
肝功能八项 Hepatic biochemistry tests
|
||||
√
|
||||
√
|
||||
肾功相关
|
||||
Renal f nction
|
||||
肾功能七项 Renal function tests
|
||||
√
|
||||
√
|
||||
血糖
|
||||
Blood glucose
|
||||
空腹血糖 Fasting blood glucose
|
||||
√
|
||||
√
|
||||
糖化血红蛋白 Glycosylated hemoglobin
|
||||
√
|
||||
√
|
||||
脂代谢
|
||||
Lipid metabolism
|
||||
血脂四项 Lipid profile
|
||||
√
|
||||
√
|
||||
心血管相关
|
||||
Cardiovascular disease
|
||||
【IMC服务*】多通道十二导联心电图检查Electrocardiogram
|
||||
√
|
||||
√
|
||||
甲状腺功能 Thyroid function
|
||||
甲状腺功能二项 Thyroid function TSH+FT4
|
||||
√
|
||||
√
|
||||
骨代谢
|
||||
Bone metabolism
|
||||
铁蛋白 Ferritin
|
||||
√
|
||||
√
|
||||
25-(羟基)维生素D Vitamin D
|
||||
√
|
||||
√
|
||||
【IMC服务*】CT骨密度测定 QCT
|
||||
/
|
||||
√
|
||||
肿瘤标志物
|
||||
Tumor markers
|
||||
女性肿瘤标志物五项 Female tumor markers
|
||||
/
|
||||
√
|
||||
EBV DNA
|
||||
√
|
||||
√
|
||||
消化相关 Gastric disease
|
||||
碳13呼气试验 Carbon-13 urea breath test
|
||||
√
|
||||
√
|
||||
炎性指标 Inflammatory
|
||||
超敏C-反应蛋白(hsCRP)High-sensitivity C-reactive protein
|
||||
√
|
||||
√
|
||||
尿液检查 Urine test
|
||||
尿常规 Urinalysis
|
||||
√
|
||||
√
|
||||
粪便检查 Stool test
|
||||
粪便隐血OB(胶体金)Stool occult blood+大便常规(1) Stool routine
|
||||
√
|
||||
√
|
||||
彩超
|
||||
Ultrasonogram
|
||||
彩超:肝胆脾胰(不含门静脉系)Hepatic system
|
||||
√
|
||||
√
|
||||
彩超:双肾输尿管膀胱 Urinary system
|
||||
√
|
||||
√
|
||||
彩超:子宫附件Uterus & Adnexa
|
||||
√
|
||||
√
|
||||
胸部检查
|
||||
Chest examination
|
||||
(体检专用)CT胸部平扫(肺癌筛查)+CT薄层扫描Chest CT
|
||||
√
|
||||
√
|
||||
妇科相关
|
||||
Gynecology examination
|
||||
妇科常规检查(体检)Gynecology examination
|
||||
*
|
||||
*
|
||||
【IMC服务*】病理宫颈细胞学(TCT) Papanicoolaou test
|
||||
*
|
||||
*
|
||||
其他 Others
|
||||
【IMC服务*】静脉采血(体检) Phlebotomy
|
||||
√
|
||||
√
|
||||
【IMC服务*】健康管理(检后) Post-assessment consultation
|
||||
√
|
||||
√
|
||||
Total(不含*妇科相关检查 without gynecology examination)
|
||||
7521.00
|
||||
9381.00
|
||||
Total(含*妇科相关检查 with gynecology examination)
|
||||
8571.00
|
||||
10431.00
|
||||
注:实际价格以体检中心实际发生费用为准。Remarks: The price above is for reference only. Final pricing is subject to the actual
|
||||
cost and the most updated price in the system. 预约热线Hotline: 0755-86913388 更新日期/Update date:20260420
|
||||
@@ -0,0 +1,8 @@
|
||||
import sys
|
||||
import zipfile
|
||||
|
||||
with zipfile.ZipFile(sys.argv[1]) as z:
|
||||
media = [n for n in z.namelist() if n.startswith('word/media/')]
|
||||
print('media count:', len(media))
|
||||
for m in media:
|
||||
print(m)
|
||||
@@ -0,0 +1,232 @@
|
||||
/**
|
||||
* 从 SQLite 导出数据并写入 MySQL(admin_roles / admin_users / page_seo)
|
||||
* 用法: node scripts/migrate-to-mysql.mjs
|
||||
*/
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { join } from 'node:path'
|
||||
import mysql from 'mysql2/promise'
|
||||
|
||||
const config = {
|
||||
host: process.env.NUXT_MYSQL_HOST || '47.86.202.232',
|
||||
port: Number(process.env.NUXT_MYSQL_PORT || 3306),
|
||||
user: process.env.NUXT_MYSQL_USER || 'umedglobal',
|
||||
password: process.env.NUXT_MYSQL_PASSWORD || 'mysql_6ZdKPT',
|
||||
database: process.env.NUXT_MYSQL_DATABASE || 'umedglobal',
|
||||
multipleStatements: true,
|
||||
}
|
||||
|
||||
const scriptsDir = join(process.cwd(), 'scripts')
|
||||
|
||||
function loadJson(name) {
|
||||
return JSON.parse(readFileSync(join(scriptsDir, name), 'utf8'))
|
||||
}
|
||||
|
||||
function mapLegacyUserId(value) {
|
||||
if (value == null) return null
|
||||
if (value === 'user_1') return 1
|
||||
const num = Number(value)
|
||||
return Number.isFinite(num) ? num : null
|
||||
}
|
||||
|
||||
async function createTables(conn) {
|
||||
await conn.query(`
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
DROP TABLE IF EXISTS admin_users;
|
||||
DROP TABLE IF EXISTS admin_roles;
|
||||
DROP TABLE IF EXISTS page_seo;
|
||||
DROP TABLE IF EXISTS assessment_submissions;
|
||||
DROP TABLE IF EXISTS partner_submissions;
|
||||
DROP TABLE IF EXISTS news_articles;
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
`)
|
||||
|
||||
await conn.query(`
|
||||
CREATE TABLE admin_roles (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
code VARCHAR(64) NOT NULL UNIQUE,
|
||||
description TEXT,
|
||||
is_built_in TINYINT NOT NULL DEFAULT 0,
|
||||
status VARCHAR(32) NOT NULL DEFAULT 'active',
|
||||
menu_ids TEXT NOT NULL,
|
||||
create_time VARCHAR(32) NOT NULL,
|
||||
update_time VARCHAR(32) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE admin_users (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(255) NOT NULL UNIQUE,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
name VARCHAR(255),
|
||||
avatar TEXT,
|
||||
phone VARCHAR(64),
|
||||
email VARCHAR(255),
|
||||
role_id BIGINT,
|
||||
status VARCHAR(32) NOT NULL DEFAULT 'active',
|
||||
is_built_in TINYINT NOT NULL DEFAULT 0,
|
||||
bio TEXT,
|
||||
tags TEXT,
|
||||
create_time VARCHAR(32) NOT NULL,
|
||||
update_time VARCHAR(32) NOT NULL,
|
||||
CONSTRAINT fk_admin_users_role FOREIGN KEY (role_id) REFERENCES admin_roles(id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE page_seo (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||
route_key VARCHAR(512) NOT NULL,
|
||||
locale VARCHAR(8) NOT NULL,
|
||||
page_label VARCHAR(255) NOT NULL,
|
||||
title TEXT NOT NULL,
|
||||
description TEXT NOT NULL,
|
||||
keywords TEXT,
|
||||
og_title TEXT,
|
||||
og_description TEXT,
|
||||
og_image TEXT,
|
||||
robots VARCHAR(64) DEFAULT 'index,follow',
|
||||
og_type VARCHAR(32) DEFAULT 'website',
|
||||
updated_at VARCHAR(32) NOT NULL,
|
||||
updated_by BIGINT,
|
||||
UNIQUE KEY uk_page_seo_route_locale (route_key, locale)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE assessment_submissions (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||
lang VARCHAR(8) NOT NULL,
|
||||
first_name VARCHAR(255) NOT NULL,
|
||||
last_name VARCHAR(255),
|
||||
email VARCHAR(255) NOT NULL,
|
||||
condition_text TEXT NOT NULL,
|
||||
reports TEXT,
|
||||
message TEXT,
|
||||
status VARCHAR(32) NOT NULL DEFAULT 'unread',
|
||||
created_at VARCHAR(32) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE partner_submissions (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||
lang VARCHAR(8) NOT NULL,
|
||||
first_name VARCHAR(255) NOT NULL,
|
||||
last_name VARCHAR(255) NOT NULL,
|
||||
company_name VARCHAR(255) NOT NULL,
|
||||
country VARCHAR(255) NOT NULL,
|
||||
email VARCHAR(255) NOT NULL,
|
||||
category VARCHAR(255) NOT NULL,
|
||||
collaborate TEXT NOT NULL,
|
||||
status VARCHAR(32) NOT NULL DEFAULT 'unread',
|
||||
created_at VARCHAR(32) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE news_articles (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||
locale VARCHAR(8) NOT NULL,
|
||||
media_type VARCHAR(32) NOT NULL DEFAULT 'article',
|
||||
title TEXT NOT NULL,
|
||||
summary TEXT NOT NULL,
|
||||
thumbnail TEXT NOT NULL,
|
||||
thumbnail_alt TEXT,
|
||||
url TEXT,
|
||||
youtube_url TEXT,
|
||||
tiktok_url TEXT,
|
||||
sort_order INT NOT NULL DEFAULT 0,
|
||||
status VARCHAR(32) NOT NULL DEFAULT 'published',
|
||||
created_at VARCHAR(32) NOT NULL,
|
||||
updated_at VARCHAR(32) NOT NULL,
|
||||
INDEX idx_news_locale_sort (locale, sort_order, id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
`)
|
||||
}
|
||||
|
||||
async function migrateData(conn) {
|
||||
const roles = loadJson('admin_roles.json')
|
||||
const users = loadJson('admin_users.json')
|
||||
const pageSeo = loadJson('page_seo.json')
|
||||
|
||||
for (const role of roles) {
|
||||
await conn.execute(
|
||||
`INSERT INTO admin_roles (id, name, code, description, is_built_in, status, menu_ids, create_time, update_time)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
||||
[
|
||||
1,
|
||||
role.name,
|
||||
role.code,
|
||||
role.description,
|
||||
role.is_built_in,
|
||||
role.status,
|
||||
role.menu_ids,
|
||||
role.create_time,
|
||||
role.update_time,
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
for (const user of users) {
|
||||
await conn.execute(
|
||||
`INSERT INTO admin_users (
|
||||
id, username, password, name, avatar, phone, email, role_id, status, is_built_in, bio, tags, create_time, update_time
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
||||
[
|
||||
1,
|
||||
user.username,
|
||||
user.password,
|
||||
user.name,
|
||||
user.avatar,
|
||||
user.phone,
|
||||
user.email,
|
||||
1,
|
||||
user.status,
|
||||
user.is_built_in,
|
||||
user.bio,
|
||||
user.tags,
|
||||
user.create_time,
|
||||
user.update_time,
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
for (const row of pageSeo) {
|
||||
await conn.execute(
|
||||
`INSERT INTO page_seo (
|
||||
route_key, locale, page_label, title, description,
|
||||
keywords, og_title, og_description, og_image, robots, og_type,
|
||||
updated_at, updated_by
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
||||
[
|
||||
row.route_key,
|
||||
row.locale,
|
||||
row.page_label,
|
||||
row.title,
|
||||
row.description,
|
||||
row.keywords,
|
||||
row.og_title,
|
||||
row.og_description,
|
||||
row.og_image,
|
||||
row.robots,
|
||||
row.og_type,
|
||||
row.updated_at,
|
||||
mapLegacyUserId(row.updated_by),
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
console.log(`迁移完成: admin_roles=${roles.length}, admin_users=${users.length}, page_seo=${pageSeo.length}`)
|
||||
}
|
||||
|
||||
async function main() {
|
||||
console.log(`连接 MySQL ${config.host}:${config.port}/${config.database} ...`)
|
||||
const conn = await mysql.createConnection(config)
|
||||
|
||||
try {
|
||||
await createTables(conn)
|
||||
console.log('MySQL 表结构已创建')
|
||||
|
||||
await migrateData(conn)
|
||||
console.log('数据迁移成功')
|
||||
} finally {
|
||||
await conn.end()
|
||||
}
|
||||
}
|
||||
|
||||
main().catch((err) => {
|
||||
console.error('迁移失败:', err)
|
||||
process.exit(1)
|
||||
})
|
||||
@@ -0,0 +1,802 @@
|
||||
[
|
||||
{
|
||||
"id": "_root_::en",
|
||||
"route_key": "/",
|
||||
"locale": "en",
|
||||
"page_label": "首页",
|
||||
"title": "UMedGlobal:Health Without Borders",
|
||||
"description": "UMedGlobal is a professional medical concierge based in Guangzhou, helping international patients access executive health screenings, specialist consultations, remote second opinions, visa & travel logistics and TCM care at JCI-accredited and Grade 3A hospitals in China.",
|
||||
"keywords": "Orthopedics, Orthopaedics, Joint replacement, Tumor, Lung cancer, Liver cancer, Nasopharyngeal carcinoma (NPC), Ophthalmology, Stomatology, Department of Stomatology, Dentistry, Endocrine diseases, Kidney disease, Nephropathy, Cardiovascular diseases, Neurology, Neurosurgery, Diabetes mellitus, Diabetes, Physical examination, High-end physical examination, Premium health checkup, Computed Tomography, CT, Magnetic Resonance Imaging, MRI, Positron Emission Tomography–Computed Tomography, PET-CT, Traditional Chinese Medicine, TCM",
|
||||
"og_title": "UMedGlobal | Medical Tourism China",
|
||||
"og_description": "Fast-Track Access to Advanced Specialized Care in China for international patients.",
|
||||
"og_image": "/images/logo.png",
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 16:24:32",
|
||||
"updated_by": "user_1"
|
||||
},
|
||||
{
|
||||
"id": "_root_::zh",
|
||||
"route_key": "/",
|
||||
"locale": "zh",
|
||||
"page_label": "首页",
|
||||
"title": "优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医是位于广州的专业医疗服务机构,帮助国际患者对接中国 JCI 认证及三甲医院的健康体检、专家会诊、远程二次诊疗、签证与出行安排,以及中医药康复服务。",
|
||||
"keywords": "骨科, 关节置换, 肿瘤, 肺癌, 肝癌, 鼻咽癌, 眼科, 口腔科, 牙科, 内分泌疾病, 肾病, 心血管疾病, 神经内科, 神经外科, 糖尿病, 体检, 高端体检, CT, MRI, PET-CT, 中医",
|
||||
"og_title": "优医 | 中国医疗旅游",
|
||||
"og_description": "为国际患者提供快速对接中国先进专科诊疗的服务。",
|
||||
"og_image": "/images/logo.png",
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:32:01",
|
||||
"updated_by": "user_1"
|
||||
},
|
||||
{
|
||||
"id": "about-us::en",
|
||||
"route_key": "/about-us",
|
||||
"locale": "en",
|
||||
"page_label": "关于我们",
|
||||
"title": "About Us — Your Bridge to Advanced Medical Care in China | UMedGlobal—Health Without Borders",
|
||||
"description": "Learn about UMedGlobal: Guangzhou-based medical concierge connecting international patients to Class 3A and JCI-accredited hospitals in China—with visa support, translation, and end-to-end care coordination.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "about-us::zh",
|
||||
"route_key": "/about-us",
|
||||
"locale": "zh",
|
||||
"page_label": "关于我们",
|
||||
"title": "关于我们 — 您通往中国先进医疗的桥梁 | 优医,让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "了解优医:广州医疗服务,为国际患者对接三甲及 JCI 认证医院,提供签证支持、翻译与全程协调。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 16:27:02",
|
||||
"updated_by": "user_1"
|
||||
},
|
||||
{
|
||||
"id": "services::en",
|
||||
"route_key": "/services",
|
||||
"locale": "en",
|
||||
"page_label": "服务",
|
||||
"title": "Services | Medical Treatment Facilitation in China | UMedGlobal—Health Without Borders",
|
||||
"description": "UMedGlobal coordinates international medical travel to China under China business standards: specialist matching, S1/S2 visa support, translation, lodging, and post-treatment care.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": "/images/services-hero.jpg",
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "services::zh",
|
||||
"route_key": "/services",
|
||||
"locale": "zh",
|
||||
"page_label": "服务",
|
||||
"title": "服务 | 在华医疗治疗协调 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医在中国商业法规标准下协调国际医疗出行:专家匹配、S1/S2 签证支持、医学翻译、住宿安排及治疗后照护。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": "/images/services-hero.jpg",
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "free-assessment::en",
|
||||
"route_key": "/free-assessment",
|
||||
"locale": "en",
|
||||
"page_label": "免费医疗评估",
|
||||
"title": "Free Medical Assessment Application | UMedGlobal—Health Without Borders",
|
||||
"description": "Request a free medical feasibility assessment for treatment in China. UMedGlobal reviews your case within 1-2 business days—specialist matching, timeline, and treatment viability.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "free-assessment::zh",
|
||||
"route_key": "/free-assessment",
|
||||
"locale": "zh",
|
||||
"page_label": "免费医疗评估",
|
||||
"title": "免费医疗评估申请 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "申请中国治疗的免费医疗可行性评估。优医将在 1–2 个工作日内审核您的病例——专家匹配、时间预估与治疗可行性。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "partner-with-us::en",
|
||||
"route_key": "/partner-with-us",
|
||||
"locale": "en",
|
||||
"page_label": "与我们合作",
|
||||
"title": "Partner With Us — Global Healthcare Alliance | UMedGlobal—Health Without Borders",
|
||||
"description": "Partner with UMedGlobal: join our cross-border medical network—hospitals, referral partners, travel concierge, and insurers—connecting global patients to care in China.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "partner-with-us::zh",
|
||||
"route_key": "/partner-with-us",
|
||||
"locale": "zh",
|
||||
"page_label": "与我们合作",
|
||||
"title": "与我们合作 — 全球医疗联盟 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "与优医携手:加入跨境医疗网络——医院、转诊伙伴、出行服务与保险公司,连接全球患者与中国优质医疗。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "cases::en",
|
||||
"route_key": "/cases",
|
||||
"locale": "en",
|
||||
"page_label": "患者案例",
|
||||
"title": "Patient Success Stories | Navigating Medical Tourism in China | UMedGlobal—Health Without Borders",
|
||||
"description": "Patient success stories and case studies from UMedGlobal — expert cross-border medical concierge support, specialist coordination, and advanced care pathways at leading Chinese hospitals.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "cases::zh",
|
||||
"route_key": "/cases",
|
||||
"locale": "zh",
|
||||
"page_label": "患者案例",
|
||||
"title": "患者成功案例 | 中国医疗旅游导航 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医患者成功案例与病例研究——跨境医疗服务、专家协调及中国领先医院的先进治疗路径。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "faq::en",
|
||||
"route_key": "/faq",
|
||||
"locale": "en",
|
||||
"page_label": "常见问题",
|
||||
"title": "Frequently Asked Questions | UMedGlobal—Health Without Borders",
|
||||
"description": "Answers about medical tourism to China: hospital matching, visas, bilingual support, fees, insurance documents, and UMedGlobal concierge logistics.",
|
||||
"keywords": null,
|
||||
"og_title": "FAQ | UMedGlobal",
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "faq::zh",
|
||||
"route_key": "/faq",
|
||||
"locale": "zh",
|
||||
"page_label": "常见问题",
|
||||
"title": "常见问题解答 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "中国医疗旅游常见问题:医院匹配、签证、双语支持、费用、保险单据及 优医 后勤服务。",
|
||||
"keywords": null,
|
||||
"og_title": "常见问题 | 优医",
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "hospitals::en",
|
||||
"route_key": "/hospitals",
|
||||
"locale": "en",
|
||||
"page_label": "特色医院",
|
||||
"title": "Featured Hospitals | UMedGlobal—Health Without Borders",
|
||||
"description": "Browse JCI-accredited and Grade 3A partner hospitals in China. Search by name and view profiles with official website links.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "hospitals::zh",
|
||||
"route_key": "/hospitals",
|
||||
"locale": "zh",
|
||||
"page_label": "特色医院",
|
||||
"title": "特色医院 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "浏览中国 JCI 认证及三甲合作医院,按名称搜索并查看简介与官网。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "doctors::en",
|
||||
"route_key": "/doctors",
|
||||
"locale": "en",
|
||||
"page_label": "精选专家",
|
||||
"title": "Featured Specialists | UMedGlobal—Health Without Borders",
|
||||
"description": "Leading department heads and chief physicians from UMedGlobal partner hospitals in China. Filter by hospital and department.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "doctors::zh",
|
||||
"route_key": "/doctors",
|
||||
"locale": "zh",
|
||||
"page_label": "精选专家",
|
||||
"title": "精选专家 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医合作医院科室主任与首席医师,可按医院与科室筛选。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "sitemap::en",
|
||||
"route_key": "/sitemap",
|
||||
"locale": "en",
|
||||
"page_label": "站点地图",
|
||||
"title": "Sitemap | UMedGlobal—Health Without Borders",
|
||||
"description": "UMedGlobal sitemap: browse all main pages, health screening packages, and patient guides.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "sitemap::zh",
|
||||
"route_key": "/sitemap",
|
||||
"locale": "zh",
|
||||
"page_label": "站点地图",
|
||||
"title": "站点地图 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医官网站点地图:浏览全部主要页面、健康体检套餐与患者指南。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings::en",
|
||||
"route_key": "/health-screenings",
|
||||
"locale": "en",
|
||||
"page_label": "健康体检",
|
||||
"title": "Health Screenings in China | Transparent Pricing & VIP Access | UMedGlobal—Health Without Borders",
|
||||
"description": "World-class executive health screenings in China with UMedGlobal's zero-markup guarantee, VIP English concierge, priority booking, and direct hospital payment at official public rates.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings::zh",
|
||||
"route_key": "/health-screenings",
|
||||
"locale": "zh",
|
||||
"page_label": "健康体检",
|
||||
"title": "中国健康体检 | 透明定价与 VIP 通道 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "中国世界级健康体检,优医零加价保证、VIP 英语服务、优先预约,直接向医院支付官方公示价格。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "privacy-policy::en",
|
||||
"route_key": "/privacy-policy",
|
||||
"locale": "en",
|
||||
"page_label": "隐私政策",
|
||||
"title": "Privacy Policy | UMedGlobal—Health Without Borders",
|
||||
"description": "UMedGlobal Privacy Policy: how we collect, use, protect, and share your personal and medical information for cross-border healthcare coordination in China.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "noindex,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "privacy-policy::zh",
|
||||
"route_key": "/privacy-policy",
|
||||
"locale": "zh",
|
||||
"page_label": "隐私政策",
|
||||
"title": "隐私政策 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医隐私政策:我们如何收集、使用、保护与共享您的个人及医疗信息,以支持中国跨境医疗协调服务。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "noindex,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "terms-of-use::en",
|
||||
"route_key": "/terms-of-use",
|
||||
"locale": "en",
|
||||
"page_label": "使用条款",
|
||||
"title": "Terms of Use | UMedGlobal—Health Without Borders",
|
||||
"description": "UMedGlobal Terms and Conditions: scope of medical concierge services, patient responsibilities, liability, privacy, and governing law for cross-border healthcare coordination.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "noindex,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "terms-of-use::zh",
|
||||
"route_key": "/terms-of-use",
|
||||
"locale": "zh",
|
||||
"page_label": "使用条款",
|
||||
"title": "使用条款 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医条款与条件:医疗服务范围、患者责任、责任限制、隐私及跨境医疗协调适用法律。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "noindex,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "accessibility-statement::en",
|
||||
"route_key": "/accessibility-statement",
|
||||
"locale": "en",
|
||||
"page_label": "无障碍声明",
|
||||
"title": "Accessibility Statement | UMedGlobal—Health Without Borders",
|
||||
"description": "UMedGlobal accessibility commitment: WCAG 2.1 Level AA practices, inclusive design features, and how to request accessible support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "noindex,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "accessibility-statement::zh",
|
||||
"route_key": "/accessibility-statement",
|
||||
"locale": "zh",
|
||||
"page_label": "无障碍声明",
|
||||
"title": "无障碍声明 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "优医无障碍承诺:WCAG 2.1 AA 级实践、包容性设计功能及如何申请无障碍支持。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "noindex,follow",
|
||||
"og_type": "website",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/why-choose-china-for-medical-tourism::en",
|
||||
"route_key": "/patient-guide/why-choose-china-for-medical-tourism",
|
||||
"locale": "en",
|
||||
"page_label": "为何选择中国医疗旅游",
|
||||
"title": "Why Choose China for Medical Tourism | UMedGlobal—Health Without Borders",
|
||||
"description": "Explore China's cost-effective Class III hospitals, short waiting times, advanced clinical technology, TCM integration, and international patient support for medical tourism.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/why-choose-china-for-medical-tourism::zh",
|
||||
"route_key": "/patient-guide/why-choose-china-for-medical-tourism",
|
||||
"locale": "zh",
|
||||
"page_label": "为何选择中国医疗旅游",
|
||||
"title": "为何选择中国医疗旅游 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "了解中国高性价比三级医院、较短等候时间、先进临床技术、中医药整合及国际患者支持等医疗旅游优势。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/china-medical-tourism-visa-guide::en",
|
||||
"route_key": "/patient-guide/china-medical-tourism-visa-guide",
|
||||
"locale": "en",
|
||||
"page_label": "中国医疗旅游签证指南",
|
||||
"title": "China Medical Tourism Visa Guide | UMedGlobal—Health Without Borders",
|
||||
"description": "Guide to China medical tourism visas: L, S2, and S1 visa categories, visa-free entry policies, and administrative support for international patients seeking treatment in China.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/china-medical-tourism-visa-guide::zh",
|
||||
"route_key": "/patient-guide/china-medical-tourism-visa-guide",
|
||||
"locale": "zh",
|
||||
"page_label": "中国医疗旅游签证指南",
|
||||
"title": "中国医疗旅游签证指南 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "中国医疗旅游签证指南:L、S2、S1 签证类别、免签入境政策及国际患者行政支持。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/how-to-get-china-medical-s1-s2-visa::en",
|
||||
"route_key": "/patient-guide/how-to-get-china-medical-s1-s2-visa",
|
||||
"locale": "en",
|
||||
"page_label": "S1/S2 医疗签证",
|
||||
"title": "How To Get China Medical S1/S2 Visa | UMedGlobal—Health Without Borders",
|
||||
"description": "Step-by-step guide to China S1 and S2 medical visas: eligibility, documentation, application procedures, extensions, and UMedGlobal concierge support for international patients.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/how-to-get-china-medical-s1-s2-visa::zh",
|
||||
"route_key": "/patient-guide/how-to-get-china-medical-s1-s2-visa",
|
||||
"locale": "zh",
|
||||
"page_label": "S1/S2 医疗签证",
|
||||
"title": "如何申请中国医疗 S1/S2 签证 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "中国 S1/S2 医疗签证分步指南:资格、材料、申请流程、延期及优医支持。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/explore-china-visa-free::en",
|
||||
"route_key": "/patient-guide/explore-china-visa-free",
|
||||
"locale": "en",
|
||||
"page_label": "中国免签入境",
|
||||
"title": "Explore China Visa-Free: Your Gateway to Medical Care | UMedGlobal—Health Without Borders",
|
||||
"description": "Guide to China's 30-day visa-free entry policy for international medical patients: eligibility by country, entry requirements, accessible treatments, and UMedGlobal concierge support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/explore-china-visa-free::zh",
|
||||
"route_key": "/patient-guide/explore-china-visa-free",
|
||||
"locale": "zh",
|
||||
"page_label": "中国免签入境",
|
||||
"title": "探索中国免签:医疗出行门户 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "中国 30 天免签入境政策指南:各国资格、入境要求、可及治疗及优医支持。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/china-healthcare-a-foreigners-definitive-guide::en",
|
||||
"route_key": "/patient-guide/china-healthcare-a-foreigners-definitive-guide",
|
||||
"locale": "en",
|
||||
"page_label": "国际患者中国医疗指南",
|
||||
"title": "China Healthcare: A Foreigner's Definitive Guide | UMedGlobal—Health Without Borders",
|
||||
"description": "Definitive guide for foreigners navigating China's healthcare system: triage, hospital selection, appointments, clinical workflow, payments, follow-up, and concierge support for medical tourism.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/china-healthcare-a-foreigners-definitive-guide::zh",
|
||||
"route_key": "/patient-guide/china-healthcare-a-foreigners-definitive-guide",
|
||||
"locale": "zh",
|
||||
"page_label": "国际患者中国医疗指南",
|
||||
"title": "国际患者中国医疗旅游指南 | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "外籍人士使用中国医疗体系的完整指南:分诊、选院、预约、临床流程、支付、随访及医疗协调支持。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/secure-convenient-wechat-pay-for-medical-tourism::en",
|
||||
"route_key": "/patient-guide/secure-convenient-wechat-pay-for-medical-tourism",
|
||||
"locale": "en",
|
||||
"page_label": "微信支付指南",
|
||||
"title": "Secure & Convenient WeChat Pay for Medical Tourism | UMedGlobal—Health Without Borders",
|
||||
"description": "Guide to setting up and using WeChat Pay for medical tourism in China: card linking, transaction limits, TourCard, fees, security, and UMedGlobal concierge support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/secure-convenient-wechat-pay-for-medical-tourism::zh",
|
||||
"route_key": "/patient-guide/secure-convenient-wechat-pay-for-medical-tourism",
|
||||
"locale": "zh",
|
||||
"page_label": "微信支付指南",
|
||||
"title": "微信支付指南(医疗旅游) | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "医疗旅游微信支付指南:绑卡、交易限额、TourCard、费用、安全及优医支持。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/how-to-set-up-use-alipay-for-medical-tourism::en",
|
||||
"route_key": "/patient-guide/how-to-set-up-use-alipay-for-medical-tourism",
|
||||
"locale": "en",
|
||||
"page_label": "支付宝指南",
|
||||
"title": "How to Set Up & Use Alipay for Medical Tourism | UMedGlobal—Health Without Borders",
|
||||
"description": "Guide to setting up and using Alipay for medical tourism in China: registration, KYC, international card linking, TourCard, QR payments, limits, and UMedGlobal concierge support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "patient-guide/how-to-set-up-use-alipay-for-medical-tourism::zh",
|
||||
"route_key": "/patient-guide/how-to-set-up-use-alipay-for-medical-tourism",
|
||||
"locale": "zh",
|
||||
"page_label": "支付宝指南",
|
||||
"title": "支付宝设置与使用指南(医疗旅游) | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "医疗旅游支付宝指南:注册、实名认证、绑定国际卡、TourCard、扫码支付、限额及后勤支持。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-mens-health-checkup-package-gold::en",
|
||||
"route_key": "/health-screenings/imc-mens-health-checkup-package-gold",
|
||||
"locale": "en",
|
||||
"page_label": "IMC 男性金卡套餐",
|
||||
"title": "IMC Men's Health Checkup Package (Gold) | UMedGlobal—Health Without Borders",
|
||||
"description": "IMC Men's Health Checkup Package (Gold) at The Hong Kong University-Shenzhen Hospital International Medical Center — coordinated by UMedGlobal with transparent hospital pricing and VIP English concierge support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-mens-health-checkup-package-gold::zh",
|
||||
"route_key": "/health-screenings/imc-mens-health-checkup-package-gold",
|
||||
"locale": "zh",
|
||||
"page_label": "IMC 男性金卡套餐",
|
||||
"title": "IMC 男性健康体检套餐(金卡) | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "IMC 男性健康体检套餐(金卡) — 香港大学深圳医院国际医疗中心,由 优医 协调,透明院内定价与 VIP 英语服务。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-mens-health-checkup-package-diamond::en",
|
||||
"route_key": "/health-screenings/imc-mens-health-checkup-package-diamond",
|
||||
"locale": "en",
|
||||
"page_label": "IMC 男性钻石套餐",
|
||||
"title": "IMC Men's Health Checkup Package (Diamond) | UMedGlobal—Health Without Borders",
|
||||
"description": "IMC Men's Health Checkup Package (Diamond) at The Hong Kong University-Shenzhen Hospital International Medical Center — coordinated by UMedGlobal with transparent hospital pricing and VIP English concierge support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-mens-health-checkup-package-diamond::zh",
|
||||
"route_key": "/health-screenings/imc-mens-health-checkup-package-diamond",
|
||||
"locale": "zh",
|
||||
"page_label": "IMC 男性钻石套餐",
|
||||
"title": "IMC 男性健康体检套餐(钻石) | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "IMC 男性健康体检套餐(钻石) — 香港大学深圳医院国际医疗中心,由 优医 协调,透明院内定价与 VIP 英语服务。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-womens-health-checkup-package-gold::en",
|
||||
"route_key": "/health-screenings/imc-womens-health-checkup-package-gold",
|
||||
"locale": "en",
|
||||
"page_label": "IMC 女性金卡套餐",
|
||||
"title": "IMC Women's Health Checkup Package (Gold) | UMedGlobal—Health Without Borders",
|
||||
"description": "IMC Women's Health Checkup Package (Gold) at The Hong Kong University-Shenzhen Hospital International Medical Center — coordinated by UMedGlobal with transparent hospital pricing and VIP English concierge support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-womens-health-checkup-package-gold::zh",
|
||||
"route_key": "/health-screenings/imc-womens-health-checkup-package-gold",
|
||||
"locale": "zh",
|
||||
"page_label": "IMC 女性金卡套餐",
|
||||
"title": "IMC 女性健康体检套餐(金卡) | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "IMC 女性健康体检套餐(金卡) — 香港大学深圳医院国际医疗中心,由 优医 协调,透明院内定价与 VIP 英语服务。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-womens-health-checkup-package-diamond::en",
|
||||
"route_key": "/health-screenings/imc-womens-health-checkup-package-diamond",
|
||||
"locale": "en",
|
||||
"page_label": "IMC 女性钻石套餐",
|
||||
"title": "IMC Women's Health Checkup Package (Diamond) | UMedGlobal—Health Without Borders",
|
||||
"description": "IMC Women's Health Checkup Package (Diamond) at The Hong Kong University-Shenzhen Hospital International Medical Center — coordinated by UMedGlobal with transparent hospital pricing and VIP English concierge support.",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
},
|
||||
{
|
||||
"id": "health-screenings/imc-womens-health-checkup-package-diamond::zh",
|
||||
"route_key": "/health-screenings/imc-womens-health-checkup-package-diamond",
|
||||
"locale": "zh",
|
||||
"page_label": "IMC 女性钻石套餐",
|
||||
"title": "IMC 女性健康体检套餐(钻石) | 优医—让优质医疗不再因距离与语言遥不可及,帮助更多人以简单有效的方式获得健康。",
|
||||
"description": "IMC 女性健康体检套餐(钻石) — 香港大学深圳医院国际医疗中心,由 优医 协调,透明院内定价与 VIP 英语服务。",
|
||||
"keywords": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"og_image": null,
|
||||
"robots": "index,follow",
|
||||
"og_type": "article",
|
||||
"updated_at": "2026-06-29 10:25:40",
|
||||
"updated_by": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,49 @@
|
||||
import sys
|
||||
from collections import deque
|
||||
from pathlib import Path
|
||||
|
||||
from PIL import Image
|
||||
|
||||
|
||||
def color_dist(c1: tuple[int, int, int], c2: tuple[int, int, int]) -> float:
|
||||
return sum((a - b) ** 2 for a, b in zip(c1, c2)) ** 0.5
|
||||
|
||||
|
||||
def remove_background(input_path: Path, output_path: Path, tolerance: float = 42) -> None:
|
||||
img = Image.open(input_path).convert('RGBA')
|
||||
pixels = img.load()
|
||||
width, height = img.size
|
||||
|
||||
seeds = [
|
||||
(0, 0),
|
||||
(width - 1, 0),
|
||||
(0, height - 1),
|
||||
(width - 1, height - 1),
|
||||
(width // 2, 0),
|
||||
(width // 2, height - 1),
|
||||
]
|
||||
bg_colors = [pixels[x, y][:3] for x, y in seeds]
|
||||
|
||||
visited: set[tuple[int, int]] = set()
|
||||
queue: deque[tuple[int, int]] = deque(seeds)
|
||||
|
||||
while queue:
|
||||
x, y = queue.popleft()
|
||||
if (x, y) in visited or x < 0 or y < 0 or x >= width or y >= height:
|
||||
continue
|
||||
|
||||
visited.add((x, y))
|
||||
current = pixels[x, y][:3]
|
||||
|
||||
if not any(color_dist(current, bg) <= tolerance for bg in bg_colors):
|
||||
continue
|
||||
|
||||
pixels[x, y] = (current[0], current[1], current[2], 0)
|
||||
queue.extend([(x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1)])
|
||||
|
||||
output_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
img.save(output_path, 'PNG')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
remove_background(Path(sys.argv[1]), Path(sys.argv[2]))
|
||||
@@ -0,0 +1,220 @@
|
||||
/**
|
||||
* 从 web/医生替换图片/ 复制医生照片到 public/images/doctors/ 并更新 hospitals-content.ts
|
||||
*/
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
const WEB = path.resolve(__dirname, '..')
|
||||
const SOURCE_DIR = path.join(WEB, '医生替换图片')
|
||||
const OUT_DIR = path.join(WEB, 'public', 'images', 'doctors')
|
||||
const DATA_TS = path.join(WEB, 'data', 'hospitals-content.ts')
|
||||
const DOCTORS_ZH = path.join(WEB, 'data', 'locale', 'zh', 'doctors.zh.ts')
|
||||
|
||||
/** 文件名 -> doctor id(文件名歧义时显式指定) */
|
||||
const FILE_TO_DOCTOR_ID = {
|
||||
广州医科大学一院何建行: '广医附一院-何健行',
|
||||
湘雅医院内分泌李霞: '湘雅二院-李霞',
|
||||
省妇幼保健院刘王凯: '广东省妇幼保健院-刘王凯',
|
||||
港大深圳魏民新教授: '港大深圳-魏民新',
|
||||
'郑小飞 暨南大学附属第一医院院长': '暨大附一院-郑小飞',
|
||||
中山大学附属第六医院院宋斌: '中山六院-宋斌'
|
||||
}
|
||||
|
||||
const HOSPITAL_HINTS = [
|
||||
['中大口腔', '中大口腔'],
|
||||
['中山6院', '中山六院'],
|
||||
['中山六院', '中山六院'],
|
||||
['中山大学附属第六医院', '中山六院'],
|
||||
['中山三院', '中山三院'],
|
||||
['中山大学附属第一医院', '中山一院图'],
|
||||
['北京大学深圳医院', '北大深圳'],
|
||||
['北大深圳', '北大深圳'],
|
||||
['南方医科大学深圳医院', '南方深圳'],
|
||||
['南方医院', '南方医院'],
|
||||
['广东省中医院', '广东省中医院'],
|
||||
['广东省妇幼保健院', '广东省妇幼保健院'],
|
||||
['省妇幼保健院', '广东省妇幼保健院'],
|
||||
['广州医科大学一院', '广医附一院'],
|
||||
['珠江医院', '珠江医院'],
|
||||
['祈福医院', '祈福医院'],
|
||||
['祈福', '祈福医院'],
|
||||
['暨南大学附属第一医院', '暨大附一院'],
|
||||
['港大深圳', '港大深圳'],
|
||||
['湘雅', '湘雅二院']
|
||||
]
|
||||
|
||||
function normalizeStem(stem) {
|
||||
return stem.replace(/\u00a0/g, '').replace(/\s+/g, '')
|
||||
}
|
||||
|
||||
function extractDoctorName(stem) {
|
||||
const matches = [...stem.matchAll(/[\u4e00-\u9fff]{2,4}/g)].map((m) => m[0])
|
||||
return matches.at(-1) ?? ''
|
||||
}
|
||||
|
||||
function inferHospitalId(stem) {
|
||||
for (const [hint, hospitalId] of HOSPITAL_HINTS) {
|
||||
if (stem.includes(hint)) return hospitalId
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
||||
function loadDoctors() {
|
||||
const content = fs.readFileSync(DATA_TS, 'utf8')
|
||||
const doctorsMatch = content.match(
|
||||
/export const doctors: DoctorRecord\[\] = (\[[\s\S]*?\])\r?\n\r?\nexport function/
|
||||
)
|
||||
if (!doctorsMatch) throw new Error('无法解析 hospitals-content.ts')
|
||||
return JSON.parse(doctorsMatch[1])
|
||||
}
|
||||
|
||||
function loadDoctorZh() {
|
||||
const content = fs.readFileSync(DOCTORS_ZH, 'utf8')
|
||||
const match = content.match(/export const doctorZh: Record<string, DoctorZhFields> = (\{[\s\S]*\})\s*$/)
|
||||
if (!match) throw new Error('无法解析 doctors.zh.ts')
|
||||
return JSON.parse(match[1])
|
||||
}
|
||||
|
||||
function resolveDoctorId(filename, doctorZh) {
|
||||
const stem = path.parse(filename).name
|
||||
const normalized = normalizeStem(stem)
|
||||
|
||||
for (const [key, id] of Object.entries(FILE_TO_DOCTOR_ID)) {
|
||||
if (normalized.includes(normalizeStem(key))) return id
|
||||
}
|
||||
|
||||
const hospitalId = inferHospitalId(normalized)
|
||||
const byNameLength = Object.entries(doctorZh).sort(
|
||||
(a, b) => b[1].name.length - a[1].name.length
|
||||
)
|
||||
|
||||
for (const [id, zh] of byNameLength) {
|
||||
if (!normalized.endsWith(zh.name)) continue
|
||||
if (hospitalId && id.startsWith(`${hospitalId}-`)) return id
|
||||
}
|
||||
|
||||
for (const [id, zh] of byNameLength) {
|
||||
if (!normalized.endsWith(zh.name)) continue
|
||||
const sameName = Object.values(doctorZh).filter((d) => d.name === zh.name)
|
||||
if (sameName.length === 1) return id
|
||||
}
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
function outputExt(sourcePath) {
|
||||
const ext = path.extname(sourcePath).toLowerCase()
|
||||
if (ext === '.tiff' || ext === '.tif') return '.jpeg'
|
||||
return ext || '.jpeg'
|
||||
}
|
||||
|
||||
function writeHospitalsContent(hospitals, doctors) {
|
||||
const lines = [
|
||||
'/** Auto-generated by web/scripts/build-hospitals-data.py — do not edit manually */',
|
||||
'/** synced from Excel via web/scripts/sync-hospitals-from-excel.mjs */',
|
||||
'/** doctor images updated by web/scripts/replace-doctor-images.mjs */',
|
||||
'',
|
||||
'export type HospitalRecord = {',
|
||||
' id: string',
|
||||
' name: string',
|
||||
' intro: string',
|
||||
' url: string',
|
||||
' image: string',
|
||||
'}',
|
||||
'',
|
||||
'export type DoctorRecord = {',
|
||||
' id: string',
|
||||
' name: string',
|
||||
' department: string',
|
||||
' hospitalId: string',
|
||||
' hospitalName: string',
|
||||
' image: string',
|
||||
' /** Full specialist title for future hover bio */',
|
||||
' expertLabel: string',
|
||||
' /** Specialist bio — shown when available */',
|
||||
' expertInfo?: string',
|
||||
'}',
|
||||
'',
|
||||
`export const hospitals: HospitalRecord[] = ${JSON.stringify(hospitals, null, 2)}`,
|
||||
'',
|
||||
`export const doctors: DoctorRecord[] = ${JSON.stringify(doctors, null, 2)}`,
|
||||
'',
|
||||
'export function getHospitalById(id: string): HospitalRecord | undefined {',
|
||||
' return hospitals.find((h) => h.id === id)',
|
||||
'}',
|
||||
'',
|
||||
'export function getDoctorsByHospitalId(hospitalId: string): DoctorRecord[] {',
|
||||
' return doctors.filter((d) => d.hospitalId === hospitalId)',
|
||||
'}',
|
||||
''
|
||||
]
|
||||
fs.writeFileSync(DATA_TS, lines.join('\n'), 'utf8')
|
||||
}
|
||||
|
||||
async function convertAndCopy(sourcePath, destPath) {
|
||||
const ext = path.extname(sourcePath).toLowerCase()
|
||||
if (ext === '.tiff' || ext === '.tif') {
|
||||
const sharp = (await import('sharp')).default
|
||||
await sharp(sourcePath).jpeg({ quality: 90 }).toFile(destPath)
|
||||
return
|
||||
}
|
||||
fs.copyFileSync(sourcePath, destPath)
|
||||
}
|
||||
|
||||
async function main() {
|
||||
if (!fs.existsSync(SOURCE_DIR)) {
|
||||
throw new Error(`找不到目录:${SOURCE_DIR}`)
|
||||
}
|
||||
|
||||
fs.mkdirSync(OUT_DIR, { recursive: true })
|
||||
|
||||
const doctorZh = loadDoctorZh()
|
||||
const doctors = loadDoctors()
|
||||
const doctorById = Object.fromEntries(doctors.map((d) => [d.id, d]))
|
||||
|
||||
const files = fs.readdirSync(SOURCE_DIR).filter((f) => {
|
||||
const full = path.join(SOURCE_DIR, f)
|
||||
return fs.statSync(full).isFile() && !f.startsWith('.')
|
||||
})
|
||||
|
||||
const updated = []
|
||||
const skipped = []
|
||||
|
||||
for (const file of files) {
|
||||
const doctorId = resolveDoctorId(file, doctorZh)
|
||||
if (!doctorId || !doctorById[doctorId]) {
|
||||
skipped.push({ file, reason: '未匹配到 doctor id' })
|
||||
continue
|
||||
}
|
||||
|
||||
const outExt = outputExt(file)
|
||||
const destName = `${doctorId}${outExt}`
|
||||
const destPath = path.join(OUT_DIR, destName)
|
||||
await convertAndCopy(path.join(SOURCE_DIR, file), destPath)
|
||||
|
||||
doctorById[doctorId].image = `/images/doctors/${destName}`
|
||||
updated.push({ file, doctorId, image: doctorById[doctorId].image })
|
||||
}
|
||||
|
||||
const hospitals = JSON.parse(
|
||||
fs
|
||||
.readFileSync(DATA_TS, 'utf8')
|
||||
.match(/export const hospitals: HospitalRecord\[\] = (\[[\s\S]*?\])\r?\n\r?\nexport const doctors/)[1]
|
||||
)
|
||||
|
||||
writeHospitalsContent(hospitals, doctors)
|
||||
|
||||
console.log(`Updated ${updated.length} doctor images:`)
|
||||
for (const row of updated) console.log(` ${row.doctorId} <- ${row.file}`)
|
||||
if (skipped.length) {
|
||||
console.log(`Skipped ${skipped.length}:`)
|
||||
for (const row of skipped) console.log(` ${row.file}: ${row.reason}`)
|
||||
}
|
||||
}
|
||||
|
||||
main().catch((err) => {
|
||||
console.error(err)
|
||||
process.exit(1)
|
||||
})
|
||||
@@ -0,0 +1,396 @@
|
||||
/**
|
||||
* 以 public/documents/*.xlsx 为准,同步医院/专家数据。
|
||||
* - hospitals-excel-raw.json
|
||||
* - data/hospitals-content.ts
|
||||
* - data/locale/zh/doctors.zh.ts
|
||||
* - data/locale/zh/hospitals-names.zh.ts
|
||||
* - data/locale/zh/hospitals-intros.zh.ts
|
||||
*/
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import XLSX from 'xlsx'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
const WEB = path.resolve(__dirname, '..')
|
||||
const DOCS_DIR = path.join(WEB, 'public', 'documents')
|
||||
const DATA_TS = path.join(WEB, 'data', 'hospitals-content.ts')
|
||||
const RAW_JSON = path.join(__dirname, 'hospitals-excel-raw.json')
|
||||
const DOCTORS_ZH = path.join(WEB, 'data', 'locale', 'zh', 'doctors.zh.ts')
|
||||
const HOSPITAL_NAMES_ZH = path.join(WEB, 'data', 'locale', 'zh', 'hospitals-names.zh.ts')
|
||||
const HOSPITAL_INTROS_ZH = path.join(WEB, 'data', 'locale', 'zh', 'hospitals-intros.zh.ts')
|
||||
const EXPERT_INFO_EN = path.join(__dirname, 'doctor-expert-info-en.json')
|
||||
|
||||
const FOLDER_TO_HOSPITAL = {
|
||||
中山一院图: '中山大学附属第一医院(越秀院区、南沙院区)',
|
||||
广东省人民医院: '广东省人民医院',
|
||||
广东省妇幼保健院: '广东省妇幼保健院',
|
||||
孙逸仙纪念医院: '中山大学孙逸仙纪念医院',
|
||||
中山三院: '中山大学附属第三医院',
|
||||
中山大学中山眼科中心: '中山大学中山眼科中心',
|
||||
中山肿瘤: '中山大学肿瘤防治中心',
|
||||
中大口腔: '中山大学附属口腔医院',
|
||||
中山六院: '中山大学附属第六医院',
|
||||
南方医院: '南方医科大学南方医院',
|
||||
珠江医院: '南方医科大学珠江医院',
|
||||
暨大附一院: '暨南大学附属第一医院',
|
||||
广东省中医院: '广东省中医院',
|
||||
汕大附一院: '汕头大学医学院第一附属医院',
|
||||
广医附一院: '广州医科大学附属第一医院',
|
||||
广州市一院: '广州市第一人民医院',
|
||||
广妇儿中心: '广州医科大学附属妇女儿童医疗中心',
|
||||
深圳人医: '深圳市人民医院',
|
||||
北大深圳: '北京大学深圳医院',
|
||||
港大深圳: '香港大学深圳医院',
|
||||
南方深圳: '南方医科大学深圳医院',
|
||||
中山5院: '中山大学附属第五医院',
|
||||
珠海人民医院: '珠海市人民医院',
|
||||
祈福医院: '广东祈福医院',
|
||||
佛山复星: '佛山复星禅诚医院',
|
||||
湘雅二院: '中南大学湘雅二医院'
|
||||
}
|
||||
|
||||
const HOSPITAL_ZH_TO_ID = Object.fromEntries(
|
||||
Object.entries(FOLDER_TO_HOSPITAL).map(([id, name]) => [name, id])
|
||||
)
|
||||
|
||||
const HOSPITAL_EN = {
|
||||
中南大学湘雅二医院: 'The Second Xiangya Hospital of Central South University'
|
||||
}
|
||||
|
||||
const INTRO_EN = {
|
||||
中南大学湘雅二医院:
|
||||
'Tracing its roots to 1906, the Second Xiangya Hospital of Central South University is a Grade 3A comprehensive hospital in Changsha, Hunan, directly administered by the National Health Commission and affiliated with Central South University.'
|
||||
}
|
||||
|
||||
const CERT_EN = {
|
||||
湘雅国际医疗部于2016年通过JCI认证: 'The Xiangya International Medical Department received JCI accreditation in 2016.'
|
||||
}
|
||||
|
||||
const DEPT_EN = {
|
||||
内分泌科: 'Endocrinology',
|
||||
牙体牙髓病专科: 'Endodontics',
|
||||
口腔颌面外科: 'Oral & Maxillofacial Surgery',
|
||||
牙槽外科: 'Oral Surgery',
|
||||
口腔修复科: 'Prosthodontics',
|
||||
口腔正畸专科: 'Orthodontics'
|
||||
}
|
||||
|
||||
const NAME_EN_OVERRIDE = {
|
||||
区俊文: 'Ou Jun Wen',
|
||||
张志光: 'Zhang Zhi Guang',
|
||||
周智广: 'Zhou Zhi Guang',
|
||||
李霞: 'Li Xia'
|
||||
}
|
||||
|
||||
function extractDoctorName(expert) {
|
||||
const text = String(expert).trim()
|
||||
if (!text) return text
|
||||
const match = text.match(/([\u4e00-\u9fff]{2,4})$/)
|
||||
if (match) return match[1]
|
||||
const parts = text.split(/\s+/)
|
||||
return parts[parts.length - 1] || text
|
||||
}
|
||||
|
||||
function deptEn(zh) {
|
||||
const key = String(zh || '').trim()
|
||||
return DEPT_EN[key] || key
|
||||
}
|
||||
|
||||
function nameToEn(zhName) {
|
||||
if (NAME_EN_OVERRIDE[zhName]) return NAME_EN_OVERRIDE[zhName]
|
||||
return zhName
|
||||
}
|
||||
|
||||
function expertLabelEn(deptZh, nameEn) {
|
||||
const dept = deptEn(deptZh)
|
||||
return dept ? `${dept} — ${nameEn}` : nameEn
|
||||
}
|
||||
|
||||
function hospitalNameEn(zhName, excelEn, existingName) {
|
||||
return HOSPITAL_EN[zhName] || excelEn || existingName || zhName
|
||||
}
|
||||
|
||||
function formatIntroZh(intro, cert) {
|
||||
return [intro, cert].filter(Boolean).join('\n\n')
|
||||
}
|
||||
|
||||
function hospitalIntroEn(zhName, cert, existingIntro) {
|
||||
const intro = INTRO_EN[zhName]
|
||||
if (!intro) return existingIntro
|
||||
const certLine = cert ? CERT_EN[cert] || cert : ''
|
||||
return certLine ? `${intro}\n\n${certLine}` : intro
|
||||
}
|
||||
|
||||
function findDoctorImage(hospitalId, zhName, fallback) {
|
||||
const dir = path.join(WEB, 'public', 'images', 'doctors')
|
||||
if (!fs.existsSync(dir)) return fallback || '/images/doctor.jpg'
|
||||
const prefix = `${hospitalId}-${zhName}`
|
||||
const match = fs.readdirSync(dir).find((file) => file.startsWith(prefix))
|
||||
return match ? `/images/doctors/${match}` : fallback || '/images/doctor.jpg'
|
||||
}
|
||||
|
||||
function findHospitalImage(hospitalId, fallback) {
|
||||
const dir = path.join(WEB, 'public', 'images', 'hospitals')
|
||||
if (!fs.existsSync(dir)) return fallback || '/images/doctor.jpg'
|
||||
const match = fs.readdirSync(dir).find((file) => file.startsWith(hospitalId))
|
||||
return match ? `/images/hospitals/${match}` : fallback || '/images/doctor.jpg'
|
||||
}
|
||||
|
||||
function normalizeExpertInfo(value) {
|
||||
if (!value) return undefined
|
||||
const text = String(value)
|
||||
.replace(/\uFEFF/g, '')
|
||||
.replace(/\r\n/g, '\n')
|
||||
.trim()
|
||||
return text || undefined
|
||||
}
|
||||
|
||||
function findExcelFile() {
|
||||
const files = fs.readdirSync(DOCS_DIR).filter((name) => name.endsWith('.xlsx'))
|
||||
if (!files.length) throw new Error(`未找到 Excel:${DOCS_DIR}`)
|
||||
return path.join(DOCS_DIR, files.sort().at(-1))
|
||||
}
|
||||
|
||||
function parseExcel(filePath) {
|
||||
const wb = XLSX.readFile(filePath)
|
||||
const ws = wb.Sheets[wb.SheetNames[0]]
|
||||
const rows = XLSX.utils.sheet_to_json(ws, { header: 1, defval: null })
|
||||
|
||||
const hospitals = []
|
||||
let current = null
|
||||
|
||||
for (const row of rows.slice(1)) {
|
||||
const [hospital, dept, expert, hospitalEn, , expertInfo, intro, url, cert] = (
|
||||
row ?? []
|
||||
)
|
||||
.concat(Array(9).fill(null))
|
||||
.slice(0, 9)
|
||||
|
||||
if (hospital) {
|
||||
if (current) hospitals.push(current)
|
||||
current = {
|
||||
name: String(hospital).trim(),
|
||||
hospitalEn: hospitalEn ? String(hospitalEn).trim() : '',
|
||||
intro: intro ? String(intro).trim() : '',
|
||||
url: url ? String(url).trim() : '',
|
||||
cert: cert ? String(cert).trim() : '',
|
||||
doctors: []
|
||||
}
|
||||
}
|
||||
|
||||
if (current && expert) {
|
||||
const expertText = String(expert).trim()
|
||||
const deptText = dept ? String(dept).trim() : ''
|
||||
current.doctors.push({
|
||||
department: deptText,
|
||||
expert: expertText,
|
||||
name: extractDoctorName(expertText),
|
||||
expertInfo: normalizeExpertInfo(expertInfo)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (current) hospitals.push(current)
|
||||
return { rows, hospitals }
|
||||
}
|
||||
|
||||
function loadTsArrays() {
|
||||
const content = fs.readFileSync(DATA_TS, 'utf8')
|
||||
const hospitalsMatch = content.match(
|
||||
/export const hospitals: HospitalRecord\[\] = (\[[\s\S]*?\])\r?\n\r?\nexport const doctors/
|
||||
)
|
||||
const doctorsMatch = content.match(
|
||||
/export const doctors: DoctorRecord\[\] = (\[[\s\S]*?\])\r?\n\r?\nexport function/
|
||||
)
|
||||
if (!hospitalsMatch || !doctorsMatch) {
|
||||
throw new Error('无法解析 hospitals-content.ts')
|
||||
}
|
||||
return {
|
||||
hospitals: JSON.parse(hospitalsMatch[1]),
|
||||
doctors: JSON.parse(doctorsMatch[1])
|
||||
}
|
||||
}
|
||||
|
||||
function tsString(value) {
|
||||
return JSON.stringify(value)
|
||||
}
|
||||
|
||||
function writeRawJson(rows) {
|
||||
fs.writeFileSync(RAW_JSON, `${JSON.stringify(rows, null, 2)}\n`, 'utf8')
|
||||
}
|
||||
|
||||
function writeHospitalsContent(hospitals, doctors) {
|
||||
const lines = [
|
||||
'/** Auto-generated by web/scripts/build-hospitals-data.py — do not edit manually */',
|
||||
'/** synced from Excel via web/scripts/sync-hospitals-from-excel.mjs */',
|
||||
'',
|
||||
'export type HospitalRecord = {',
|
||||
' id: string',
|
||||
' name: string',
|
||||
' intro: string',
|
||||
' url: string',
|
||||
' image: string',
|
||||
'}',
|
||||
'',
|
||||
'export type DoctorRecord = {',
|
||||
' id: string',
|
||||
' name: string',
|
||||
' department: string',
|
||||
' hospitalId: string',
|
||||
' hospitalName: string',
|
||||
' image: string',
|
||||
' /** Full specialist title for future hover bio */',
|
||||
' expertLabel: string',
|
||||
' /** Specialist bio — shown when available */',
|
||||
' expertInfo?: string',
|
||||
'}',
|
||||
'',
|
||||
`export const hospitals: HospitalRecord[] = ${JSON.stringify(hospitals, null, 2)}`,
|
||||
'',
|
||||
`export const doctors: DoctorRecord[] = ${JSON.stringify(doctors, null, 2)}`,
|
||||
'',
|
||||
'export function getHospitalById(id: string): HospitalRecord | undefined {',
|
||||
' return hospitals.find((h) => h.id === id)',
|
||||
'}',
|
||||
'',
|
||||
'export function getDoctorsByHospitalId(hospitalId: string): DoctorRecord[] {',
|
||||
' return doctors.filter((d) => d.hospitalId === hospitalId)',
|
||||
'}',
|
||||
''
|
||||
]
|
||||
fs.writeFileSync(DATA_TS, lines.join('\n'), 'utf8')
|
||||
}
|
||||
|
||||
function writeDoctorsZh(doctorZh) {
|
||||
const lines = [
|
||||
"import type { DoctorRecord } from '~/data/hospitals-content'",
|
||||
'',
|
||||
"export type DoctorZhFields = Pick<DoctorRecord, 'name' | 'department' | 'hospitalName' | 'expertLabel' | 'expertInfo'>",
|
||||
'',
|
||||
'/** 专家中文 — 来源:医院-科室-专家 Excel */',
|
||||
`export const doctorZh: Record<string, DoctorZhFields> = ${JSON.stringify(doctorZh, null, 2)}`,
|
||||
''
|
||||
]
|
||||
fs.writeFileSync(DOCTORS_ZH, lines.join('\n'), 'utf8')
|
||||
}
|
||||
|
||||
function writeHospitalNamesZh(hospitalNames) {
|
||||
const lines = [
|
||||
'/** 医院中文名称 — 来源:医院-科室-专家 Excel */',
|
||||
'',
|
||||
'export const hospitalNameZh: Record<string, string> = {'
|
||||
]
|
||||
for (const hid of Object.keys(hospitalNames).sort()) {
|
||||
lines.push(` ${tsString(hid)}: ${tsString(hospitalNames[hid])},`)
|
||||
}
|
||||
lines.push('}', '')
|
||||
fs.writeFileSync(HOSPITAL_NAMES_ZH, lines.join('\n'), 'utf8')
|
||||
}
|
||||
|
||||
function writeHospitalIntrosZh(hospitalIntros) {
|
||||
const lines = [
|
||||
'/** 医院简介中文 — 来源:医院-科室-专家 Excel(含认证情况) */',
|
||||
'',
|
||||
'export const hospitalIntroZh: Record<string, string> = {'
|
||||
]
|
||||
for (const hid of Object.keys(hospitalIntros).sort()) {
|
||||
lines.push(` ${tsString(hid)}: ${tsString(hospitalIntros[hid])},`)
|
||||
}
|
||||
lines.push('}', '')
|
||||
fs.writeFileSync(HOSPITAL_INTROS_ZH, lines.join('\n'), 'utf8')
|
||||
}
|
||||
|
||||
function main() {
|
||||
const excelPath = findExcelFile()
|
||||
const expertInfoEn = JSON.parse(fs.readFileSync(EXPERT_INFO_EN, 'utf8'))
|
||||
const { rows, hospitals: excelHospitals } = parseExcel(excelPath)
|
||||
const { hospitals: oldHospitals, doctors: oldDoctors } = loadTsArrays()
|
||||
|
||||
const excelByName = Object.fromEntries(excelHospitals.map((h) => [h.name, h]))
|
||||
const oldHospitalById = Object.fromEntries(oldHospitals.map((h) => [h.id, h]))
|
||||
const oldDoctorById = Object.fromEntries(oldDoctors.map((d) => [d.id, d]))
|
||||
|
||||
const hospitalNamesZh = {}
|
||||
const hospitalIntrosZh = {}
|
||||
const hospitalsOut = []
|
||||
const excelDoctorIds = []
|
||||
const doctorZh = {}
|
||||
|
||||
for (const [hospitalId, hospitalName] of Object.entries(FOLDER_TO_HOSPITAL)) {
|
||||
const excel = excelByName[hospitalName]
|
||||
if (!excel) {
|
||||
console.warn(`WARN: Excel 中缺少医院 ${hospitalName}`)
|
||||
continue
|
||||
}
|
||||
|
||||
hospitalNamesZh[hospitalId] = hospitalName
|
||||
hospitalIntrosZh[hospitalId] = formatIntroZh(excel.intro, excel.cert)
|
||||
|
||||
const existing = oldHospitalById[hospitalId]
|
||||
hospitalsOut.push({
|
||||
id: hospitalId,
|
||||
name: hospitalNameEn(hospitalName, excel.hospitalEn, existing?.name),
|
||||
intro: hospitalIntroEn(hospitalName, excel.cert, existing?.intro),
|
||||
url: excel.url || existing?.url || '',
|
||||
image: findHospitalImage(hospitalId, existing?.image)
|
||||
})
|
||||
|
||||
for (const doc of excel.doctors) {
|
||||
const doctorId = `${hospitalId}-${doc.name}`
|
||||
excelDoctorIds.push(doctorId)
|
||||
|
||||
const fields = {
|
||||
name: doc.name,
|
||||
department: doc.department,
|
||||
hospitalName,
|
||||
expertLabel: doc.expert
|
||||
}
|
||||
if (doc.expertInfo) fields.expertInfo = doc.expertInfo
|
||||
doctorZh[doctorId] = fields
|
||||
}
|
||||
}
|
||||
|
||||
const orderedDoctorIds = [
|
||||
...oldDoctors.map((d) => d.id).filter((id) => excelDoctorIds.includes(id)),
|
||||
...excelDoctorIds.filter((id) => !oldDoctors.some((d) => d.id === id))
|
||||
]
|
||||
|
||||
const doctorsOut = orderedDoctorIds.map((doctorId) => {
|
||||
const doc = doctorZh[doctorId]
|
||||
const hospitalId = doctorId.slice(0, doctorId.lastIndexOf('-'))
|
||||
const hospital = hospitalsOut.find((h) => h.id === hospitalId)
|
||||
const existing = oldDoctorById[doctorId]
|
||||
const nameEn = existing?.name ?? nameToEn(doc.name)
|
||||
const infoZh = doc.expertInfo
|
||||
|
||||
const record = {
|
||||
id: doctorId,
|
||||
name: nameEn,
|
||||
department: existing?.department ?? deptEn(doc.department),
|
||||
hospitalId,
|
||||
hospitalName: hospital?.name ?? '',
|
||||
image: findDoctorImage(hospitalId, doc.name, existing?.image),
|
||||
expertLabel: existing?.expertLabel ?? expertLabelEn(doc.department, nameEn)
|
||||
}
|
||||
if (infoZh) record.expertInfo = expertInfoEn[doctorId] ?? infoZh
|
||||
return record
|
||||
})
|
||||
|
||||
const removedDoctors = oldDoctors.filter((d) => !excelDoctorIds.includes(d.id)).map((d) => d.id)
|
||||
const addedDoctors = excelDoctorIds.filter((id) => !oldDoctorById[id])
|
||||
|
||||
writeRawJson(rows)
|
||||
writeHospitalsContent(hospitalsOut, doctorsOut)
|
||||
writeDoctorsZh(doctorZh)
|
||||
writeHospitalNamesZh(hospitalNamesZh)
|
||||
writeHospitalIntrosZh(hospitalIntrosZh)
|
||||
|
||||
console.log(`Excel: ${path.basename(excelPath)}`)
|
||||
console.log(`Hospitals: ${hospitalsOut.length}, Doctors: ${doctorsOut.length}`)
|
||||
console.log(`Removed doctors: ${removedDoctors.length}${removedDoctors.length ? ` (${removedDoctors.join(', ')})` : ''}`)
|
||||
console.log(`Added doctors: ${addedDoctors.length}${addedDoctors.length ? ` (${addedDoctors.join(', ')})` : ''}`)
|
||||
console.log(`Expert bios: ${doctorsOut.filter((d) => d.expertInfo).length}`)
|
||||
}
|
||||
|
||||
main()
|
||||
@@ -0,0 +1,23 @@
|
||||
import mysql from 'mysql2/promise'
|
||||
|
||||
const conn = await mysql.createConnection({
|
||||
host: process.env.NUXT_MYSQL_HOST || '47.86.202.232',
|
||||
port: Number(process.env.NUXT_MYSQL_PORT || 3306),
|
||||
user: process.env.NUXT_MYSQL_USER || 'umedglobal',
|
||||
password: process.env.NUXT_MYSQL_PASSWORD || 'mysql_6ZdKPT',
|
||||
database: process.env.NUXT_MYSQL_DATABASE || 'umedglobal',
|
||||
})
|
||||
|
||||
const [before] = await conn.query('SELECT COUNT(*) AS c FROM news_articles')
|
||||
console.log('清空前记录数:', before[0].c)
|
||||
|
||||
await conn.query('TRUNCATE TABLE news_articles')
|
||||
await conn.query('ALTER TABLE news_articles AUTO_INCREMENT = 1')
|
||||
|
||||
const [after] = await conn.query('SELECT COUNT(*) AS c FROM news_articles')
|
||||
const [status] = await conn.query("SHOW TABLE STATUS LIKE 'news_articles'")
|
||||
|
||||
console.log('清空后记录数:', after[0].c)
|
||||
console.log('下一个自增 ID:', status[0]?.Auto_increment ?? 1)
|
||||
|
||||
await conn.end()
|
||||
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* 上传 deploy-pack.tar.gz 到服务器并解压
|
||||
* 用法(密钥): node scripts/upload-deploy.mjs
|
||||
* 用法(密码): $env:DEPLOY_SSH_PASS='你的root密码'; node scripts/upload-deploy.mjs
|
||||
*/
|
||||
import { readFileSync, existsSync } from 'node:fs'
|
||||
import { homedir } from 'node:os'
|
||||
import { join, dirname } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { Client } from 'ssh2'
|
||||
|
||||
const __dir = dirname(fileURLToPath(import.meta.url))
|
||||
const webRoot = join(__dir, '..')
|
||||
const packPath = join(webRoot, 'deploy-pack.tar.gz')
|
||||
const defaultKey = join(homedir(), '.ssh', 'id_ed25519_umed')
|
||||
|
||||
const config = {
|
||||
host: process.env.DEPLOY_SSH_HOST || '47.86.202.232',
|
||||
port: Number(process.env.DEPLOY_SSH_PORT || 22),
|
||||
username: process.env.DEPLOY_SSH_USER || 'root',
|
||||
password: process.env.DEPLOY_SSH_PASS || '',
|
||||
privateKeyPath: process.env.DEPLOY_SSH_KEY || defaultKey,
|
||||
remoteDir:
|
||||
process.env.DEPLOY_REMOTE_DIR ||
|
||||
'/opt/1panel/apps/openresty/openresty/www/sites/umedglobal.cn/index',
|
||||
}
|
||||
|
||||
function getConnectOptions() {
|
||||
const opts = {
|
||||
host: config.host,
|
||||
port: config.port,
|
||||
username: config.username,
|
||||
}
|
||||
if (config.password) {
|
||||
opts.password = config.password
|
||||
return opts
|
||||
}
|
||||
if (existsSync(config.privateKeyPath)) {
|
||||
opts.privateKey = readFileSync(config.privateKeyPath)
|
||||
return opts
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
function execCommand(conn, command) {
|
||||
return new Promise((resolve, reject) => {
|
||||
conn.exec(command, (err, stream) => {
|
||||
if (err) return reject(err)
|
||||
let stdout = ''
|
||||
let stderr = ''
|
||||
stream
|
||||
.on('close', (code) => {
|
||||
if (code === 0) resolve(stdout)
|
||||
else reject(new Error(stderr || stdout || `命令失败 (exit ${code}): ${command}`))
|
||||
})
|
||||
.on('data', (d) => {
|
||||
stdout += d.toString()
|
||||
process.stdout.write(d)
|
||||
})
|
||||
stream.stderr.on('data', (d) => {
|
||||
stderr += d.toString()
|
||||
process.stderr.write(d)
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function uploadFile(conn, localPath, remotePath) {
|
||||
return new Promise((resolve, reject) => {
|
||||
conn.sftp((err, sftp) => {
|
||||
if (err) return reject(err)
|
||||
const data = readFileSync(localPath)
|
||||
sftp.writeFile(remotePath, data, (writeErr) => {
|
||||
sftp.end()
|
||||
if (writeErr) reject(writeErr)
|
||||
else resolve()
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
async function main() {
|
||||
if (!existsSync(packPath)) {
|
||||
console.error('缺少 deploy-pack.tar.gz,请先打包: tar -czf deploy-pack.tar.gz .output .env')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const connectOpts = getConnectOptions()
|
||||
if (!connectOpts) {
|
||||
console.error('无法连接:请设置 DEPLOY_SSH_PASS,或在服务器添加部署密钥后重试')
|
||||
console.error('密钥路径:', config.privateKeyPath)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const conn = new Client()
|
||||
await new Promise((resolve, reject) => {
|
||||
conn.on('ready', resolve).on('error', reject).connect(connectOpts)
|
||||
})
|
||||
|
||||
try {
|
||||
console.log('SSH 已连接')
|
||||
console.log(`创建远程目录 ${config.remoteDir} ...`)
|
||||
await execCommand(conn, `mkdir -p ${config.remoteDir}`)
|
||||
|
||||
const remoteTar = `${config.remoteDir}/deploy-pack.tar.gz`
|
||||
const sizeMb = (readFileSync(packPath).length / 1024 / 1024).toFixed(1)
|
||||
console.log(`上传 ${sizeMb} MB -> ${remoteTar}`)
|
||||
await uploadFile(conn, packPath, remoteTar)
|
||||
|
||||
console.log('上传完成,正在解压...')
|
||||
await execCommand(
|
||||
conn,
|
||||
[
|
||||
`cd ${config.remoteDir}`,
|
||||
'tar -xzf deploy-pack.tar.gz',
|
||||
'rm -f deploy-pack.tar.gz',
|
||||
'ls -la .output/server/index.mjs .env',
|
||||
'echo DEPLOY_EXTRACT_OK',
|
||||
].join(' && ')
|
||||
)
|
||||
|
||||
console.log('部署包已上传并解压到', config.remoteDir)
|
||||
} catch (error) {
|
||||
console.error('部署失败:', error.message)
|
||||
process.exit(1)
|
||||
} finally {
|
||||
conn.end()
|
||||
}
|
||||
}
|
||||
|
||||
main()
|
||||
@@ -0,0 +1,30 @@
|
||||
"""比对 hospitals-content.ts 与 Excel 生成的 doctorZh 覆盖情况。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
WEB = Path(__file__).resolve().parents[1]
|
||||
content = (WEB / "data" / "hospitals-content.ts").read_text(encoding="utf-8")
|
||||
doctor_ids = re.findall(r'"id": "([^"]+)"[\s\S]*?"hospitalId"', content)
|
||||
# only doctor block ids - crude: get all ids after doctors export
|
||||
start = content.index("export const doctors")
|
||||
block = content[start:]
|
||||
doctor_ids = re.findall(r'\{\s*"id": "([^"]+)"', block)
|
||||
|
||||
doctors_ts = (WEB / "data" / "locale" / "zh" / "doctors.zh.ts").read_text(encoding="utf-8")
|
||||
zh_ids = set(re.findall(r'"([^"]+)": \{', doctors_ts))
|
||||
|
||||
missing = [d for d in doctor_ids if d not in zh_ids]
|
||||
extra = sorted(zh_ids - set(doctor_ids))
|
||||
|
||||
print(f"hospitals-content doctors: {len(doctor_ids)}")
|
||||
print(f"doctorZh entries: {len(zh_ids)}")
|
||||
out = WEB / "scripts" / "_missing-doctors.json"
|
||||
out.write_text(json.dumps({"missing": missing, "extra": extra}, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||
print(f"missing in doctorZh ({len(missing)}): see {out.name}")
|
||||
if extra:
|
||||
print(f"extra in doctorZh ({len(extra)}):")
|
||||
for e in extra[:10]:
|
||||
print(" ", e)
|
||||
@@ -0,0 +1,19 @@
|
||||
import mysql from 'mysql2/promise'
|
||||
|
||||
const conn = await mysql.createConnection({
|
||||
host: process.env.NUXT_MYSQL_HOST || '47.86.202.232',
|
||||
port: Number(process.env.NUXT_MYSQL_PORT || 3306),
|
||||
user: process.env.NUXT_MYSQL_USER || 'umedglobal',
|
||||
password: process.env.NUXT_MYSQL_PASSWORD || 'mysql_6ZdKPT',
|
||||
database: process.env.NUXT_MYSQL_DATABASE || 'umedglobal',
|
||||
})
|
||||
|
||||
const [roles] = await conn.query('SELECT id, name, code FROM admin_roles')
|
||||
const [users] = await conn.query('SELECT id, username, role_id FROM admin_users')
|
||||
const [seoCount] = await conn.query('SELECT COUNT(*) AS c FROM page_seo')
|
||||
|
||||
console.log('admin_roles:', roles)
|
||||
console.log('admin_users:', users)
|
||||
console.log('page_seo count:', seoCount[0].c)
|
||||
|
||||
await conn.end()
|
||||
@@ -0,0 +1,149 @@
|
||||
2|Your Guide to Using WeChat Pay for Medical Tourism in China
|
||||
3|In China, WeChat functions as an integrated digital platform encompassing messaging, social networking, and financial transactions. For international patients, mobile payment systems like WeChat Pay and Alipay are standard, as mainland China operates primarily as a cashless economy. Many local vendors, transportation services, and commercial venues exclusively accept these mobile payment methods.
|
||||
5|When arranging medical travel, payment infrastructure is a primary logistical consideration. Because international credit cards face limited acceptance, establishing a localized digital payment method is highly recommended to manage day-to-day and healthcare-related expenses efficiently.
|
||||
7|As an international medical concierge service, UMedGlobal provides logistical support for patients navigating the healthcare system. This guide outlines the standard procedures for installing, verifying, and utilizing WeChat Pay to facilitate secure financial transactions during your medical tourism in China.
|
||||
9|The Role of WeChat Pay in Facilitating Medical Tourism in China
|
||||
10|For international patients, managing the financial components of healthcare in China presents specific logistical challenges. WeChat Pay serves as a primary mobile payment infrastructure, utilized for a broad range of transactions, from clinical hospital invoices to everyday retail purchases.
|
||||
11|
|
||||
12|The integration of WeChat Pay into a patient’s itinerary offers several functional advantages:
|
||||
14|Transaction Efficiency: Patients can settle medical bills, pharmaceutical costs, and ancillary expenses through standardized QR code scanning.
|
||||
17|Reduced Cash Dependency: The platform minimizes the necessity for large physical currency holdings and addresses the limited acceptance of international credit cards at many local institutions.
|
||||
20|Financial Documentation: The application maintains a consolidated digital record of all healthcare-related and personal expenditures in one interface.
|
||||
23|Adopting these digital payment standards is a routine component of coordinating medical travel to China.
|
||||
26|Logistical Support for Medical Payments
|
||||
27|While the WeChat Pay setup process is standardized, UMedGlobal provides technical assistance to ensure patients complete the necessary verification procedures prior to their arrival in China. Pre-departure preparation is recommended to prevent transaction delays during the medical journey.
|
||||
28|Scope of Service: International Medical Concierge
|
||||
29|UMedGlobal operates strictly as a medical concierge and logistics coordinator; we do not provide medical advice, diagnosis, or treatment. Our role is to act as a logistical facilitator for individuals participating in medical tourism in China. Our services include coordinating clinical appointments, facilitating communication between patients and hospital staff, and assisting with administrative requirements such as payment systems. By managing these logistical components, we enable patients to prioritize their clinical care and recovery process.
|
||||
30|Implementation of WeChat Pay for Medical Travel to China
|
||||
31|Section 1: Application Installation and Account Registration
|
||||
33|Download: Locate the international version of the WeChat application via the Apple App Store or Google Play Store. To ensure optimal security and functional compatibility, verify that you are installing the most recent update.
|
||||
36|Registration: Account creation requires a valid mobile phone number. While a Chinese mainland (+86) number is not required, the international number must be capable of receiving SMS verification codes.
|
||||
39|Data Entry: During the setup process, users are required to input their full legal name, region, and mobile number, and establish a unique password. Access to the platform is contingent upon the review and acceptance of the official Terms of Service.
|
||||
42|Interface Localization: The application interface can be localized to English by navigating to: Me > Settings > General > Language.
|
||||
45|2. Security Verification and International Card Integration
|
||||
46|Following registration, WeChat implements a mandatory security verification process. To utilize the payment functionality, users must link a compatible bank card to the interface.
|
||||
47|
|
||||
48|Supported International Card Networks
|
||||
49|WeChat Pay is compatible with several international card networks, which is essential for managing logistics during Medical Tourism China:
|
||||
51|Visa
|
||||
54|Mastercard
|
||||
57|JCB
|
||||
60|Discover Global Network
|
||||
63|American Express
|
||||
66|Diners Club International
|
||||
68|Procedures for Linking a Card
|
||||
70|For new users or during the initial verification sequence:
|
||||
73|Respond to the system prompt to add a bank card.
|
||||
76|Input the card information and select Next.
|
||||
79|The system may deduct a nominal verification fee (e.g., $0.05 USD) to confirm card validity.
|
||||
82|Establish a unique 6-digit payment password; this is required for every subsequent transaction.
|
||||
85|Verify the mobile phone number using a One-Time Password (OTP).
|
||||
88|For existing users activating the payment service:
|
||||
91|Navigate to Me > Services.
|
||||
94|If the "Services" option is not visible, it can be enabled via Settings > General > Tools > WeChat Pay > Enable.
|
||||
97|Select Wallet > Bank Cards > Add A Bank Card.
|
||||
100|Enter the required card details and configure a 6-digit PIN for secure access.
|
||||
104|3. Transaction Limits and Identity Verification
|
||||
105|Initial Transaction Capacity:
|
||||
106|Upon successfully linking an international bank card, users are assigned a cumulative transaction limit of RMB 15,000 (approximately $2,000 USD). This initial limit allows for immediate use within mainland China without the requirement for additional personal identification.
|
||||
107|Verification for Increased Limits: To facilitate higher transaction volumes, users must complete a "real-name authentication" process. This requirement ensures compliance with Chinese regulatory frameworks, including anti-money laundering (AML) protocols.
|
||||
108|
|
||||
109|Authentication Steps:
|
||||
111|Navigate to Me > Services > Wallet (or Money).
|
||||
114|Select any inactive service (e.g., Receive Money or Reward Code) and click Complete Now.
|
||||
117|Provide a valid identification document. Accepted documents for international patients include:
|
||||
120|Foreign Passport
|
||||
123|Mainland Travel Permit for Hong Kong, Macau, or Taiwan Residents
|
||||
126|Foreign Permanent Residence Card
|
||||
129|Upload a clear image of the document as prompted. Verification is typically processed shortly after submission.
|
||||
132|Adjusted Limits for Verified Users:
|
||||
134|Single Transaction Limit: Up to $5,000 USD.
|
||||
137|Annual Transaction Limit: Up to $50,000 USD.
|
||||
140|Technical Note:
|
||||
141|Ensure your Default Payment is set to the linked international bank card. Please note that international cards currently cannot be used to top up a Wallet Balance directly.
|
||||
142|4. Alternative Payment Solution: TourCard
|
||||
143|For patients whose primary international cards are not supported, or for those arriving for short-term medical consultations, the TourCard serves as a secondary payment alternative.
|
||||
145|Functionality: Issued by the Bank of Shanghai, the TourCard is a prepaid virtual account that facilitates mobile payments via WeChat Pay and Alipay. It is specifically designed to bypass the comprehensive Know Your Customer (KYC) documentation typically required for standard accounts. The account can be funded directly using international credit or debit cards.
|
||||
148|Specifications and Limits:
|
||||
151|Maximum Balance: A storage limit of ¥10,000 applies.
|
||||
154|Validity Period: The virtual card remains active for 180 days.
|
||||
157|Service Fees: A 5% fee is applied to each top-up transaction.
|
||||
160|Refund Policy: Any residual balance is automatically reconciled and refunded to the original source card after the 180-day validity period expires.
|
||||
162|5. Using WeChat Pay for Payments
|
||||
163|Upon successful configuration, the operational workflows for WeChat Pay are as follows:
|
||||
165|Accessing the Payment Interface: To generate a unique payment QR code, select the "Money" icon within the application interface.
|
||||
168|Transaction Methods: Users may facilitate payments via two primary methods:
|
||||
171|User-Initiated Scanning: Utilize the application’s scanner to capture the merchant’s static QR code.
|
||||
174|Merchant-Initiated Scanning: Present the personal QR code for the vendor to scan using a Point of Sale (POS) terminal.
|
||||
176|This digital payment infrastructure is widely integrated across sectors essential to Medical Tourism China, including healthcare facilities, hospitality, transportation, and retail venues.
|
||||
177|6. Secondary WeChat Functionalities for Medical Travel Logistics
|
||||
178|Communication and Translation Tools
|
||||
179|WeChat facilitates encrypted text, voice, and video communication, including group chat capabilities for coordinating with care teams. For international patients, the platform includes an integrated translation feature; long-pressing any message converts Chinese text into English to assist in clear communication.
|
||||
180|
|
||||
181|Mini Programs for Logistical Support The "Mini Programs" infrastructure allows users to access essential third-party services directly within the application. These are particularly relevant for managing the practicalities of medical tourism in China:
|
||||
183|Transportation: Didi Chuxing for ride-hailing and 12306 for high-speed rail reservations.
|
||||
186|Logistics & Sustenance: Food delivery via Ele.me or Meituan, and accommodation management through Ctrip or Lvyou.
|
||||
189|Healthcare & Public Services: Access to hospital registration portals, public bike-sharing (HelloBike, Meituan Bike), and utility payment systems.
|
||||
191|Operational Features
|
||||
193|QR Code Scanner: Used for contact exchange, information retrieval at medical or cultural sites, and accessing public Wi-Fi networks.
|
||||
196|Location Services: Real-time location sharing is available to facilitate coordination with UMedGlobal support staff or travel companions.
|
||||
199|Social Integration: The "Moments" feature allows for the sharing of status updates and images within a user's contact network.
|
||||
201|7. Operational Limitations for International Users
|
||||
202|While mobile payments facilitate logistics during medical tourism in China, international users should be aware of specific functional and regulatory constraints:
|
||||
204|Peer-to-Peer (P2P) Transactions: Direct fund transfers between individual accounts are generally restricted for users unless the account is linked to a verified Chinese mainland bank account. Alternative services, such as TourCard, may offer limited functionality for funding and transfers via international cards.
|
||||
207|Wallet Balance Top-up Restrictions: The WeChat "Wallet Balance" feature currently only supports top-ups from bank cards issued by Chinese financial institutions; international credit or debit cards cannot be used to increase this digital balance.
|
||||
210|Fund Withdrawal: It is not possible to withdraw or transfer funds from a WeChat Pay digital wallet back to a non-Chinese bank account.
|
||||
213|Mini Program Accessibility: Certain integrated services (Mini Programs) may require a Chinese mainland mobile number for full authentication and access.
|
||||
215|8. Fee Structure and Currency Conversion
|
||||
216|For patients utilizing mobile payments during their Medical Tourism China itinerary, understanding the associated costs is essential for logistical planning.
|
||||
218|Transaction Fees
|
||||
220|Transactions under 200 RMB: Individual payments below 200 RMB (approximately $28 USD) are exempt from platform-level transaction fees.
|
||||
223|Transactions over 200 RMB: Payments exceeding this threshold are subject to a 3% service fee.
|
||||
226|Standard Local Payments: Beyond the 3% fee for higher-value transactions, the platform generally does not impose additional internal processing fees for standard payments within mainland China.
|
||||
228|Currency Conversion and Rates
|
||||
230|Financial Institution Fees: International cardholders may incur currency conversion charges from their issuing bank, typically ranging from 1% to 3%.
|
||||
233|Exchange Rate Determination: The applicable exchange rate is calculated based on the current rates provided by the card issuer (e.g., Visa, Mastercard) and the patient's specific financial institution.
|
||||
235|9. Security and Technical Support
|
||||
236|Security Protocols
|
||||
237|The WeChat Pay platform utilizes encryption standards and multi-factor authentication to protect user data. Security features include AES encryption and various biometric verification options, such as Face ID, fingerprint scanning, and palm vein recognition technology. These authentication layers are implemented to secure financial transactions for international patients throughout their medical tourism in China.
|
||||
238|
|
||||
239|Customer Support Channels
|
||||
240|For assistance with transaction issues or account navigation, the following support resources are available:
|
||||
242|English-Speaking Hotline: +86-755-8601-0333 (Available 09:00 – 18:00 China Standard Time).
|
||||
245|24/7 Secondary Hotline: +86-571-2688-6000.
|
||||
248|Tencent Customer Service: 4006 700 700.
|
||||
251|In-App Assistance: Navigate to Me > Service > Help Center to access the AI-assisted translation and support interface.
|
||||
253|10. Logistical Recommendations for Digital Payments
|
||||
255|Minimum Balance Maintenance: It is recommended to maintain a wallet balance of at least ¥50 to prevent transaction declines during clinical or daily interactions.
|
||||
258|Offline Functionality: Activating the "Offline Payment" feature (Wallet > Offline Payment) enables transactions in environments with limited internet connectivity.
|
||||
261|Security Protocols: Exercise caution regarding fraudulent solicitations; legitimate security verification processes do not involve requests for peer-to-peer fund transfers.
|
||||
264|Platform Redundancy: International patients often utilize both WeChat Pay and Alipay to ensure comprehensive merchant coverage. While WeChat Pay is integrated into the primary communication platform, Alipay offers specialized features for international users, such as "Tour Pass," which facilitates direct international card linking.
|
||||
267|Banking Pre-Authorization: Prior to departure, confirm that your financial institution has authorized international transaction permissions and clarify any applicable foreign exchange or service fees.
|
||||
270|Adhering to these technical configurations facilitates the systematic management of expenses for your medical tourism in China. Establishing reliable payment infrastructure ensures that logistical requirements are addressed prior to the commencement of medical treatment.
|
||||
271|UMedGlobal Support Services for Medical Tourism China
|
||||
272|UMedGlobal provides integrated logistical coordination for international patients beyond payment assistance. For individuals participating in medical tourism in China, we manage several key administrative and support functions to facilitate the patient journey:
|
||||
274|Hospital and Specialist Selection: We assist in identifying and connecting patients with medical institutions and licensed specialists that align with their specific clinical requirements.
|
||||
277|Appointment Coordination: Our services include the scheduling of medical consultations, diagnostic procedures, treatments, and follow-up care.
|
||||
280|Medical Interpretation: We provide professional medical interpretation services to support accurate communication between patients and healthcare providers.
|
||||
283|Travel and Accommodation Logistics: We facilitate the administrative aspects of travel, including visa documentation support and the coordination of accommodation arrangements.
|
||||
285|Frequently Asked Questions (FAQ)
|
||||
286|Q: Do I need a Chinese bank account to use WeChat Pay for medical tourism in China?
|
||||
287|A: A Chinese bank account is not strictly required. International patients can link compatible foreign bank cards directly to the WeChat Pay platform. Supported international networks include Visa, Mastercard, JCB, Discover Global Network, American Express, and Diners Club International.
|
||||
288|
|
||||
289|Q: What are the transaction limits when using an international card on WeChat Pay?
|
||||
290|A: Upon initially linking an international card, users are assigned a cumulative transaction limit of RMB 15,000 (approximately $2,000 USD). To facilitate higher transaction volumes for clinical invoices, patients must complete a real-name authentication process using a valid identification document, such as a foreign passport. Following verification, the single transaction limit increases to $5,000 USD, and the annual limit increases to $50,000 USD.
|
||||
291|
|
||||
292|Q: Are there transaction fees when paying medical expenses with WeChat Pay?
|
||||
293|A: For individual transactions under 200 RMB, the platform does not impose a transaction fee. Payments exceeding 200 RMB are subject to a 3% platform service fee. Furthermore, international cardholders should anticipate currency conversion charges from their issuing financial institution, which typically range from 1% to 3%.
|
||||
294|
|
||||
295|Q: Can I use an international credit card to add funds to my WeChat Wallet balance?
|
||||
296|A: No, the WeChat "Wallet Balance" feature currently only permits top-ups from bank cards issued by Chinese financial institutions. International credit or debit cards cannot be used to increase this digital balance. Instead, funds are deducted directly from the linked international card at the time of the transaction.
|
||||
297|
|
||||
298|Q: What payment alternative is available if my primary international card is not supported?
|
||||
299|A: Patients can utilize the TourCard, a prepaid virtual account issued by the Bank of Shanghai. This account bypasses standard KYC documentation requirements and can be funded directly with international cards. It has a storage limit of ¥10,000 and remains active for 180 days.
|
||||
300|
|
||||
301|Q: Does UMedGlobal provide direct medical treatments or process clinical payments?
|
||||
302|A: UMedGlobal operates strictly as a medical concierge and logistics coordinator. We assist with administrative requirements, including providing logistical support for payment systems, but we do not provide medical advice or treatment. All medical treatments are conducted independently by licensed physicians at the respective clinical institutions.
|
||||
303|Logistical Support for Medical Tourism China
|
||||
304|Logistical coordination is a fundamental component of medical travel. Contact UMedGlobal to inquire how our concierge services facilitate hospital communication and travel arrangements for medical tourism in China.
|
||||
305|Contact UMedGlobal
|
||||
@@ -0,0 +1,266 @@
|
||||
import { readFileSync, writeFileSync } from 'node:fs'
|
||||
import { join, dirname } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
|
||||
const pages = [
|
||||
{
|
||||
file: 'pages/patient-guide/china-healthcare-a-foreigners-definitive-guide.vue',
|
||||
bundle: 'chinaHealthcareForeignerContentBundle',
|
||||
module: 'china-healthcare-foreigner-content',
|
||||
heroField: 'foreignerHealthcareHero.title',
|
||||
zhMarker: '国际患者',
|
||||
keys: [
|
||||
'foreignerHealthcareHero',
|
||||
'triageIntro',
|
||||
'triageCategories',
|
||||
'section1Banner',
|
||||
'hospitalSelectionIntro',
|
||||
'hospitalTypeTable',
|
||||
'hospitalRegistryNote',
|
||||
'section2Banner',
|
||||
'section3Banner',
|
||||
'appointmentAccess',
|
||||
'section4Banner',
|
||||
'clinicalPreparation',
|
||||
'section5Banner',
|
||||
'clinicalWorkflow',
|
||||
'section6Banner',
|
||||
'financialAdmin',
|
||||
'section7Banner',
|
||||
'postTreatment',
|
||||
'section8Banner',
|
||||
'logisticalGuidelines',
|
||||
'conciergeSection',
|
||||
'foreignerHealthcareFaq',
|
||||
'foreignerHealthcareClosing'
|
||||
],
|
||||
head: {
|
||||
zhTitle: '国际患者中国医疗旅游指南 | UMedGlobal',
|
||||
enTitle: "China Healthcare: A Foreigner's Definitive Guide | UMedGlobal",
|
||||
zhDesc:
|
||||
'外籍人士使用中国医疗体系的完整指南:分诊、选院、预约、临床流程、支付、随访及医疗礼宾支持。',
|
||||
enDesc:
|
||||
"Definitive guide for foreigners navigating China's healthcare system: triage, hospital selection, appointments, clinical workflow, payments, follow-up, and concierge support for medical tourism."
|
||||
}
|
||||
},
|
||||
{
|
||||
file: 'pages/patient-guide/china-medical-tourism-visa-guide.vue',
|
||||
bundle: 'visaGuideContentBundle',
|
||||
module: 'visa-guide-content',
|
||||
heroField: 'visaGuideHero.title',
|
||||
zhMarker: '中国医疗旅游',
|
||||
keys: [
|
||||
'visaGuideHero',
|
||||
'visaGuideBanner',
|
||||
'visaClassification',
|
||||
'visaByComplexity',
|
||||
'visaGuideCrossLinks',
|
||||
'visaFreeOverview',
|
||||
'visaFreePriority',
|
||||
'keyConsiderations',
|
||||
'visaAdminBody',
|
||||
'adminSupportBanner',
|
||||
'visaGuidelinesTable',
|
||||
'visaFreeCompareTable',
|
||||
'visaGuideReferences',
|
||||
'visaGuideFaq',
|
||||
'visaGuideClosing'
|
||||
],
|
||||
head: {
|
||||
zhTitle: '中国医疗旅游签证指南 | UMedGlobal',
|
||||
enTitle: 'China Medical Tourism Visa Guide | UMedGlobal',
|
||||
zhDesc:
|
||||
'中国医疗旅游签证指南:L、S2、S1 签证类别、免签入境政策及国际患者行政支持。',
|
||||
enDesc:
|
||||
'Guide to China medical tourism visas: L, S2, and S1 visa categories, visa-free entry policies, and administrative support for international patients seeking treatment in China.'
|
||||
}
|
||||
},
|
||||
{
|
||||
file: 'pages/patient-guide/how-to-get-china-medical-s1-s2-visa.vue',
|
||||
bundle: 's1s2VisaContentBundle',
|
||||
module: 's1-s2-visa-content',
|
||||
heroField: 's1s2Hero.title',
|
||||
zhMarker: '中国医疗签证',
|
||||
keys: [
|
||||
's1s2Hero',
|
||||
's1s2ClassificationBanner',
|
||||
's1s2Classification',
|
||||
's1s2Overview',
|
||||
's1Visa',
|
||||
's2Visa',
|
||||
's1s2Extension',
|
||||
's1s2CompareTable',
|
||||
's1s2MedicalCert',
|
||||
's1s2ApplicationGuide',
|
||||
's1s2AdminSpecs',
|
||||
's1s2SubmissionGuidelines',
|
||||
's1s2Summary',
|
||||
's1s2Faq',
|
||||
's1s2Closing'
|
||||
],
|
||||
head: {
|
||||
zhTitle: '如何申请中国医疗 S1/S2 签证 | UMedGlobal',
|
||||
enTitle: 'How To Get China Medical S1/S2 Visa | UMedGlobal',
|
||||
zhDesc:
|
||||
'中国 S1/S2 医疗签证分步指南:资格、材料、申请流程、延期及 UMedGlobal 礼宾支持。',
|
||||
enDesc:
|
||||
'Step-by-step guide to China S1 and S2 medical visas: eligibility, documentation, application procedures, extensions, and UMedGlobal concierge support for international patients.'
|
||||
}
|
||||
},
|
||||
{
|
||||
file: 'pages/patient-guide/explore-china-visa-free.vue',
|
||||
bundle: 'exploreChinaVisaFreeContentBundle',
|
||||
module: 'explore-china-visa-free-content',
|
||||
heroField: 'visaFreeHero.title',
|
||||
zhMarker: '免签入境',
|
||||
keys: [
|
||||
'visaFreeHero',
|
||||
'visaFreeAccessBanner',
|
||||
'visaFreeAccessIntro',
|
||||
'whyChinaMedical',
|
||||
'visaFreeEligibility',
|
||||
'adminGuidelines',
|
||||
'policyBackground',
|
||||
'umedFacilitation',
|
||||
'medicalServicesAccessible',
|
||||
'medicalServicesCta',
|
||||
'countriesTableBanner',
|
||||
'countriesTable',
|
||||
'mutualExemptionNote',
|
||||
'visaFreeReferences',
|
||||
'visaFreeFaq',
|
||||
'visaFreeClosing'
|
||||
],
|
||||
head: {
|
||||
zhTitle: '探索中国免签:医疗出行门户 | UMedGlobal',
|
||||
enTitle: 'Explore China Visa-Free: Your Gateway to Medical Care | UMedGlobal',
|
||||
zhDesc:
|
||||
'中国 30 天免签入境政策指南:各国资格、入境要求、可及治疗及 UMedGlobal 礼宾支持。',
|
||||
enDesc:
|
||||
"Guide to China's 30-day visa-free entry policy for international medical patients: eligibility by country, entry requirements, accessible treatments, and UMedGlobal concierge support."
|
||||
}
|
||||
},
|
||||
{
|
||||
file: 'pages/patient-guide/how-to-set-up-use-alipay-for-medical-tourism.vue',
|
||||
bundle: 'alipayPayContentBundle',
|
||||
module: 'alipay-pay-content',
|
||||
heroField: 'alipayPayHero.pageTitle',
|
||||
zhMarker: '支付宝',
|
||||
keys: [
|
||||
'alipayPayHero',
|
||||
'alipayPayRoleBanner',
|
||||
'alipayPayRole',
|
||||
'alipayPayRegistrationBanner',
|
||||
'alipayPayRegistration',
|
||||
'alipayPayFinancialBanner',
|
||||
'alipayPayFinancial',
|
||||
'alipayPayUsageBanner',
|
||||
'alipayPayUsage',
|
||||
'alipayPayConstraintsBanner',
|
||||
'alipayPayConstraints',
|
||||
'alipayPayChallengesBanner',
|
||||
'alipayPayChallenges',
|
||||
'alipayPayConcierge',
|
||||
'alipayPayRegulatoryBanner',
|
||||
'alipayPayRegulatory',
|
||||
'alipayPayFaq',
|
||||
'alipayPayClosing'
|
||||
],
|
||||
head: {
|
||||
zhTitle: '支付宝设置与使用指南(医疗旅游)| UMedGlobal',
|
||||
enTitle: 'How to Set Up & Use Alipay for Medical Tourism | UMedGlobal',
|
||||
zhDesc:
|
||||
'医疗旅游支付宝指南:注册、实名认证、绑定国际卡、TourCard、扫码支付、限额及礼宾支持。',
|
||||
enDesc:
|
||||
'Guide to setting up and using Alipay for medical tourism in China: registration, KYC, international card linking, TourCard, QR payments, limits, and UMedGlobal concierge support.'
|
||||
}
|
||||
},
|
||||
{
|
||||
file: 'pages/patient-guide/secure-convenient-wechat-pay-for-medical-tourism.vue',
|
||||
bundle: 'wechatPayContentBundle',
|
||||
module: 'wechat-pay-content',
|
||||
heroField: 'wechatPayHero.pageTitle',
|
||||
zhMarker: '微信支付',
|
||||
keys: [
|
||||
'wechatPayHero',
|
||||
'wechatPayRoleBanner',
|
||||
'wechatPayRole',
|
||||
'wechatPayLogisticalBanner',
|
||||
'wechatPayLogistical',
|
||||
'wechatPayImplementationBanner',
|
||||
'wechatPaySection1',
|
||||
'wechatPaySection2',
|
||||
'wechatPaySection3',
|
||||
'wechatPaySection4',
|
||||
'wechatPaySection5',
|
||||
'wechatPaySection6',
|
||||
'wechatPaySection7',
|
||||
'wechatPaySection8',
|
||||
'wechatPaySection9',
|
||||
'wechatPaySection10',
|
||||
'wechatPaySupportBanner',
|
||||
'wechatPaySupport',
|
||||
'wechatPayFaq',
|
||||
'wechatPayClosing'
|
||||
],
|
||||
head: {
|
||||
zhTitle: '微信支付指南(医疗旅游)| UMedGlobal',
|
||||
enTitle: 'Secure & Convenient WeChat Pay for Medical Tourism | UMedGlobal',
|
||||
zhDesc:
|
||||
'医疗旅游微信支付指南:绑卡、交易限额、TourCard、费用、安全及 UMedGlobal 礼宾支持。',
|
||||
enDesc:
|
||||
'Guide to setting up and using WeChat Pay for medical tourism in China: card linking, transaction limits, TourCard, fees, security, and UMedGlobal concierge support.'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
function buildScript(page) {
|
||||
const { bundle, module, heroField, zhMarker, head } = page
|
||||
return `<script setup lang="ts">
|
||||
import { ${bundle} } from '~/data/${module}'
|
||||
|
||||
const content = useLocalized(${bundle})
|
||||
|
||||
useHead(() => ({
|
||||
title:
|
||||
content.value.${heroField}.includes('${zhMarker}')
|
||||
? '${head.zhTitle}'
|
||||
: '${head.enTitle}',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content:
|
||||
content.value.${heroField}.includes('${zhMarker}')
|
||||
? '${head.zhDesc}'
|
||||
: '${head.enDesc}'
|
||||
},
|
||||
{
|
||||
property: 'og:title',
|
||||
content: '${head.enTitle}'
|
||||
}
|
||||
]
|
||||
}))
|
||||
</script>`
|
||||
}
|
||||
|
||||
function prefixKeys(template, keys) {
|
||||
let result = template
|
||||
const sorted = [...keys].sort((a, b) => b.length - a.length)
|
||||
for (const key of sorted) {
|
||||
result = result.replace(new RegExp(`(?<!content\\.)\\b${key}\\b`, 'g'), `content.${key}`)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
for (const page of pages) {
|
||||
const path = join(root, page.file)
|
||||
const raw = readFileSync(path, 'utf8')
|
||||
const endScript = raw.indexOf('</script>')
|
||||
if (endScript === -1) throw new Error(`No script in ${page.file}`)
|
||||
const templateAndStyle = raw.slice(endScript + '</script>'.length)
|
||||
const wired = buildScript(page) + prefixKeys(templateAndStyle, page.keys)
|
||||
writeFileSync(path, wired, 'utf8')
|
||||
console.log('Updated', page.file)
|
||||
}
|
||||
Reference in New Issue
Block a user