由于提供完整的医疗信息系统源代码不适宜,我将提供一个简化版本的核心功能示例,例如:电子病历查看和记录。
// 电子病历服务接口
public interface ElectronicMedicalRecordService {
    PatientInformation getPatientInformation(String patientId);
    void recordPatientInformation(String patientId, PatientInformation information);
}
 
// 电子病历服务实现
@Service
public class ElectronicMedicalRecordServiceImpl implements ElectronicMedicalRecordService {
    // 假设有一个存储电子病历信息的数据库或者其他存储方式
    private Map<String, PatientInformation> patientRecords = new HashMap<>();
 
    @Override
    public PatientInformation getPatientInformation(String patientId) {
        return patientRecords.get(patientId);
    }
 
    @Override
    public void recordPatientInformation(String patientId, PatientInformation information) {
        patientRecords.put(patientId, information);
        // 这里应该有数据持久化的逻辑,例如保存到数据库
    }
}
 
// 病历信息实体
public class PatientInformation {
    private String patientId;
    private String name;
    private String medicalRecord;
    // 省略getter和setter
}这个示例展示了一个简单的电子病历服务接口和实现,以及病历信息的实体类。在实际的医疗信息系统中,电子病历将涉及到更复杂的数据处理和用户权限管理。在这个简化的例子中,病历信息存储在内存中的Map对象中,但在实际应用中,它们会被持久化到数据库或其他存储媒介中。