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:
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user