This commit is contained in:
2026-05-29 14:17:30 +07:00
parent b41def21ae
commit 665dadca25
2 changed files with 10 additions and 2 deletions

View File

@ -21,6 +21,11 @@ export class EmrBoardingRoomDoctorHistory {
@JoinColumn() @JoinColumn()
doctor: User; doctor: User;
@Column({
nullable: true,
})
type: string;
@Column({ @Column({
nullable: true, nullable: true,
}) })

View File

@ -25,7 +25,11 @@ export class EmrBoardingRoom {
@ManyToOne(() => User, { onDelete: "NO ACTION", nullable: true }) @ManyToOne(() => User, { onDelete: "NO ACTION", nullable: true })
@JoinColumn() @JoinColumn()
user: User; primary_doctor: User;
@ManyToOne(() => User, { onDelete: "NO ACTION", nullable: true })
@JoinColumn()
secondary_doctor: User;
@ManyToOne(() => InpatientRoom, { onDelete: "NO ACTION", nullable: true }) @ManyToOne(() => InpatientRoom, { onDelete: "NO ACTION", nullable: true })
@JoinColumn() @JoinColumn()
@ -40,7 +44,6 @@ export class EmrBoardingRoom {
@Column({ nullable: false }) @Column({ nullable: false })
boarding_at: Date; boarding_at: Date;
/** masih-dirawat | rencana-pulang | titipan */
@Column({ nullable: true, length: 64 }) @Column({ nullable: true, length: 64 })
inpatient_care_status: string; inpatient_care_status: string;