update: add room and reffering_room to compounding medicine and pharmacy order list
This commit is contained in:
@ -14,6 +14,7 @@ import { EmrCompoundingMedicineItem } from "./emr_compounding_medicine_item";
|
||||
import { UsageTime } from "../pharmacy/usage_time";
|
||||
import { UsageInstructions } from "../pharmacy/usage_instructions";
|
||||
import { EmrRegistration } from "./emr_registration";
|
||||
import { Room } from "../room";
|
||||
|
||||
@Entity("emr_compounding_medicine", { schema: "emr" })
|
||||
export class EmrCompoundingMedicine {
|
||||
@ -35,6 +36,14 @@ export class EmrCompoundingMedicine {
|
||||
@Column({ nullable: true, type: "text" })
|
||||
compounding_notes: string;
|
||||
|
||||
@ManyToOne(() => Room, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
room: Room;
|
||||
|
||||
@ManyToOne(() => Room, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
reffering_room: Room;
|
||||
|
||||
@ManyToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
emrregistration: EmrRegistration;
|
||||
|
||||
@ -71,6 +71,10 @@ export class EmrPharmacyOrderList {
|
||||
@JoinColumn()
|
||||
room: Room;
|
||||
|
||||
@ManyToOne(() => Room, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
destination_room: Room;
|
||||
|
||||
@ManyToOne(() => Department, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
department: Department;
|
||||
|
||||
Reference in New Issue
Block a user