Merge branch 'main' of https://git.shiblysolution.id/SAUDE-TL/entity
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;
|
||||||
|
}
|
||||||
|
|
||||||
53
src/entity/emr/emr_doctor_order_emergency.ts
Normal file
53
src/entity/emr/emr_doctor_order_emergency.ts
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
JoinColumn,
|
||||||
|
OneToOne,
|
||||||
|
ManyToOne,
|
||||||
|
} from "typeorm";
|
||||||
|
|
||||||
|
import { EmrPatient } from "./emr_patient";
|
||||||
|
import { EmrRegistration } from "./emr_registration";
|
||||||
|
|
||||||
|
@Entity("emr_doctor_order_emergency", { schema: "emr" })
|
||||||
|
export class EmrDoctorOrderEmergency {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrPatient, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
patient: EmrPatient;
|
||||||
|
|
||||||
|
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
registration: EmrRegistration;
|
||||||
|
|
||||||
|
@Column({ nullable: true, type: "text" })
|
||||||
|
doctor_order: 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;
|
||||||
|
}
|
||||||
|
|
||||||
56
src/entity/emr/emr_physical_examination_emergency.ts
Normal file
56
src/entity/emr/emr_physical_examination_emergency.ts
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
JoinColumn,
|
||||||
|
OneToOne,
|
||||||
|
ManyToOne,
|
||||||
|
} from "typeorm";
|
||||||
|
|
||||||
|
import { EmrPatient } from "./emr_patient";
|
||||||
|
import { EmrRegistration } from "./emr_registration";
|
||||||
|
|
||||||
|
@Entity("emr_physical_examination_emergency", { schema: "emr" })
|
||||||
|
export class EmrPhysicalExaminationEmergency {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrPatient, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
patient: EmrPatient;
|
||||||
|
|
||||||
|
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
registration: EmrRegistration;
|
||||||
|
|
||||||
|
@Column({ nullable: true, type: "text" })
|
||||||
|
status_generalis: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, type: "text" })
|
||||||
|
status_neurologis: 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;
|
||||||
|
}
|
||||||
|
|
||||||
@ -27,6 +27,9 @@ export * from "../entity/emr/emr_pharmacy_order";
|
|||||||
export * from "../entity/emr/emr_pharmacy_order_activity";
|
export * from "../entity/emr/emr_pharmacy_order_activity";
|
||||||
export * from "../entity/emr/emr_registration_emergency_responsible";
|
export * from "../entity/emr/emr_registration_emergency_responsible";
|
||||||
export * from "../entity/emr/emr_discharge_status_emergency";
|
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_type";
|
||||||
export * from "../types/registration_status";
|
export * from "../types/registration_status";
|
||||||
|
|||||||
Reference in New Issue
Block a user