48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
#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
|