add new entity:emr_doctor_procedure
This commit is contained in:
53
src/entity/emr/emr_doctor_procedure.ts
Normal file
53
src/entity/emr/emr_doctor_procedure.ts
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
ManyToOne,
|
||||||
|
JoinColumn,
|
||||||
|
} from "typeorm";
|
||||||
|
|
||||||
|
import { Service } from "../service";
|
||||||
|
import { ServiceType } from "../service_type";
|
||||||
|
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||||
|
|
||||||
|
@Entity('emr_doctor_procedure',{ schema: "emr" })
|
||||||
|
export class EmrDoctorProcedure {
|
||||||
|
@PrimaryGeneratedColumn('uuid')
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
id_emr_outpatient: EmrRegistrationOutpatient;
|
||||||
|
|
||||||
|
@ManyToOne(() => ServiceType, { onDelete: 'NO ACTION' })
|
||||||
|
@JoinColumn()
|
||||||
|
serviceType: ServiceType;
|
||||||
|
|
||||||
|
@ManyToOne(() => Service, { onDelete: 'NO ACTION' })
|
||||||
|
@JoinColumn()
|
||||||
|
service: Service;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
created_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
updated_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by: string;
|
||||||
|
}
|
||||||
@ -10,6 +10,7 @@ export * from "../entity/emr/emr_physical_examination";
|
|||||||
export * from "../entity/emr/emr_diet";
|
export * from "../entity/emr/emr_diet";
|
||||||
export * from "../entity/emr/emr_diagnosis";
|
export * from "../entity/emr/emr_diagnosis";
|
||||||
export * from "../entity/emr/emr_diagnostic_procedure";
|
export * from "../entity/emr/emr_diagnostic_procedure";
|
||||||
|
export * from "../entity/emr/emr_doctor_procedure";
|
||||||
|
|
||||||
export * from "../types/registration_type";
|
export * from "../types/registration_type";
|
||||||
export * from "../types/registration_status";
|
export * from "../types/registration_status";
|
||||||
|
|||||||
Reference in New Issue
Block a user