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
This commit is contained in:
avicenan
2026-03-09 12:08:02 +07:00
parent 24a31d727b
commit c34dbe7389

View File

@ -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",