update: pharmacy order list relation to prescription

This commit is contained in:
wayanrivan
2026-03-27 15:12:01 +07:00
parent 90defad7dc
commit 0c79ff53b5

View File

@ -12,7 +12,7 @@ import {
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
import { EmrCompoundingMedicine } from "./emr_compounding_medicine";
import { EmrPrescriptionOrder } from "./emr_prescription_orders";
import { EmrPrescription } from "./emr_prescription";
import { User } from "../users";
import { PatientGuarantor } from "../patient_guarantor";
import { Room } from "../room";
@ -48,9 +48,9 @@ export class EmrPharmacyOrderList {
@JoinColumn()
emrcompoundingmedicine: EmrCompoundingMedicine;
@ManyToOne(() => EmrPrescriptionOrder, { onDelete: "CASCADE" })
@ManyToOne(() => EmrPrescription, { onDelete: "CASCADE" })
@JoinColumn()
emrprescriptionorder: EmrPrescriptionOrder;
emrprescription: EmrPrescription;
@ManyToOne(() => User, { onDelete: "CASCADE" })
@JoinColumn()