コンテンツにスキップ

ClinicInfo

医療機関(診療所)の情報を表すモデル。名称・住所・各種コード・医師名などを持ち、書類の発行などに使います。

定義: src/lib/models/clinic-info.ts

フィールド

フィールド 説明
name string 医療機関の名称
postalCode string 郵便番号
address string 住所
tel string 電話番号
fax string FAX 番号
todoufukencode string 都道府県コード
tensuuhyoucode string 点数表コード
kikancode string 医療機関コード
homepage string ホームページの URL
doctorName string 医師名
doctorLastName string 医師の姓
doctorFirstName string 医師の名

型定義

import { z } from "zod";

export const clinicInfoSchema = z.object({
  name: z.string(),
  postalCode: z.string(),
  address: z.string(),
  tel: z.string(),
  fax: z.string(),
  todoufukencode: z.string(),
  tensuuhyoucode: z.string(),
  kikancode: z.string(),
  homepage: z.string(),
  doctorName: z.string(),
  doctorLastName: z.string(),
  doctorFirstName: z.string()
});

export type ClinicInfo = z.infer<typeof clinicInfoSchema>;