add new entity:diet
This commit is contained in:
47
src/entity/emr/emr_diet.ts
Normal file
47
src/entity/emr/emr_diet.ts
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
ManyToOne,
|
||||||
|
OneToOne,
|
||||||
|
JoinColumn,
|
||||||
|
} from "typeorm";
|
||||||
|
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||||
|
|
||||||
|
@Entity("emr_diet", { schema: "emr" })
|
||||||
|
export class EmrDiet {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
id_emr_outpatient: EmrRegistrationOutpatient;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 512 })
|
||||||
|
diet: string;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
|
|
||||||
@ -6,14 +6,11 @@ import {
|
|||||||
UpdateDateColumn,
|
UpdateDateColumn,
|
||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
ManyToOne,
|
ManyToOne,
|
||||||
OneToOne,
|
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
|
|
||||||
import { anamnesisStatus } from "../../enum/anamnesisStatus";
|
|
||||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||||
|
|
||||||
|
|
||||||
@Entity("emr_physical_examination", { schema: "emr" })
|
@Entity("emr_physical_examination", { schema: "emr" })
|
||||||
export class EmrPhysicalExamination {
|
export class EmrPhysicalExamination {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import {
|
|||||||
UpdateDateColumn,
|
UpdateDateColumn,
|
||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
ManyToOne,
|
ManyToOne,
|
||||||
OneToOne,
|
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@ export * from "../entity/emr/emr_registration_hemodialysis";
|
|||||||
export * from "../entity/emr/emr_anamnesis";
|
export * from "../entity/emr/emr_anamnesis";
|
||||||
export * from "../entity/emr/emr_vital_signs";
|
export * from "../entity/emr/emr_vital_signs";
|
||||||
export * from "../entity/emr/emr_physical_examination";
|
export * from "../entity/emr/emr_physical_examination";
|
||||||
|
export * from "../entity/emr/emr_diet";
|
||||||
|
|
||||||
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