fix index order number
This commit is contained in:
@ -8,6 +8,7 @@ import {
|
|||||||
ManyToOne,
|
ManyToOne,
|
||||||
OneToMany,
|
OneToMany,
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
|
Index
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
|
|
||||||
import { EmrPatient } from "./emr_patient";
|
import { EmrPatient } from "./emr_patient";
|
||||||
@ -23,6 +24,7 @@ import { EmrRegistration } from "./emr_registration";
|
|||||||
* Contains order header information: order number, patient, referring room/doctor, schedule, registration info.
|
* Contains order header information: order number, patient, referring room/doctor, schedule, registration info.
|
||||||
*/
|
*/
|
||||||
@Entity("emr_laboratory_orders", { schema: "emr" })
|
@Entity("emr_laboratory_orders", { schema: "emr" })
|
||||||
|
@Index(["order_lab_no"], { unique: true })
|
||||||
export class EmrLaboratoryOrder {
|
export class EmrLaboratoryOrder {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
@ -20,7 +20,7 @@ import { PharmacyOrderStatus } from "../../types/pharmacy_order_status";
|
|||||||
import { EmrPharmacyOrderActivity } from "./emr_pharmacy_order_activity";
|
import { EmrPharmacyOrderActivity } from "./emr_pharmacy_order_activity";
|
||||||
|
|
||||||
@Entity("emr_pharmacy_order", { schema: "emr" })
|
@Entity("emr_pharmacy_order", { schema: "emr" })
|
||||||
@Index(["code", "queue_number"], { unique: true })
|
@Index(["code"], { unique: true })
|
||||||
export class EmrPharmacyOrder {
|
export class EmrPharmacyOrder {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
@ -8,7 +8,8 @@ import {
|
|||||||
ManyToOne,
|
ManyToOne,
|
||||||
OneToOne,
|
OneToOne,
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
OneToMany
|
OneToMany,
|
||||||
|
Index
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
import { RadiologyOrderStatus } from "../../types/radiology_order_status";
|
import { RadiologyOrderStatus } from "../../types/radiology_order_status";
|
||||||
import { EmrPatient } from "./emr_patient";
|
import { EmrPatient } from "./emr_patient";
|
||||||
@ -18,6 +19,7 @@ import { Room } from "../room";
|
|||||||
import { EmrRegistration } from "./emr_registration";
|
import { EmrRegistration } from "./emr_registration";
|
||||||
|
|
||||||
@Entity("emr_radiology", { schema: "emr" })
|
@Entity("emr_radiology", { schema: "emr" })
|
||||||
|
@Index(["order_number"], { unique: true })
|
||||||
export class Radiology {
|
export class Radiology {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user