Files
umed/web/data/imc-packages-content.ts

540 lines
12 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** IMC health checkup packages — content from official IMC PDFs (HKU-Shenzhen Hospital) */
import type { LocaleBundle, SiteLocale } from '~/types/locale'
import { pickLocale } from '~/utils/pick-locale'
import { imcPackagesContentAr } from '~/data/locale/ar/imc-packages.ar'
import { imcPackagesContentRu } from '~/data/locale/ru/imc-packages.ru'
import { imcPackagesContentZh } from '~/data/locale/zh/imc-packages.zh'
import {
getHealthScreeningsDropdown,
getHealthScreeningsPackageSlugs,
healthScreeningsPackageSlugs
} from '~/data/health-screenings-nav'
export type ImcPackageSlug = keyof typeof healthScreeningsPackageSlugs
export const imcHospital = {
nameEn: 'The Hong Kong University-Shenzhen Hospital',
centerEn: 'International Medical Center',
updateDate: '2026-04-20',
remarks:
'The price above is for reference only. Final pricing is subject to the actual cost and the most updated price in the system.'
} as const
export const imcPackageImagesBySlug: Record<ImcPackageSlug, readonly string[]> = {
'imc-mens-health-checkup-package-gold': [
'/images/health-screenings/imc-packages/imc-mens-health-checkup-package-gold.png'
],
'imc-mens-health-checkup-package-diamond': [
'/images/health-screenings/imc-packages/imc-mens-health-checkup-package-diamond.png'
],
'imc-womens-health-checkup-package-gold': [
'/images/health-screenings/imc-packages/imc-womens-health-checkup-package-gold.png'
],
'imc-womens-health-checkup-package-diamond': [
'/images/health-screenings/imc-packages/imc-womens-health-checkup-package-diamond.png'
]
}
export type ImcPackagePriceLine = {
label: string
value: string
}
export type ImcPackageOverview = {
slug: ImcPackageSlug
title: string
to: string
packageCode: string
ageNote: string
prices: readonly ImcPackagePriceLine[]
gynecologyNote?: string
highlights: readonly string[]
previewImage: string
}
type ImcPackageOverviewBase = {
slug: ImcPackageSlug
to: string
packageCode: string
priceValues: readonly string[]
previewImage: string
}
const imcPackagesOverviewBase: readonly ImcPackageOverviewBase[] = [
{
slug: 'imc-mens-health-checkup-package-gold',
to: '/health-screenings/imc-mens-health-checkup-package-gold',
packageCode: 'Package M',
priceValues: ['¥8,753 CNY'],
previewImage: imcPackageImagesBySlug['imc-mens-health-checkup-package-gold'][0]
},
{
slug: 'imc-mens-health-checkup-package-diamond',
to: '/health-screenings/imc-mens-health-checkup-package-diamond',
packageCode: 'Package M',
priceValues: ['¥15,162 CNY'],
previewImage: imcPackageImagesBySlug['imc-mens-health-checkup-package-diamond'][0]
},
{
slug: 'imc-womens-health-checkup-package-gold',
to: '/health-screenings/imc-womens-health-checkup-package-gold',
packageCode: 'Package F1 (age 18–49) · Package F2 (age ≥50)',
priceValues: ['¥7,521 / ¥9,381 CNY', '¥8,571 / ¥10,431 CNY'],
previewImage: imcPackageImagesBySlug['imc-womens-health-checkup-package-gold'][0]
},
{
slug: 'imc-womens-health-checkup-package-diamond',
to: '/health-screenings/imc-womens-health-checkup-package-diamond',
packageCode: 'Package F1 (age 18–49) · Package F2 (age ≥50)',
priceValues: ['¥12,039 / ¥13,944 CNY', '¥14,124 / ¥16,029 CNY'],
previewImage: imcPackageImagesBySlug['imc-womens-health-checkup-package-diamond'][0]
}
]
export type ImcPackageLocalizedOverview = {
slug: ImcPackageSlug
title: string
ageNote: string
priceLabels: readonly string[]
gynecologyNote?: string
highlights: readonly string[]
}
export type ImcPackagesContent = {
imcHospital: {
nameEn: string
nameZh?: string
centerEn: string
centerZh?: string
remarks: string
introBeforeDate: string
introAfterDate: string
}
imcPackagesOverview: readonly ImcPackageLocalizedOverview[]
imcPackageClosing: {
title: string
text: string
ctaLabel: string
ctaTo: { path: string }
}
viewFullBreakdown: string
previewAltSuffix: string
sectionAriaLabel: string
packageDetailMeta: (title: string) => string
packageImageAlt: (title: string) => string
}
const imcPackagesContentEn: ImcPackagesContent = {
imcHospital: {
nameEn: imcHospital.nameEn,
centerEn: imcHospital.centerEn,
remarks: imcHospital.remarks,
introBeforeDate:
'Official health checkup packages below are taken from the hospital schedule (updated ',
introAfterDate: ').'
},
imcPackagesOverview: [
{
slug: 'imc-mens-health-checkup-package-gold',
title: "IMC Men's Health Checkup Package (Gold)",
ageNote: 'Age ≥18',
priceLabels: ['Official hospital total'],
highlights: [
'IMC services: health assessment by nurse, eye pressure measurement, physical examination, 12-lead electrocardiogram, phlebotomy, and post-assessment consultation.',
'Laboratory: complete blood counts (22), hepatic biochemistry (8), renal function (7), fasting blood glucose, glycosylated hemoglobin, lipid profile, homocysteine, thyroid function (TSH+FT4), vitamin B12, folic acid, ferritin, vitamin D duo testing.',
'Screening: male tumor markers (5), EBV DNA, carbon-13 urea breath test, high-sensitivity C-reactive protein.',
'Urine & stool: urinalysis, urinary microalbumin/creatinine, stool occult blood and stool routine.',
'Imaging: hepatic system ultrasound; urinary system & prostate ultrasound; chest CT (lung cancer screening).'
]
},
{
slug: 'imc-mens-health-checkup-package-diamond',
title: "IMC Men's Health Checkup Package (Diamond)",
ageNote: 'Age ≥18',
priceLabels: ['Official hospital total'],
highlights: [
'IMC services: health assessment by nurse, eye pressure, physical examination, 12-lead electrocardiogram, treadmill stress test, phlebotomy, post-assessment consultation, nutrition consultation.',
'Laboratory: complete blood counts, hepatic & renal panels, glucose, HbA1c, lipids, homocysteine, troponin T, thyroid (TSH+FT4), B12, folic acid, ferritin, vitamin D, male tumor markers (5), EBV DNA, carbon-13 breath test, hsCRP.',
'Urine: urinalysis, urinary microalbumin/creatinine. Stool: non-invasive genetic screening for colorectal cancer.',
'Imaging: hepatic & urinary/prostate ultrasound, thyroid gland ultrasound, CT bone density (QCT), chest CT, OCT (binocular).'
]
},
{
slug: 'imc-womens-health-checkup-package-gold',
title: "IMC Women's Health Checkup Package (Gold)",
ageNote: 'Two age tiers with separate item lists in the official schedule',
priceLabels: [
'Total without gynecology add-ons (F1 / F2)',
'Total with gynecology add-ons (F1 / F2)'
],
gynecologyNote:
'Items marked optional in the hospital schedule: gynecology examination and Papanicolaou test (TCT). Eye pressure (F2), CT bone density (F2), and female tumor markers (F2) vary by age tier—see full breakdown.',
highlights: [
'IMC services: health assessment by nurse, physical examination, 12-lead electrocardiogram, phlebotomy, post-assessment consultation.',
'Laboratory: complete blood counts, hepatic & renal panels, fasting glucose, HbA1c, lipids, thyroid (TSH+FT4), ferritin, vitamin D, EBV DNA, carbon-13 breath test, hsCRP.',
'Urine & stool: urinalysis, stool occult blood and stool routine.',
'Imaging: hepatic system, urinary system, uterus & adnexa ultrasound; chest CT (lung cancer screening).',
'Optional gynecology add-ons priced separately in the official total rows above.'
]
},
{
slug: 'imc-womens-health-checkup-package-diamond',
title: "IMC Women's Health Checkup Package (Diamond)",
ageNote: 'Two age tiers with separate item lists in the official schedule',
priceLabels: [
'Total without gynecology add-ons (F1 / F2)',
'Total with gynecology add-ons (F1 / F2)'
],
gynecologyNote:
'Optional gynecology add-ons: gynecology examination, Papanicolaou test (TCT), and HPV nucleic acid testing. Several items differ between F1 and F2 (e.g. homocysteine, B12/folic acid, HE4, AMH, OCT)—see full breakdown.',
highlights: [
'IMC services: health assessment by nurse, physical examination, 12-lead electrocardiogram, phlebotomy, post-assessment consultation, nutrition consultation.',
'Laboratory: complete blood counts, hepatic & renal panels, glucose, HbA1c, lipids, homocysteine (tier-dependent), thyroid (TSH+FT4), B12, folic acid (tier-dependent), ferritin, vitamin D, female tumor markers (5), HE4, EBV DNA, rheumatoid factor, AMH (F1), carbon-13 breath test, hsCRP.',
'Urine: urinalysis, urinary microalbumin/creatinine. Stool: non-invasive genetic screening for colorectal cancer.',
'Imaging: hepatic system, urinary system, uterus & adnexa, thyroid gland, breast & axillary lymph nodes ultrasound; chest CT. Ophthalmology (F2): OCT (binocular).',
'Optional gynecology add-ons (examination, TCT, HPV) priced in the official total rows above.'
]
}
],
imcPackageClosing: {
title: 'Contact your Chinese medical advisor.',
text:
'Have any questions? Contact your dedicated UMedGlobal advisor today. We offer free consultations to help you easily plan your wellness trip to China, including all travel arrangements, translation, and hospital support.',
ctaLabel: 'Schedule Your Free Consultation',
ctaTo: { path: '/free-assessment' }
},
viewFullBreakdown: 'View full item breakdown',
previewAltSuffix: '— official package schedule',
sectionAriaLabel: 'IMC health checkup packages',
packageDetailMeta: (title: string) =>
`${title} at The Hong Kong University-Shenzhen Hospital International Medical Center — coordinated by UMedGlobal with transparent hospital pricing and VIP English concierge support.`,
packageImageAlt: (title: string) =>
`${title} — tests, examinations and pricing at ${imcHospital.nameEn} ${imcHospital.centerEn}`
}
export const imcPackagesContentBundle: LocaleBundle<ImcPackagesContent> = {
en: imcPackagesContentEn,
zh: imcPackagesContentZh,
ar: imcPackagesContentAr,
ru: imcPackagesContentRu
}
function buildImcPackagesOverview(content: ImcPackagesContent): readonly ImcPackageOverview[] {
return imcPackagesOverviewBase.map((base) => {
const localized = content.imcPackagesOverview.find((item) => item.slug === base.slug)
if (!localized) {
throw new Error(`Missing localized IMC package overview for slug: ${base.slug}`)
}
return {
slug: base.slug,
to: base.to,
packageCode: base.packageCode,
previewImage: base.previewImage,
title: localized.title,
ageNote: localized.ageNote,
prices: base.priceValues.map((value, index) => ({
label: localized.priceLabels[index] ?? '',
value
})),
gynecologyNote: localized.gynecologyNote,
highlights: localized.highlights
}
})
}
export function getImcPackagesOverview(locale: SiteLocale) {
return buildImcPackagesOverview(pickLocale(imcPackagesContentBundle, locale))
}
/** @deprecated Use getImcPackagesOverview(locale) */
export const imcPackagesOverview = buildImcPackagesOverview(imcPackagesContentEn)
export function getImcPackage(slug: string, locale: SiteLocale = 'en') {
if (!(slug in healthScreeningsPackageSlugs)) return undefined
const key = slug as ImcPackageSlug
const content = pickLocale(imcPackagesContentBundle, locale)
const slugs = getHealthScreeningsPackageSlugs(locale)
const dropdown = getHealthScreeningsDropdown(locale).find((item) => item.to.endsWith(key))
return {
slug: key,
title: slugs[key],
to: dropdown?.to ?? `/health-screenings/${key}`,
images: imcPackageImagesBySlug[key],
imageAlt: content.packageImageAlt(slugs[key])
}
}
/** @deprecated Use imcPackagesContentBundle via useLocalized */
export const imcPackageClosing = imcPackagesContentEn.imcPackageClosing