Merge branch 'main' of https://git.shiblysolution.id/SAUDE-TL/entity
This commit is contained in:
@ -7,15 +7,21 @@ import {
|
|||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
OneToOne,
|
OneToOne,
|
||||||
|
ManyToOne,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
|
|
||||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||||
|
import { EmrPatient } from "./emr_patient";
|
||||||
|
|
||||||
@Entity("emr_physical_examination", { schema: "emr" })
|
@Entity("emr_physical_examination", { schema: "emr" })
|
||||||
export class EmrPhysicalExamination {
|
export class EmrPhysicalExamination {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrPatient, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
patient: EmrPatient;
|
||||||
|
|
||||||
@OneToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
@OneToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
registration_outpatient: EmrRegistrationOutpatient;
|
registration_outpatient: EmrRegistrationOutpatient;
|
||||||
|
|||||||
@ -47,7 +47,7 @@ export class ItemMaster {
|
|||||||
|
|
||||||
@ManyToOne(() => ItemClassDetail, { nullable: false })
|
@ManyToOne(() => ItemClassDetail, { nullable: false })
|
||||||
@JoinColumn({ name: "item_class_detail_id" })
|
@JoinColumn({ name: "item_class_detail_id" })
|
||||||
class_detail!: ItemClassDetail;
|
item_class_detail!: ItemClassDetail;
|
||||||
|
|
||||||
@ManyToOne(() => ItemStatus, { nullable: false })
|
@ManyToOne(() => ItemStatus, { nullable: false })
|
||||||
@JoinColumn({ name: "item_status_id" })
|
@JoinColumn({ name: "item_status_id" })
|
||||||
|
|||||||
Reference in New Issue
Block a user