GetSupplementalDiagnosis() public method

public GetSupplementalDiagnosis ( decimal id ) : lkup_splmtl_diag
id decimal
return HealthInformationProgram.Data.Tables.lkup_splmtl_diag
Ejemplo n.º 1
0
        public SupplementalDiagnosisModel GetSupplementalDiagnosisByDescription(string description)
        {
            var repo = new HealthInformationProgram.Data.Repositories.SupplementalDiagnosisRepository();
            var dataItem = repo.GetSupplementalDiagnosis(description);

            var cat = new SupplementalDiagnosisModel();

            cat.SupplementalDiagnosisId = GetDataValue(dataItem.splmtl_diag_id);
            cat.SupplementalDiagnosisDescription = GetDataValue(dataItem.splmtl_diag_descn);
            cat.SortOrder = GetDataValue(dataItem.user_intrfc_sort_ord);
            cat.Status = GetDataValue(dataItem.splmtl_diag_stat);
            cat.SupplementalDiagnosisEffectiveStartDate = GetDataValue(dataItem.splmtl_diag_strt_eff_dt);
            cat.SupplementalDiagnosisEffectiveEndDate = GetDataValue(dataItem.splmtl_diag_end_eff_dt);
            cat.UpdatedBy = GetDataValue(dataItem.rec_updt_user_id_cd);
            cat.UpdateDate = GetDataValue(dataItem.rec_updt_dt);
            cat.CreatedBy = GetDataValue(dataItem.rec_creat_user_id_cd);
            cat.CreateDate = GetDataValue(dataItem.rec_creat_dt);

            return cat;
        }