From c34dbe73890081178de75d4f68a21d682e77b43e Mon Sep 17 00:00:00 2001 From: avicenan Date: Mon, 9 Mar 2026 12:08:02 +0700 Subject: [PATCH] feat(db): allow multiple anamnesis history entries convert history_of_present_illness, history_of_allergies, and history_of_illness columns to text arrays to store multiple values BREAKING CHANGE: history_of_* fields are now text arrays instead of text --- src/entity/emr/emr_anamnesis.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/entity/emr/emr_anamnesis.ts b/src/entity/emr/emr_anamnesis.ts index 3ed5b02..904c24e 100644 --- a/src/entity/emr/emr_anamnesis.ts +++ b/src/entity/emr/emr_anamnesis.ts @@ -28,20 +28,20 @@ export class Emranamnesis { patient: EmrPatient; /** Contoh: "08:00-12:00" atau "Pagi" */ - @Column({ nullable: true, type: "text" }) + @Column({ nullable: true, type: "text" }) chief_complaint: string; - @Column({ nullable: true, type: "text" }) + @Column({ nullable: true, type: "text" }) additional_complaint: string; - @Column({ nullable: true, type: "text" }) - history_of_present_illness: string; + @Column({ nullable: true, type: "text", array: true }) + history_of_present_illness: string[]; - @Column({ nullable: true, type: "text" }) - history_of_allergies: string; + @Column({ nullable: true, type: "text", array: true }) + history_of_allergies: string[]; - @Column({ nullable: true, type: "text" }) - history_of_illness: string; + @Column({ nullable: true, type: "text", array: true }) + history_of_illness: string[]; @Column({ type: "enum",