add new entity: emr_anthropometry

This commit is contained in:
wayanrivan
2026-02-12 14:09:14 +07:00
parent 4e29a5366d
commit a8a72d91fa
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,57 @@
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
DeleteDateColumn,
ManyToOne,
JoinColumn,
} from "typeorm";
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
@Entity("emr_anthropometry", { schema: "emr" })
export class EmrAnthropometry {
@PrimaryGeneratedColumn("uuid")
id: string;
@ManyToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
@JoinColumn()
id_emr_outpatient: EmrRegistrationOutpatient;
@Column({ nullable: true, length: 64 })
weight: string;
@Column({ nullable: true, length: 64 })
height: string;
@Column({ nullable: true, length: 64 })
head_circumference: string;
@Column({ nullable: true, length: 64 })
bmi: 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;
}

View File

@ -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_anthropometry";
export * from "../types/registration_type";
export * from "../types/registration_status";