From fbadf54d8e8e1a84998d21dd7ae1eeba7ef9f2ab Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Thu, 12 Feb 2026 15:08:13 +0700 Subject: [PATCH] add new entity:emr_functional_status --- src/entity/emr/emr_functional_status.ts | 101 ++++++++++++++++++++++++ src/schema/emr.ts | 1 + 2 files changed, 102 insertions(+) create mode 100644 src/entity/emr/emr_functional_status.ts diff --git a/src/entity/emr/emr_functional_status.ts b/src/entity/emr/emr_functional_status.ts new file mode 100644 index 0000000..97dfac0 --- /dev/null +++ b/src/entity/emr/emr_functional_status.ts @@ -0,0 +1,101 @@ +import { + Entity, + PrimaryGeneratedColumn, + Column, + CreateDateColumn, + UpdateDateColumn, + DeleteDateColumn, + ManyToOne, + JoinColumn, +} from "typeorm"; + +import { EmrRegistrationOutpatient } from "./emr_registration_outpatient"; + +@Entity("emr_functional_status", { schema: "emr" }) +export class EmrFunctionalStatus { + @PrimaryGeneratedColumn("uuid") + id: string; + + @ManyToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" }) + @JoinColumn() + id_emr_outpatient: EmrRegistrationOutpatient; + + @Column({ nullable: true, length: 256 }) + assistive_devices: string; + + @Column({ nullable: true, length: 256 }) + prosthesis: string; + + @Column({ nullable: true, length: 256 }) + physical_disability: string; + + @Column({ + nullable: true, + default: false, + }) + is_adl: boolean; + + @Column({ nullable: true, length: 256 }) + adl: string; + + @Column({ nullable: true, length: 256 }) + history_of_falls: string; + + @Column({ nullable: true, length: 256 }) + obstetric_and_gynecologic_status: string; + + @Column({ nullable: true, length: 256 }) + psychological_status: string; + + @Column({ + nullable: true, + default: false, + }) + is_language_barrier: boolean; + + @Column({ nullable: true, length: 256 }) + language_barrier: string; + + @Column({ + nullable: true, + default: false, + }) + is_physical_cognitive_disabilities: boolean; + + @Column({ nullable: true, length: 256 }) + physical_cognitive_disabilities: string; + + @Column({ nullable: true, length: 256 }) + nutritional_status_assessment: string; + + @Column({ nullable: true, length: 512 }) + patient_education: string; + + @Column({ nullable: true, length: 256 }) + health_problems: string; + + @Column({ nullable: true, length: 256 }) + nursing_interventions: 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; +} + diff --git a/src/schema/emr.ts b/src/schema/emr.ts index 55fed6d..392bc56 100644 --- a/src/schema/emr.ts +++ b/src/schema/emr.ts @@ -7,6 +7,7 @@ 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 "../entity/emr/emr_functional_status"; export * from "../types/registration_type"; export * from "../types/registration_status";