From f4fb347398632abceb571f9abda9042be7063c84 Mon Sep 17 00:00:00 2001 From: Shibly Teknologi Solusi Date: Wed, 20 May 2026 13:23:59 +0700 Subject: [PATCH] update --- src/helpers/orm.ts | 100 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 99 insertions(+), 1 deletion(-) diff --git a/src/helpers/orm.ts b/src/helpers/orm.ts index 5b7ede6..3c2b69a 100644 --- a/src/helpers/orm.ts +++ b/src/helpers/orm.ts @@ -1,7 +1,95 @@ import config from "config"; import { DataSource } from "typeorm"; import { ILogObj, Logger } from "tslog"; -import { ResponsiblePartyConsent, Province, City, Subdistrict, Ward, RefferalHospital, RegistrationFee, FareType, RoomStock, Administrativu, Aldeia, District, Menu, Munisipo, Suco, Application, Nationality, Diagnosis, DiagnosticProcedure, Room, MedicalForm, ServiceType, ServiceClass, Service, ServiceFare, ServicePackage, Department, DoctorSchedule, MeasurementUnit, ReferenceRange, QueueMonitoring, QueueMonitoringRooms, ExaminationDetail, ExaminationType, User, UserRole, HrmsEmployee, HrmsDepartment, HrmsPosition, HrmsShift, HospitalInformation, ItemOrigin, ItemType, ItemTypeDetail, Unit, ItemCategory, ItemStatus, UsageInstructions, UsageTime, ItemClass, ItemClassDetail, GenericName, Factory, Supplier, FactoryToSupplier, ItemMaster, ItemGroup, PharmacyInfo, ItemPrice, SellingPricePercentage, PatientGroup, Currency, InpatientRoom, SurgeryRoom, SurgeryType, PatientGuarantor, InitialStock, DoctorItem, DoctorItemPackage, UserToRoom, RoomToPharmacy, PlanningVerificator, ScheduleSeries, ScheduleException, CardType, PaymentMethod, FosterCareHistory } from "entity"; +import { + ResponsiblePartyConsent, + Province, + City, + Subdistrict, + Ward, + RefferalHospital, + RegistrationFee, + FareType, + RoomStock, + Administrativu, + Aldeia, + District, + Menu, + Munisipo, + Suco, + Application, + Nationality, + Diagnosis, + DiagnosticProcedure, + Room, + MedicalForm, + ServiceType, + ServiceClass, + Service, + ServiceFare, + ServicePackage, + Department, + DoctorSchedule, + MeasurementUnit, + ReferenceRange, + QueueMonitoring, + QueueMonitoringRooms, + ExaminationDetail, + ExaminationType, + User, + UserRole, + HrmsEmployee, + HrmsDepartment, + HrmsPosition, + HrmsShift, + HospitalInformation, + ItemOrigin, + ItemType, + ItemTypeDetail, + Unit, + ItemCategory, + ItemStatus, + UsageInstructions, + UsageTime, + ItemClass, + ItemClassDetail, + GenericName, + Factory, + Supplier, + FactoryToSupplier, + ItemMaster, + ItemGroup, + PharmacyInfo, + ItemPrice, + SellingPricePercentage, + PatientGroup, + Currency, + InpatientRoom, + SurgeryRoom, + SurgeryType, + PatientGuarantor, + InitialStock, + DoctorItem, + DoctorItemPackage, + UserToRoom, + RoomToPharmacy, + PlanningVerificator, + ScheduleSeries, + ScheduleException, + CardType, + PaymentMethod, + FosterCareHistory, + InpatientRoomBed, + EmrBoardingRoom, + EmrPatient, + EmrRegistration, + EmrDiagnosis, + EmrRegistrationOutpatient, + EmrRegistrationEmergency, + EmrRegistrationEmergencyResponsible, + DischargeStatusEmergency, + EmrInternalConsultation, +} from "entity"; export class OrmHelper { static DB: DataSource = null; @@ -61,6 +149,16 @@ export class OrmHelper { Unit, Currency, InpatientRoom, + InpatientRoomBed, + EmrPatient, + EmrRegistration, + EmrDiagnosis, + EmrRegistrationOutpatient, + EmrRegistrationEmergency, + EmrRegistrationEmergencyResponsible, + DischargeStatusEmergency, + EmrInternalConsultation, + EmrBoardingRoom, SurgeryRoom, SurgeryType, ItemCategory,