update registration inpatient
This commit is contained in:
@ -15,11 +15,11 @@ export class EmrRegistrationInpatient {
|
|||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
registration: EmrRegistration;
|
registration: EmrRegistration;
|
||||||
|
|
||||||
@ManyToOne(() => InpatientRoom, { onDelete: "NO ACTION" })
|
@ManyToOne(() => InpatientRoom, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
inpatient_room: InpatientRoom;
|
inpatient_room: InpatientRoom;
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ export class EmrRegistrationInpatient {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
inpatient_room_bed: InpatientRoomBed | null;
|
inpatient_room_bed: InpatientRoomBed | null;
|
||||||
|
|
||||||
@ManyToOne(() => EmrPatient, { onDelete: "NO ACTION" })
|
@ManyToOne(() => EmrPatient, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
patient: EmrPatient;
|
patient: EmrPatient;
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ export class EmrRegistrationInpatient {
|
|||||||
@Column({ nullable: true, length: 32 })
|
@Column({ nullable: true, length: 32 })
|
||||||
bed_number: string;
|
bed_number: string;
|
||||||
|
|
||||||
@Column({ type: "date", nullable: false })
|
@Column({ type: "date", nullable: true })
|
||||||
admission_date: Date;
|
admission_date: Date;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user