From 0cd45fe5aa46cf591216d13c12f6c9b90d168f5a Mon Sep 17 00:00:00 2001 From: avicenan Date: Tue, 5 May 2026 15:41:13 +0700 Subject: [PATCH] feat(internal-consultation): add new column of patient, for easy access info --- src/entity/emr/emr_internal_consultation.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/entity/emr/emr_internal_consultation.ts b/src/entity/emr/emr_internal_consultation.ts index 6fa49d2..d208a28 100644 --- a/src/entity/emr/emr_internal_consultation.ts +++ b/src/entity/emr/emr_internal_consultation.ts @@ -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;