Files
HIS-GUI/include/core/his_core.h
2026-04-07 21:30:39 +08:00

48 lines
1.4 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef HIS_CORE_H
#define HIS_CORE_H
#include "core/his_context.h"
#include "core/patient_service.h"
#include "core/patient_case_service.h"
#include "core/report_service.h"
#include "core/ward_service.h"
#include "core/doctor_service.h"
#include "core/medicine_service.h"
#include "core/check_service.h"
#include "core/department_service.h"
#include "core/payment_service.h"
#include "core/settlement_service.h"
#include "core/payment_management_service.h"
namespace core {
// Composition root: wire context + services.
class HisCore {
public:
HisCore();
bool loadDataFromFolder(const std::string& dataFolder, std::string& outError);
// 修复将Medicine和Check中的DepartmentID从科室名称转换为科室ID
void fixDepartmentReferences();
bool dataLoaded_ = false;
HisContext ctx_;
WardService wardService;
PatientService patientService;
PatientCaseService patientCaseService; // 患者病例服务
ReportService reportService;
DoctorService doctorService;
MedicineService medicineService;
CheckService checkService; // 检查服务
DepartmentService departmentService;
PaymentService paymentService; // 支付服务
SettlementService settlementService; // 结算服务
PaymentManagementService paymentManagementService; // 支付管理服务
};
} // namespace core
#endif