public patient Get(int key) { using (BenhNhanProvider provider = new BenhNhanProvider()) { return(provider.Get(key)); } }
public CoreResult Delete(int key, int?userId = default(int?), bool checkPermission = false) { using (BenhNhanProvider provider = new BenhNhanProvider()) { return(provider.Delete(key, userId, checkPermission)); } }
public CoreResult Exist(int key) { using (BenhNhanProvider provider = new BenhNhanProvider()) { return(provider.Exist(key)); } }
public CoreResult Update(int?userId = default(int?), bool checkPermission = false) { using (BenhNhanProvider provider = new BenhNhanProvider()) { return(provider.Update(this, userId, checkPermission)); } }
public IEnumerable <patient> GetFilter(Patient_ParameterSearch parameters) { using (BenhNhanProvider provider = new BenhNhanProvider()) { return(provider.GetFilter(parameters)); } }
public string GetNextCode(string prefix, int?id = null) { using (BenhNhanProvider provider = new BenhNhanProvider()) { return(provider.GetNextCode(prefix, id)); } }
/// <summary> /// /// </summary> /// <param name="_data"></param> /// <param name="mabn"></param> /// <param name="gioihan">thang-ngay</param> /// <returns></returns> public static string TuoitheoThang(DateTime _ngaynhap, string _ngayS, string _thangS, string _namS, int _tuoi, string gioihan) => BenhNhanProvider.TuoitheoThang(_ngaynhap, _ngayS, _thangS, _namS, _tuoi, gioihan);
/// <summary> /// /// </summary> /// <param name="_data"></param> /// <param name="mabn"></param> /// <param name="gioihan">thang-ngay</param> /// <returns></returns> /// public static string TuoitheoThang(Hospital _data, int mabn, string gioihan) => BenhNhanProvider.TuoitheoThang(_data, mabn, gioihan);
public static void _setStatus(int mabenhnhan, int status) => BenhNhanProvider.SetStatus(mabenhnhan, status);
public static bool CheckNgay(Hospital data, int mabn, DateTime ngay) => BenhNhanProvider.KiemTraNgayNhap(data, mabn, ngay);
public static bool _setMaKP_BenhNhan(Hospital _data, int _mabn, int _makp, int _noitru) => BenhNhanProvider.SetMaKPToBenhNhan(_data, _mabn, _makp, _noitru);
public static bool KTraKB(Hospital data, int mabn) => BenhNhanProvider.isKhamBenh(data, mabn);
/// <summary> /// dùng để kiểm tra bệnh nhân đã cho vào viện nhưng nếu chưa phát sinh chi phí nào trong khoa (ht áp dụng cho 27021 và 01830) /// trả về true: nếu là bn bình thường; trả về false nếu là bệnh nhân vào viện nhưng chưa điều trị trong khoa /// </summary> /// <returns></returns> public static bool ktBNNoiNgoaiTru(int mabn) => BenhNhanProvider.KiemtraBenhnhanNoiNgoaitru(mabn);
public static bool setSoKB(int mabn) => BenhNhanProvider.SetSoKB(mabn);
public CoreResult Get() { try { using (BenhNhanProvider provider = new BenhNhanProvider()) { patient entity = provider.Get(this.patientsID); if (entity != null) { #region Assign value this.patientsCode = entity.patientsCode; this.patientsName = entity.patientsName; this.gender = entity.gender; this.dayOfBirth = entity.dayOfBirth; this.mothOfBirth = entity.mothOfBirth; this.yearOfBirth = entity.yearOfBirth; this.age = entity.age; this.address = entity.address; this.PhoneNumber = entity.PhoneNumber; this.registrationDate = entity.registrationDate; this.partientsObjectID = entity.partientsObjectID; this.cardNumber = entity.cardNumber; this.expirationDateFrom = entity.expirationDateFrom; this.expirationDateTo = entity.expirationDateTo; this.emergency = entity.emergency; this.prioritize = entity.prioritize; this.MaBenhVien_DKKCB = entity.MaBenhVien_DKKCB; this.MaBenhVien_KCB = entity.MaBenhVien_KCB; this.MaBenhVien_GioiThieu = entity.MaBenhVien_GioiThieu; this.ChanDoanNoiGT = entity.ChanDoanNoiGT; this.BHTuyen = entity.BHTuyen; this.BHNoiNgoaiTinh = entity.BHNoiNgoaiTinh; this.BHMaKhuVuc = entity.BHMaKhuVuc; this.BHNgayHanMuc = entity.BHNgayHanMuc; //this.BHLuongCoSo = entity.BHLuongCoSo; this.BHMucHuong = entity.BHMucHuong; this.LoaiBenhAn = entity.LoaiBenhAn; this.TrieuChung = entity.TrieuChung; this.CMThu_HChieu = entity.CMThu_HChieu; this.peopleID = entity.peopleID; this.DepartmentsID_Khoa = entity.DepartmentsID_Khoa; this.DepartmentsID_PhongBuong = entity.DepartmentsID_PhongBuong; this.patientsStatus = entity.patientsStatus; //this.DichVuChiDinhID = entity.DichVuChiDinhID; this.registrationNumber = entity.registrationNumber; this.TinhThanhID = entity.TinhThanhID; this.QuanHuyenID = entity.QuanHuyenID; this.XaPhuongID = entity.XaPhuongID; this.NguoiThan_Ten = entity.NguoiThan_Ten; this.NguoiThan_SoDT = entity.NguoiThan_SoDT; this.QuocTichID = entity.QuocTichID; this.NgheNgiepID = entity.NgheNgiepID; this.CanNang = entity.CanNang; this.OutTime = entity.OutTime; this.partientsPicture = entity.partientsPicture; this.deleted = entity.deleted; this.userIDCreated = entity.userIDCreated; this.dateCreated = entity.dateCreated; this.dateUpdated = entity.dateUpdated; this.userIDUpdated = entity.userIDUpdated; this.NumberUpdated = entity.NumberUpdated; #endregion return(provider.GetResultFromStatusCode(CoreStatusCode.OK, ActionType.Get)); } else { return(provider.GetResultFromStatusCode(CoreStatusCode.Failed, ActionType.Get)); } } } catch (Exception e) { throw e; } }
/// <summary> /// set trạng thái đã khám bệnh hay chưa /// </summary> /// <param name="ms"></param> /// <param name="status"></param> /// <param name="makp"></param> public static void _setStatus(int ms, int status, int makp) => BenhNhanProvider.SetStatus(ms, status, makp);
/// <summary> /// True: đã thanh toán trong ngày /// False: chưa thanh toán trong ngày /// </summary> /// <param name="_data"></param> /// <param name="_sthe"></param> /// <returns></returns> public static bool _KTBN_TT_TrongNgay(Hospital _data, int _mabn, DateTime _dt) => BenhNhanProvider.KiemTraBenhNhanKhamBenhTrongNgay(_data, _mabn, _dt);