add new entity:physical examination
This commit is contained in:
53
src/entity/emr/emr_physical_examination.ts
Normal file
53
src/entity/emr/emr_physical_examination.ts
Normal file
@ -0,0 +1,53 @@
|
||||
import {
|
||||
Entity,
|
||||
PrimaryGeneratedColumn,
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
DeleteDateColumn,
|
||||
ManyToOne,
|
||||
OneToOne,
|
||||
JoinColumn,
|
||||
} from "typeorm";
|
||||
|
||||
import { anamnesisStatus } from "../../enum/anamnesisStatus";
|
||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||
|
||||
|
||||
@Entity("emr_physical_examination", { schema: "emr" })
|
||||
export class EmrPhysicalExamination {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
id_emr_outpatient: EmrRegistrationOutpatient;
|
||||
|
||||
@Column({ nullable: true, length: 512 })
|
||||
internal_status: string;
|
||||
|
||||
@Column({ nullable: true, length: 512 })
|
||||
findings: 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,6 +6,7 @@ export * from "../entity/emr/emr_registration_emergency";
|
||||
export * from "../entity/emr/emr_registration_hemodialysis";
|
||||
export * from "../entity/emr/emr_anamnesis";
|
||||
export * from "../entity/emr/emr_vital_signs";
|
||||
export * from "../entity/emr/emr_physical_examination";
|
||||
|
||||
export * from "../types/registration_type";
|
||||
export * from "../types/registration_status";
|
||||
|
||||
Reference in New Issue
Block a user