GetDiagnosis() public method

public GetDiagnosis ( decimal id ) : lkup_diag
id decimal
return HealthInformationProgram.Data.Tables.lkup_diag
Example #1
0
        public DiagnosisModel GetDiagnosis(decimal id)
        {
            var repo = new DiagnosisRepository();
            var item = repo.GetDiagnosis(id);

            var diagView = new DiagnosisModel();
            diagView.DiagnosisId = GetDataValue(item.diag_id);
            diagView.DiagnosisStatus = GetDataValue(item.diag_stat);
            diagView.DiagnosisAbbreviation = GetDataValue(item.diag_abrvn);
            diagView.DiagnosisDescription = GetDataValue(item.diag_descn);
            diagView.SortOrder = GetDataValue(item.user_intrfc_sort_ord);
            diagView.IcdCode = GetDataValue(item.icd_cd);
            diagView.DiagnosisEffectiveStartDate = GetDataValue(item.diag_strt_eff_dt);
            diagView.DiagnosisEffectiveEndDate = GetDataValue(item.diag_end_eff_dt);
            diagView.CreateDate = GetDataValue(item.rec_creat_dt);
            diagView.CreatedBy = GetDataValue(item.rec_creat_user_id_cd);
            diagView.UpdateDate = GetDataValue(item.rec_updt_dt);
            diagView.UpdatedBy = GetDataValue(item.rec_updt_user_id_cd);

            return diagView;
        }
Example #2
0
        public DiagnosisModel GetDiagnosis(string id)
        {
            var repo = new DiagnosisRepository();
            var item = repo.GetDiagnosis(Convert.ToDecimal(id));

            var diagView = new DiagnosisModel();
            diagView.DiagnosisId = item.diag_id.ToString();
            diagView.DiagnosisStatus = item.diag_stat.ToString();
            diagView.DiagnosisAbbreviation = item.diag_abrvn.ToString();
            diagView.SortOrder = item.user_intrfc_sort_ord.ToString();
            diagView.IcdCode = item.icd_cd.ToString();
            diagView.DiagnosisEffectiveStartDate = item.diag_strt_eff_dt.ToString();
            diagView.DiagnosisEffectiveEndDate = item.diag_end_eff_dt.ToString();
            diagView.CreateDate = item.rec_creat_dt.ToString();
            diagView.CreatedBy = item.rec_creat_user_id_cd.ToString();
            diagView.UpdateDate = item.rec_updt_dt.ToString();
            diagView.UpdatedBy = item.rec_updt_user_id_cd.ToString();

            return diagView;
        }