37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
#ifndef HIS_CONTEXT_H
|
|
#define HIS_CONTEXT_H
|
|
|
|
#include <string>
|
|
|
|
#include "models/ward.h"
|
|
#include "models/patient.h"
|
|
#include "models/doctor.h"
|
|
#include "models/medicine.h"
|
|
#include "models/check.h"
|
|
#include "models/patient_case.h"
|
|
#include "models/department.h"
|
|
#include "models/payment.h"
|
|
#include "models/settlement.h"
|
|
#include "utils/linkedlist.hpp"
|
|
|
|
namespace core {
|
|
|
|
// Global in-memory context.
|
|
// Owns all list-based entities (implemented with LinkedList in utils/).
|
|
class HisContext {
|
|
public:
|
|
LinkedList<std::string, Ward> wards;
|
|
LinkedList<std::string, Patient> patients;
|
|
LinkedList<std::string, Doctor> doctors;
|
|
LinkedList<std::string, Medicine> medicines;
|
|
LinkedList<std::string, Check> checks; // 检查项目
|
|
LinkedList<std::string, PatientCase> patientCases; // 患者病例
|
|
LinkedList<std::string, Department> departments; // 科室
|
|
LinkedList<std::string, Payment> payments; // 支付记录
|
|
LinkedList<std::string, Settlement> settlements; // 结算单
|
|
};
|
|
|
|
} // namespace core
|
|
|
|
#endif
|