package com.cirle.scientific.service;/*
 *24901
 *2022/12/21
 *11:08
 */

import com.cirle.scientific.po.QkjPatientApp;

import java.util.List;

/**
 * @author 24901
 */
public interface PatientAppService {

    QkjPatientApp findPatient(String memCard, Integer objType, Integer objId);

    Integer createPatient(QkjPatientApp qkjPatientApp);

    /**
     * 获取当前医生本月的问卷完成数量
     * @param doctorCodeMemCard
     * @param firstday
     * @param lastday
     * @return
     */
    List<QkjPatientApp> findIsAccomplishQuestion(String doctorCodeMemCard, String firstday, String lastday);

    /**
     * 修改用户问卷是否完成
     * @param memCard 用户唯一标识
     * @param objType 类型
     * @param objId 类型对应的id
     */
    void updateIsAccomplishQuestion(String memCard, Integer patientId, Integer objType, Integer objId, Integer isAccomplishQuestion, Integer oneQuestionnaireScore, Integer towQuestionnaireScore);

    /**
     * 更具患者姓名搜索当下医生的用户信息
     * @param patientName 患者名称
     * @return 用户的信息
     */
    QkjPatientApp findAllByMemCardAndName(String memCard,  String patientName);
}
