update
This commit is contained in:
@ -10,6 +10,8 @@ import { EmrDiagnosis } from "./emr_diagnosis";
|
||||
import { TransferMethodType, TransferRiskType } from "../../types/emr";
|
||||
import { EmrEmergencyTransferAttachedDevice } from "./emr_emergency_transfer_attached_devices";
|
||||
import { EmrRegistration } from "./emr_registration";
|
||||
import { InpatientRoom } from "../inpatient_rooms";
|
||||
import { InpatientRoomBed } from "../inpatient_room_beds";
|
||||
|
||||
@Entity("emr_emergency_transfers", { schema: "emr" })
|
||||
export class EmrEmergencyTransfer {
|
||||
@ -28,9 +30,14 @@ export class EmrEmergencyTransfer {
|
||||
origin_room: Room;
|
||||
|
||||
// Ruang rawat selanjutnya (tujuan pindah)
|
||||
@ManyToOne(() => EmrBoardingRoom, { onDelete: "NO ACTION" })
|
||||
@ManyToOne(() => InpatientRoom, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
destination_room: EmrBoardingRoom;
|
||||
destination_room: InpatientRoom;
|
||||
|
||||
// Ruang rawat selanjutnya (tujuan pindah)
|
||||
@ManyToOne(() => InpatientRoomBed, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
destination_room_bed: InpatientRoomBed;
|
||||
|
||||
// Tanggal masuk / jam
|
||||
@Column({ type: "timestamp", nullable: true })
|
||||
@ -50,8 +57,9 @@ export class EmrEmergencyTransfer {
|
||||
primary_attending_physician: User;
|
||||
|
||||
// DPJP tambahan (rawat bersama)
|
||||
@Column({ nullable: true, type: "text", array: true })
|
||||
additional_attending_physicians: string[];
|
||||
@ManyToOne(() => User, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
additional_attending_physicians: User;
|
||||
|
||||
// Diagnosis utama
|
||||
@ManyToOne(() => EmrDiagnosis, { onDelete: "NO ACTION" })
|
||||
|
||||
Reference in New Issue
Block a user