update
This commit is contained in:
@ -5,10 +5,10 @@ import { Room } from "../room";
|
|||||||
import { InpatientRoom } from "../inpatient_rooms";
|
import { InpatientRoom } from "../inpatient_rooms";
|
||||||
import { EmrPatient } from "./emr_patient";
|
import { EmrPatient } from "./emr_patient";
|
||||||
import { InpatientRoomBed } from "../inpatient_room_beds";
|
import { InpatientRoomBed } from "../inpatient_room_beds";
|
||||||
import { Province } from "../province";
|
import { Munisipo } from "../munisipo";
|
||||||
import { City } from "../city";
|
import { Administrativu } from "../administrativu";
|
||||||
import { Subdistrict } from "../subdistrict";
|
import { Suco } from "../suco";
|
||||||
import { Ward } from "../ward";
|
import { Aldeia } from "../aldeia";
|
||||||
|
|
||||||
@Entity("emr_registration_inpatient", { schema: "emr" })
|
@Entity("emr_registration_inpatient", { schema: "emr" })
|
||||||
export class EmrRegistrationInpatient {
|
export class EmrRegistrationInpatient {
|
||||||
@ -58,21 +58,21 @@ export class EmrRegistrationInpatient {
|
|||||||
@Column({ nullable: true, type: "text" })
|
@Column({ nullable: true, type: "text" })
|
||||||
responsible_address: string;
|
responsible_address: string;
|
||||||
|
|
||||||
@ManyToOne(() => Province, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => Munisipo, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn({ referencedColumnName: "code" })
|
@JoinColumn()
|
||||||
responsible_province: Province | null;
|
responsible_munisipo: Munisipo | null;
|
||||||
|
|
||||||
@ManyToOne(() => City, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => Administrativu, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn({ referencedColumnName: "code" })
|
@JoinColumn()
|
||||||
responsible_city: City | null;
|
responsible_administrativu: Administrativu | null;
|
||||||
|
|
||||||
@ManyToOne(() => Subdistrict, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => Suco, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn({ referencedColumnName: "code" })
|
@JoinColumn()
|
||||||
responsible_subdistrict: Subdistrict | null;
|
responsible_suco: Suco | null;
|
||||||
|
|
||||||
@ManyToOne(() => Ward, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => Aldeia, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn({ referencedColumnName: "code" })
|
@JoinColumn()
|
||||||
responsible_ward: Ward | null;
|
responsible_aldeia: Aldeia | null;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
|
|||||||
Reference in New Issue
Block a user