From dfd00b7147e472bbc6301b306cbf3d24468358ae Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Sat, 9 May 2026 00:02:29 +0700 Subject: [PATCH] update --- src/entity/emr/emr_registration_inpatient.ts | 32 ++++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/entity/emr/emr_registration_inpatient.ts b/src/entity/emr/emr_registration_inpatient.ts index aafae1f..489a63f 100644 --- a/src/entity/emr/emr_registration_inpatient.ts +++ b/src/entity/emr/emr_registration_inpatient.ts @@ -5,10 +5,10 @@ import { Room } from "../room"; import { InpatientRoom } from "../inpatient_rooms"; import { EmrPatient } from "./emr_patient"; import { InpatientRoomBed } from "../inpatient_room_beds"; -import { Province } from "../province"; -import { City } from "../city"; -import { Subdistrict } from "../subdistrict"; -import { Ward } from "../ward"; +import { Munisipo } from "../munisipo"; +import { Administrativu } from "../administrativu"; +import { Suco } from "../suco"; +import { Aldeia } from "../aldeia"; @Entity("emr_registration_inpatient", { schema: "emr" }) export class EmrRegistrationInpatient { @@ -58,21 +58,21 @@ export class EmrRegistrationInpatient { @Column({ nullable: true, type: "text" }) responsible_address: string; - @ManyToOne(() => Province, { onDelete: "NO ACTION", nullable: true }) - @JoinColumn({ referencedColumnName: "code" }) - responsible_province: Province | null; + @ManyToOne(() => Munisipo, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + responsible_munisipo: Munisipo | null; - @ManyToOne(() => City, { onDelete: "NO ACTION", nullable: true }) - @JoinColumn({ referencedColumnName: "code" }) - responsible_city: City | null; + @ManyToOne(() => Administrativu, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + responsible_administrativu: Administrativu | null; - @ManyToOne(() => Subdistrict, { onDelete: "NO ACTION", nullable: true }) - @JoinColumn({ referencedColumnName: "code" }) - responsible_subdistrict: Subdistrict | null; + @ManyToOne(() => Suco, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + responsible_suco: Suco | null; - @ManyToOne(() => Ward, { onDelete: "NO ACTION", nullable: true }) - @JoinColumn({ referencedColumnName: "code" }) - responsible_ward: Ward | null; + @ManyToOne(() => Aldeia, { onDelete: "NO ACTION", nullable: true }) + @JoinColumn() + responsible_aldeia: Aldeia | null; @Column() @CreateDateColumn()