From 2cf96496d654adc8ba56d48e14dbae391398620a Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Mon, 6 Apr 2026 14:07:22 +0700 Subject: [PATCH] update: entity --- src/entity/emr/emr_registration.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/entity/emr/emr_registration.ts b/src/entity/emr/emr_registration.ts index c427e18..5f3e2d0 100644 --- a/src/entity/emr/emr_registration.ts +++ b/src/entity/emr/emr_registration.ts @@ -7,12 +7,14 @@ import { DeleteDateColumn, ManyToOne, JoinColumn, + OneToOne } from "typeorm"; import { RegistrationType } from "../../types/registration_type"; import { RegistrationStatus } from "../../types/registration_status"; import { EmrPatient } from "./emr_patient"; import { PatientGuarantor } from "../patient_guarantor"; +import { EmrRegistrationOutpatient } from "./emr_registration_outpatient"; /** * Registrasi base: data umum untuk semua tipe (rawat jalan, rawat inap, emergency, hemodialysis). @@ -24,6 +26,9 @@ export class EmrRegistration { @PrimaryGeneratedColumn("uuid") id: string; + @OneToOne(() => EmrRegistrationOutpatient, (out) => out.registration) + outpatient: EmrRegistrationOutpatient; + @ManyToOne(() => EmrPatient, { onDelete: "NO ACTION" }) @JoinColumn() patient: EmrPatient;