feat(internal-consultation): add new column of patient, for easy access info

This commit is contained in:
avicenan
2026-05-05 15:41:13 +07:00
parent 0d41c7e069
commit 0cd45fe5aa

View File

@ -30,6 +30,15 @@ export class EmrInternalConsultation {
@JoinColumn()
patient: EmrPatient;
@Column({ nullable: true, type: "text" })
patient_name: string;
@Column({ nullable: true, type: "text" })
patient_birth_date: string;
@Column({ nullable: true, type: "text" })
patient_gender: string;
@ManyToOne(() => Room, { onDelete: "CASCADE", nullable: true })
@JoinColumn()
referring_room: Room;