From 5f060a3c4f82489bb3b74c22d1673e8b52b3bd1f Mon Sep 17 00:00:00 2001 From: avicenan Date: Thu, 14 May 2026 11:58:14 +0900 Subject: [PATCH] feat(regis): add patient category type --- src/entity/emr/emr_registration.ts | 3 +++ src/schema/emr.ts | 3 ++- src/types/patient_category.ts | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/types/patient_category.ts diff --git a/src/entity/emr/emr_registration.ts b/src/entity/emr/emr_registration.ts index 8d78122..d69a069 100644 --- a/src/entity/emr/emr_registration.ts +++ b/src/entity/emr/emr_registration.ts @@ -71,6 +71,9 @@ export class EmrRegistration { @JoinColumn({ name: "referral_hospital_id" }) referral_hospital: RefferalHospital; + @Column({ nullable: true, type: "text" }) + patient_category: string; + @Column() @CreateDateColumn() created_at: Date; diff --git a/src/schema/emr.ts b/src/schema/emr.ts index 69bdd49..d91ae38 100644 --- a/src/schema/emr.ts +++ b/src/schema/emr.ts @@ -51,4 +51,5 @@ export * from "../types/pharmacy_order_status"; export * from "../types/prescription_pharmacy_status"; export * from "../types/radiology_order_status"; export * from "../types/laboratory_order_status"; -export * from "../enum/consciousness" +export * from "../enum/consciousness"; +export * from "../types/patient_category"; diff --git a/src/types/patient_category.ts b/src/types/patient_category.ts new file mode 100644 index 0000000..3cec1e7 --- /dev/null +++ b/src/types/patient_category.ts @@ -0,0 +1,11 @@ +/** + * Workflow kategori pendaftaran pasien. + * Existing: pasien sudah lama daftar + * New: pasien baru dari pendaftaran pasien + * Foreigner: pasien asing + */ +export enum PatientCategory { + EXISTING = "existing", + NEW = "new", + FOREIGNER = "foreigner", +}