update: atenatal care done
This commit is contained in:
82
src/entity/emr/emr_atenatal_care.ts
Normal file
82
src/entity/emr/emr_atenatal_care.ts
Normal file
@ -0,0 +1,82 @@
|
||||
import {
|
||||
Entity,
|
||||
PrimaryGeneratedColumn,
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
DeleteDateColumn,
|
||||
JoinColumn,
|
||||
OneToOne,
|
||||
ManyToOne,
|
||||
} from "typeorm";
|
||||
|
||||
import { EmrPatient } from "./emr_patient";
|
||||
import { EmrRegistration } from "./emr_registration";
|
||||
|
||||
@Entity("emr_atenatal_care", { schema: "emr" })
|
||||
export class EmrAtenatalCare {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => EmrPatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
patient: EmrPatient;
|
||||
|
||||
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
registration: EmrRegistration;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
gestational_age: string;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
trimester: string;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
immunization_status: string
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
immunization_was_carried_out: string
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
pregnancy_status: string
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
parturition_status: string
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
abortion_status: string
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
hpht_date: Date;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
estimated_date_of_birth: Date;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
usg_result: 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;
|
||||
}
|
||||
|
||||
@ -28,6 +28,7 @@ export * from "../entity/emr/emr_registration_emergency_responsible";
|
||||
export * from "../entity/emr/emr_discharge_status_emergency";
|
||||
export * from "../entity/emr/emr_physical_examination_emergency";
|
||||
export * from "../entity/emr/emr_doctor_order_emergency";
|
||||
export * from "../entity/emr/emr_atenatal_care";
|
||||
|
||||
export * from "../types/registration_type";
|
||||
export * from "../types/registration_status";
|
||||
|
||||
Reference in New Issue
Block a user