public override int GetHashCode() { int hash = 1; if (Drg.Length != 0) { hash ^= Drg.GetHashCode(); } if (Mdc.Length != 0) { hash ^= Mdc.GetHashCode(); } if (Pccl != 0) { hash ^= Pccl.GetHashCode(); } if (Gst != 0) { hash ^= Gst.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public static List <Drg> GetEncounterDRG(string encounterId) { DateTime todayDt = DateTime.Today; StringBuilder sb = new StringBuilder(); sb.Append("Select nomenclature_id,source_identifier,source_vocabulary_cd_nomen from vDRGNomen "); sb.Append("where encntr_id = " + long.Parse(encounterId) + " and active_ind = '1' and DRG_PRIORITY > '0' "); sb.Append("AND END_EFFECTIVE_DT_TM > '" + todayDt + "'"); sb.Append(" order by Convert(int, DRG_PRIORITY) "); DataTable dt = new DataTable(); using (var conn = new SqlConnection(GlobalSettings.SqlConnectionString())) using (var cmd = new SqlCommand(sb.ToString(), conn)) using (var da = new SqlDataAdapter(cmd)) { da.Fill(dt); } List <Drg> drgs = new List <Drg>(); foreach (DataRow row in dt.Rows) { Drg drg = LoadDRG(row); if (drg != null) { drgs.Add(drg); } } dt.Dispose(); return(drgs); }
private static Drg LoadDRG(DataRow row) { string drgCode = row["source_identifier"].ToString(); string drgSV = row["source_vocabulary_cd_nomen"].ToString().Trim(); Drg drg = new Drg(); drg.DrgCode = drgCode; drg.DrgStatus = drg.DrgStatus; drg.DrgSourceVocab = drgSV; return(drg); }
public TaggedDrgArray(string tag, Drg drg) { this.tag = tag; if (drg == null) { this.count = 0; return; } this.items = new DrgTO[1]; this.items[0] = new DrgTO(drg); this.count = 1; }
public DrgTO(Drg mdoDrg) { this.id = mdoDrg.Id; this.description = mdoDrg.Description; }
internal Drg[] toDrg(string[] response) { if (response.Length == 0) { return null; } Drg[] result = new Drg[response.Length]; for (int i = 0; i < response.Length; i++) { string[] flds = StringUtils.split(response[i], StringUtils.CARET); result[i] = new Drg(flds[0], flds[1]); } return result; }