feat(emr): enhance EmrSurgerySchedule with additional fields and relationships
This commit is contained in:
@ -10,6 +10,7 @@ import {
|
|||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
import { SurgeryRoom } from "../surgery_room";
|
import { SurgeryRoom } from "../surgery_room";
|
||||||
import { EmrPatient } from "./emr_patient";
|
import { EmrPatient } from "./emr_patient";
|
||||||
|
import { EmrBoardingRoom } from "./emr_boarding_rooms";
|
||||||
|
|
||||||
@Entity("emr_surgery_schedules", { schema: "emr" })
|
@Entity("emr_surgery_schedules", { schema: "emr" })
|
||||||
export class EmrSurgerySchedule {
|
export class EmrSurgerySchedule {
|
||||||
@ -30,6 +31,37 @@ export class EmrSurgerySchedule {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
patient: EmrPatient | null;
|
patient: EmrPatient | null;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 128 })
|
||||||
|
patient_registration_no: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 512 })
|
||||||
|
input_source: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 512 })
|
||||||
|
inpatient_room_label: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrBoardingRoom, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
boarding_room: EmrBoardingRoom | null;
|
||||||
|
|
||||||
|
@Column({ nullable: true, type: "text" })
|
||||||
|
diagnosis: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
surgeon_name: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
anesthesiologist_name: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 512 })
|
||||||
|
procedure_name: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, type: "text" })
|
||||||
|
equipment: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, type: "time" })
|
||||||
|
schedule_time: string;
|
||||||
|
|
||||||
@Column({ nullable: false, length: 32, default: "scheduled" })
|
@Column({ nullable: false, length: 32, default: "scheduled" })
|
||||||
status: string;
|
status: string;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user