fix pharmacy order activity

This commit is contained in:
avicenan
2026-04-09 09:59:59 +07:00
parent 79e9abfbbb
commit 200dcfa075
2 changed files with 30 additions and 7 deletions

View File

@ -90,7 +90,3 @@ export class EmrPharmacyOrder {
deleted_by: string;
}
function Sequence(arg0: string): (target: EmrPharmacyOrder, propertyKey: "order_number") => void {
throw new Error("Function not implemented.");
}

View File

@ -11,11 +11,38 @@ export class EmrPharmacyOrderActivity {
@JoinColumn({ name: "pharmacy_order_id" })
pharmacy_order: EmrPharmacyOrder;
@Column({ nullable: false, type: "text" })
activity: PharmacyOrderStatus;
@Column({ type: "varchar", unique: true })
code: string;
@Column({ nullable: true, type: "varchar", length: 256, unique: true })
queue_number?: string | null;
@Column({ nullable: true, type: "text" })
description: string;
doctor: string | null;
@Column({ nullable: true, type: "text" })
patient: string | null;
@Column({ nullable: true, type: "jsonb" })
compounding_medicines: object | null;
@Column({ nullable: true, type: "jsonb" })
prescriptions: object | null;
@Column({ nullable: true, type: "text" })
room: string | null;
@Column({ nullable: true, type: "text" })
referring_room: string | null;
@Column({ nullable: true, type: "jsonb" })
prescription_screening?: object | null;
@Column({ type: "enum", enum: PharmacyOrderStatus })
status: PharmacyOrderStatus;
@Column({ nullable: true, type: "float" })
subtotal_price?: number | null;
@Column()
@CreateDateColumn()