update
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user