# patient — 主档 upsert(不进 transaction,无 emits)
# 直接消费 source table fact_client_out(transforms 不需要,fact_client_out 形态干净)
canonical: patient

primary:
  table: fact_client_out
  key: patient_id

field_mapping:
  externalId: patient_id    # Int64 → ColdImportService 入库时 String 化
  name:       client_name
  gender:     client_gender
  birthDate:  birthday
  notes:      follow_content
  # doNotContact / deceased 不映射 — 走 PatientCanonicalSchema default false
