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 { UsageTime } from "../pharmacy/usage_time";
|
||||||
import { UsageInstructions } from "../pharmacy/usage_instructions";
|
import { UsageInstructions } from "../pharmacy/usage_instructions";
|
||||||
import { EmrRegistration } from "./emr_registration";
|
import { EmrRegistration } from "./emr_registration";
|
||||||
|
import { Room } from "../room";
|
||||||
|
|
||||||
@Entity("emr_compounding_medicine", { schema: "emr" })
|
@Entity("emr_compounding_medicine", { schema: "emr" })
|
||||||
export class EmrCompoundingMedicine {
|
export class EmrCompoundingMedicine {
|
||||||
@ -35,6 +36,14 @@ export class EmrCompoundingMedicine {
|
|||||||
@Column({ nullable: true, type: "text" })
|
@Column({ nullable: true, type: "text" })
|
||||||
compounding_notes: string;
|
compounding_notes: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => Room, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
room: Room;
|
||||||
|
|
||||||
|
@ManyToOne(() => Room, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
reffering_room: Room;
|
||||||
|
|
||||||
@ManyToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
@ManyToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
emrregistration: EmrRegistration;
|
emrregistration: EmrRegistration;
|
||||||
|
|||||||
@ -71,6 +71,10 @@ export class EmrPharmacyOrderList {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
room: Room;
|
room: Room;
|
||||||
|
|
||||||
|
@ManyToOne(() => Room, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
destination_room: Room;
|
||||||
|
|
||||||
@ManyToOne(() => Department, { onDelete: "CASCADE" })
|
@ManyToOne(() => Department, { onDelete: "CASCADE" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
department: Department;
|
department: Department;
|
||||||
|
|||||||
Reference in New Issue
Block a user