update: entity
This commit is contained in:
@ -7,12 +7,14 @@ import {
|
|||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
ManyToOne,
|
ManyToOne,
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
|
OneToOne
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
|
|
||||||
import { RegistrationType } from "../../types/registration_type";
|
import { RegistrationType } from "../../types/registration_type";
|
||||||
import { RegistrationStatus } from "../../types/registration_status";
|
import { RegistrationStatus } from "../../types/registration_status";
|
||||||
import { EmrPatient } from "./emr_patient";
|
import { EmrPatient } from "./emr_patient";
|
||||||
import { PatientGuarantor } from "../patient_guarantor";
|
import { PatientGuarantor } from "../patient_guarantor";
|
||||||
|
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registrasi base: data umum untuk semua tipe (rawat jalan, rawat inap, emergency, hemodialysis).
|
* Registrasi base: data umum untuk semua tipe (rawat jalan, rawat inap, emergency, hemodialysis).
|
||||||
@ -24,6 +26,9 @@ export class EmrRegistration {
|
|||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
@OneToOne(() => EmrRegistrationOutpatient, (out) => out.registration)
|
||||||
|
outpatient: EmrRegistrationOutpatient;
|
||||||
|
|
||||||
@ManyToOne(() => EmrPatient, { onDelete: "NO ACTION" })
|
@ManyToOne(() => EmrPatient, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
patient: EmrPatient;
|
patient: EmrPatient;
|
||||||
|
|||||||
Reference in New Issue
Block a user