private void FillGrid(){ gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("Date Time",135); gridMain.Columns.Add(col); col=new ODGridColumn("Service",200); gridMain.Columns.Add(col); listPanels=LabPanels.GetPanelsForOrder(MedOrderCur.MedicalOrderNum);//for a new lab order, this will naturally return no results List<LabResult> listResults; gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<listPanels.Count;i++) { row=new ODGridRow(); listResults=LabResults.GetForPanel(listPanels[i].LabPanelNum); if(listResults.Count==0) { row.Cells.Add(" ");//to avoid a very short row } else { row.Cells.Add(listResults[0].DateTimeTest.ToString()); } row.Cells.Add(listPanels[i].ServiceName); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FormProvidersMultiPick_Load(object sender,EventArgs e) { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g("TableProviders","Abbrev"),90); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TableProviders","Last Name"),90); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TableProviders","First Name"),90); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<ProviderC.ListShort.Count;i++){ row=new ODGridRow(); row.Cells.Add(ProviderC.ListShort[i].Abbr); row.Cells.Add(ProviderC.ListShort[i].LName); row.Cells.Add(ProviderC.ListShort[i].FName); gridMain.Rows.Add(row); } gridMain.EndUpdate(); for(int i=0;i<ProviderC.ListShort.Count;i++) { if(SelectedProviders.Contains(ProviderC.ListShort[i])) { gridMain.SetSelected(i,true); } } }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn("DateTime",140); gridMain.Columns.Add(col); col = new ODGridColumn("Type",600); gridMain.Columns.Add(col); listHistory=EhrMeasureEvents.RefreshByType(PatCur.PatNum,EhrMeasureEventType.ElectronicCopyRequested,EhrMeasureEventType.ElectronicCopyProvidedToPt); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<listHistory.Count;i++) { row=new ODGridRow(); row.Cells.Add(listHistory[i].DateTEvent.ToString()); switch(listHistory[i].EventType) { case EhrMeasureEventType.ElectronicCopyRequested: row.Cells.Add("Requested by patient"); break; case EhrMeasureEventType.ElectronicCopyProvidedToPt: row.Cells.Add("Provided to patient"); break; } gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { listAllergyDefs = AllergyDefs.GetAll(checkShowHidden.Checked); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("FormAllergySetup", "Desciption"), 160); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormAllergySetup", "Hidden"), 60); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < listAllergyDefs.Count; i++) { row = new ODGridRow(); row.Cells.Add(listAllergyDefs[i].Description); if (listAllergyDefs[i].IsHidden) { row.Cells.Add("X"); } else { row.Cells.Add(""); } gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridMu() { gridMu.BeginUpdate(); gridMu.Columns.Clear(); ODGridColumn col = new ODGridColumn("MeasureType", 145); gridMu.Columns.Add(col); col = new ODGridColumn("Met", 35, HorizontalAlignment.Center); gridMu.Columns.Add(col); col = new ODGridColumn("Details", 170); gridMu.Columns.Add(col); col = new ODGridColumn("Click to Take Action", 168); gridMu.Columns.Add(col); col = new ODGridColumn("Related Actions", 142); gridMu.Columns.Add(col); if (ProvPat.EhrKey == "") { listMu = new List <EhrMu>(); } else { if (PrefC.GetBool(PrefName.MeaningfulUseTwo)) { gridMu.Title = "Stage 2 Meaningful Use for this patient"; listMu = EhrMeasures.GetMu2(PatCur); } else { gridMu.Title = "Stage 1 Meaningful Use for this patient"; listMu = EhrMeasures.GetMu(PatCur); } } gridMu.Rows.Clear(); ODGridRow row; for (int i = 0; i < listMu.Count; i++) { row = new ODGridRow(); row.Cells.Add(listMu[i].MeasureType.ToString()); if (listMu[i].Met == MuMet.True) { row.Cells.Add("X"); row.ColorBackG = Color.FromArgb(178, 255, 178); } else if (listMu[i].Met == MuMet.NA) { row.Cells.Add("N/A"); row.ColorBackG = Color.FromArgb(178, 255, 178); } else { row.Cells.Add(""); } row.Cells.Add(listMu[i].Details); row.Cells.Add(listMu[i].Action); row.Cells.Add(listMu[i].Action2); gridMu.Rows.Add(row); } gridMu.EndUpdate(); }
private void FillGrid() { if (!IsHL7DefInternal && !HL7DefMesCur.IsNew) { HL7DefMesCur.hl7DefSegments = HL7DefSegments.GetDeepFromDb(HL7DefMesCur.HL7DefMessageNum); } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Seg"), 35); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Order"), 40, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Can Repeat"), 73, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Is Optional"), 67, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Note"), 100); gridMain.Columns.Add(col); gridMain.Rows.Clear(); if (HL7DefMesCur != null && HL7DefMesCur.hl7DefSegments != null) { for (int i = 0; i < HL7DefMesCur.hl7DefSegments.Count; i++) { ODGridRow row = new ODGridRow(); row.Cells.Add(Lan.g("enumSegmentNameHL7", HL7DefMesCur.hl7DefSegments[i].SegmentName.ToString())); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].ItemOrder.ToString()); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].CanRepeat?"X":""); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].IsOptional?"X":""); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].Note); gridMain.Rows.Add(row); } } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn("Date Start",70); col.TextAlign=HorizontalAlignment.Center; gridMain.Columns.Add(col); col=new ODGridColumn("Date End",70); col.TextAlign=HorizontalAlignment.Center; gridMain.Columns.Add(col); col=new ODGridColumn("SOP Code",70); gridMain.Columns.Add(col); col=new ODGridColumn("Description",250); gridMain.Columns.Add(col); col=new ODGridColumn("Note",100); gridMain.Columns.Add(col); ListPayorTypes=PayorTypes.Refresh(PatCur.PatNum); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<ListPayorTypes.Count;i++) { row=new ODGridRow(); row.Cells.Add(ListPayorTypes[i].DateStart.ToShortDateString()); if(i==ListPayorTypes.Count-1) { row.Cells.Add("Current"); } else { row.Cells.Add(ListPayorTypes[i+1].DateStart.ToShortDateString()); } row.Cells.Add(ListPayorTypes[i].SopCode); row.Cells.Add(Sops.GetOneDescription(ListPayorTypes[i].SopCode)); row.Cells.Add(ListPayorTypes[i].Note); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridEdu.BeginUpdate(); gridEdu.Columns.Clear(); ODGridColumn col=new ODGridColumn("Criteria",300); gridEdu.Columns.Add(col); col=new ODGridColumn("Link",700); gridEdu.Columns.Add(col); eduResourceList=EduResources.SelectAll(); gridEdu.Rows.Clear(); ODGridRow row; for(int i=0;i<eduResourceList.Count;i++) { row=new ODGridRow(); if(eduResourceList[i].DiseaseDefNum!=0) { row.Cells.Add("Problem: "+DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).DiseaseName); } else if(eduResourceList[i].Icd9Num!=0) { row.Cells.Add("ICD9: "+ICD9s.GetDescription(eduResourceList[i].Icd9Num)); } else if(eduResourceList[i].MedicationNum!=0) { row.Cells.Add("Medication: "+Medications.GetDescription(eduResourceList[i].MedicationNum)); } else { row.Cells.Add("Lab Results: "+eduResourceList[i].LabResultName+" "+eduResourceList[i].LabResultCompare); } row.Cells.Add(eduResourceList[i].ResourceUrl); gridEdu.Rows.Add(row); } gridEdu.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) { col=new ODGridColumn("",18);//infobutton col.ImageList=imageListInfoButton; gridMain.Columns.Add(col); } col=new ODGridColumn("Conditions",300); gridMain.Columns.Add(col); col=new ODGridColumn("Instructions",400); gridMain.Columns.Add(col); col=new ODGridColumn("Bibliography",120); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<_table.Rows.Count;i++) { row=new ODGridRow(); if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) { row.Cells.Add(_table.Rows[i][0].ToString());//infobutton } row.Cells.Add(_table.Rows[i][1].ToString());//Trigger Text row.Cells.Add(_table.Rows[i][2].ToString());//TriggerInstructions row.Cells.Add(_table.Rows[i][3].ToString());//Bibliography row.Tag=(List<object>)_table.Rows[i][4];//List of objects to be sent to FormInfobutton; gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridEdu() { gridEdu.BeginUpdate(); gridEdu.Columns.Clear(); ODGridColumn col=new ODGridColumn("Criteria",300); gridEdu.Columns.Add(col); col=new ODGridColumn("Link",100); gridEdu.Columns.Add(col); eduResourceList=EduResources.GenerateForPatient(patCur.PatNum); gridEdu.Rows.Clear(); ODGridRow row; for(int i=0;i<eduResourceList.Count;i++) { row=new ODGridRow(); if(eduResourceList[i].DiseaseDefNum!=0) { row.Cells.Add("Problem: "+DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).DiseaseName); //row.Cells.Add("ICD9: "+DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).ICD9Code); } else if(eduResourceList[i].MedicationNum!=0) { row.Cells.Add("Medication: "+Medications.GetDescription(eduResourceList[i].MedicationNum)); } else { row.Cells.Add("Lab Results: "+eduResourceList[i].LabResultName); } row.Cells.Add(eduResourceList[i].ResourceUrl); gridEdu.Rows.Add(row); } gridEdu.EndUpdate(); }
/// <summary></summary> private void FillGrid() { List<WikiListHeaderWidth> colHeaderWidths = WikiListHeaderWidths.GetForList(WikiListCurName); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; for(int c=0;c<_table.Columns.Count;c++){ int colWidth = 100;//100 = default value in case something is malformed in the database. foreach(WikiListHeaderWidth colHead in colHeaderWidths) { if(colHead.ColName==_table.Columns[c].ColumnName) { colWidth=colHead.ColWidth; break; } } col=new ODGridColumn(_table.Columns[c].ColumnName,colWidth,false); gridMain.Columns.Add(col); } gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<_table.Rows.Count;i++){ row=new ODGridRow(); for(int c=0;c<_table.Columns.Count;c++) { row.Cells.Add(_table.Rows[i][c].ToString()); } gridMain.Rows.Add(row); gridMain.Rows[i].Tag=i; } gridMain.EndUpdate(); gridMain.Title=WikiListCurName; }
private void FillGrid() { table=Patients.GetPtDataTable(false,textLName.Text,textFName.Text,"", "",false,"","", "","","",0, false,false,DateTime.MinValue,0,"","","",""); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("PatNum",70); gridMain.Columns.Add(col); col=new ODGridColumn("LName",120); gridMain.Columns.Add(col); col=new ODGridColumn("FName",120); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<table.Rows.Count;i++){ row=new ODGridRow(); row.Cells.Add(table.Rows[i]["PatNum"].ToString()); row.Cells.Add(table.Rows[i]["LName"].ToString()); row.Cells.Add(table.Rows[i]["FName"].ToString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridReject() { gridReject.BeginUpdate(); gridReject.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("Description",80); gridReject.Columns.Add(col); gridReject.Rows.Clear(); ODGridRow row; for(int i=0;i<EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason.Count;i++) { row=new ODGridRow(); if(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonText!="") { row.Cells.Add(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonText); } else if(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextAlt!="") { row.Cells.Add(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextAlt); } else if(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextOriginal!="") { row.Cells.Add(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextOriginal); } else { row.Cells.Add("Unkown Reject Reason Code.");//should never happen } gridReject.Rows.Add(row); } gridReject.EndUpdate(); }
private void FillGridSent() { List<RefAttach> listRefAttaches; gridSent.BeginUpdate(); gridSent.Columns.Clear(); ODGridColumn col=new ODGridColumn("DateTime",130,HorizontalAlignment.Center); gridSent.Columns.Add(col); col=new ODGridColumn("Meets",140,HorizontalAlignment.Center); gridSent.Columns.Add(col); _listHistorySent=EhrMeasureEvents.RefreshByType(PatCur.PatNum,EhrMeasureEventType.SummaryOfCareProvidedToDr); listRefAttaches=RefAttaches.GetRefAttachesForSummaryOfCareForPat(PatCur.PatNum); gridSent.Rows.Clear(); ODGridRow row; for(int i=0;i<_listHistorySent.Count;i++) { row=new ODGridRow(); row.Cells.Add(_listHistorySent[i].DateTEvent.ToString()); if(_listHistorySent[i].FKey==0) { row.Cells.Add(""); } else { //Only add an X in the grid for the measure events that meet the summary of care measure so that users can see which ones meet. for(int j=0;j<listRefAttaches.Count;j++) { if(listRefAttaches[j].RefAttachNum==_listHistorySent[i].FKey) { row.Cells.Add("X"); break; } } } gridSent.Rows.Add(row); } gridSent.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("Date Time",135); gridMain.Columns.Add(col); col=new ODGridColumn("Service",200); gridMain.Columns.Add(col); listLP = LabPanels.Refresh(PatCur.PatNum); List<LabResult> listResults; gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<listLP.Count;i++) { row=new ODGridRow(); listResults=LabResults.GetForPanel(listLP[i].LabPanelNum); if(listResults.Count==0) { row.Cells.Add(" ");//to avoid a very short row } else { row.Cells.Add(listResults[0].DateTimeTest.ToString()); } row.Cells.Add(listLP[i].ServiceName); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn("PatNum", 50); gridMain.Columns.Add(col); col = new ODGridColumn("Patient Name", 140); gridMain.Columns.Add(col); col = new ODGridColumn("Numerator", 60, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Exclusion", 60, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Explanation", 200); gridMain.Columns.Add(col); table = QualityMeasures.GetTable(Qcur.Type, DateStart, DateEnd, ProvNum); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < table.Rows.Count; i++) { row = new ODGridRow(); row.Cells.Add(table.Rows[i]["PatNum"].ToString()); row.Cells.Add(table.Rows[i]["patientName"].ToString()); row.Cells.Add(table.Rows[i]["numerator"].ToString()); row.Cells.Add(table.Rows[i]["exclusion"].ToString()); row.Cells.Add(table.Rows[i]["explanation"].ToString()); //if(table.Rows[i]["met"].ToString()=="X") { // row.ColorBackG=Color.LightGreen; //} gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillListFeeSchedFilesAll() { FillListFeeSchedFilesOntario(); List<string> ListFeeSchedFilesAll=new List<string>(); ListFeeSchedFilesAll.AddRange(ListFeeSchedFilesOntario); HttpWebRequest request=(HttpWebRequest)WebRequest.Create(Url); using(HttpWebResponse response=(HttpWebResponse)request.GetResponse()) { using(StreamReader reader=new StreamReader(response.GetResponseStream())) { string html=reader.ReadToEnd(); int startIndex=html.IndexOf("<body>")+6; int bodyLength=html.Substring(startIndex).IndexOf("</body>"); string fileListStr=html.Substring(startIndex,bodyLength).Trim(); string[] files=fileListStr.Split(new string[] { "\n","\r\n" },StringSplitOptions.RemoveEmptyEntries); for(int i=0;i<files.Length;i++) { if(files[i].ToLower().StartsWith("procedurecodes")) { continue;//Skip any files which contain procedure codes, because we only want to display fee files. } ListFeeSchedFilesAll.Add(files[i]); } } } ListFeeSchedFilesAll.Sort(); gridFeeSchedFiles.BeginUpdate(); gridFeeSchedFiles.Columns.Clear(); ODGridColumn col=new ODGridColumn("",35); gridFeeSchedFiles.Columns.Add(col); gridFeeSchedFiles.Rows.Clear(); ODGridRow row; for(int i=0;i<ListFeeSchedFilesAll.Count;i++) { row=new ODGridRow(); row.Cells.Add(ListFeeSchedFilesAll[i]); gridFeeSchedFiles.Rows.Add(row); } gridFeeSchedFiles.EndUpdate(); }
private void FillGrid() { int curSelection=gridMain.GetSelectedIndex(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Attached"),60,HorizontalAlignment.Center)); gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Date"),80,HorizontalAlignment.Center)); gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Category"),80,HorizontalAlignment.Center)); gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Desc"),180,HorizontalAlignment.Left)); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<_listPatientDocuments.Count;i++) { if(_listPatientDocuments[i].DocNum<=0) { //Invalid doc num indicates 'Waiting for images'. This flag is set in the Load event. continue; } //Test if this is a valid image. Bitmap bmp=ImageStore.OpenImage(_listPatientDocuments[i],_patFolder); if(bmp==null) { continue; } bmp.Dispose(); bmp=null; bool isAttached=EhrLabImages.GetDocNumExistsInList(_ehrLabNum,_listPatientDocuments[i].DocNum,_listAttached); row=new ODGridRow(); row.Cells.Add(isAttached?"X":""); row.Cells.Add(_listPatientDocuments[i].DateCreated.ToShortDateString()); row.Cells.Add(DefC.GetName(DefCat.ImageCats,_listPatientDocuments[i].DocCategory)); row.Cells.Add(_listPatientDocuments[i].Description); row.Tag=_listPatientDocuments[i]; gridMain.Rows.Add(row); } gridMain.EndUpdate(); if(curSelection>=0) { gridMain.SetSelected(curSelection,true); } }
private void FillGrid(){ listSuppliers=Suppliers.CreateObjects(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g(this,"Name"),110); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Phone"),90); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"CustomerID"),80); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Website"),180); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"UserName"),80); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Password"),80); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Note"),150); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<listSuppliers.Count;i++){ row=new ODGridRow(); row.Cells.Add(listSuppliers[i].Name); row.Cells.Add(listSuppliers[i].Phone); row.Cells.Add(listSuppliers[i].CustomerId); row.Cells.Add(listSuppliers[i].Website); row.Cells.Add(listSuppliers[i].UserName); row.Cells.Add(listSuppliers[i].Password); row.Cells.Add(listSuppliers[i].Note); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void fillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("Loinc Code", 80); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Status", 80); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Long Name", 500); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("UCUM Units", 100); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Order or Observation", 100); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; listLoincSearch = Loincs.GetBySearchString(textCode.Text); for (int i = 0; i < listLoincSearch.Count; i++) { row = new ODGridRow(); row.Cells.Add(listLoincSearch[i].LoincCode); row.Cells.Add(listLoincSearch[i].StatusOfCode); row.Cells.Add(listLoincSearch[i].NameLongCommon); row.Cells.Add(listLoincSearch[i].UnitsUCUM); row.Cells.Add(listLoincSearch[i].OrderObs); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn("Test Date",80); gridMain.Columns.Add(col); col=new ODGridColumn("LOINC",75); gridMain.Columns.Add(col); col=new ODGridColumn("Test Performed",130); gridMain.Columns.Add(col); col=new ODGridColumn("ResultVal",60); gridMain.Columns.Add(col); col=new ODGridColumn("Units",45); gridMain.Columns.Add(col); col=new ODGridColumn("Range",55); gridMain.Columns.Add(col); listResults = LabResults.GetForPanel(PanelCur.LabPanelNum); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<listResults.Count;i++) { row=new ODGridRow(); row.Cells.Add(listResults[i].DateTimeTest.ToShortDateString()); row.Cells.Add(listResults[i].TestID); row.Cells.Add(listResults[i].TestName); row.Cells.Add(listResults[i].ObsValue); row.Cells.Add(listResults[i].ObsUnits); row.Cells.Add(listResults[i].ObsRange); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn("Last Name", 80); gridMain.Columns.Add(col); col = new ODGridColumn("First Name", 80); gridMain.Columns.Add(col); col = new ODGridColumn("Year", 30); gridMain.Columns.Add(col); col = new ODGridColumn("Key", 100); gridMain.Columns.Add(col); _listKeys = EhrProvKeys.GetAllKeys(); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < _listKeys.Count; i++) { row = new ODGridRow(); row.Cells.Add(_listKeys[i].LName); row.Cells.Add(_listKeys[i].FName); row.Cells.Add(_listKeys[i].YearValue.ToString()); row.Cells.Add(_listKeys[i].ProvKey); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid(){ //if a sheet is selected, remember it long selectedSheetNum=0; if(gridMain.GetSelectedIndex()!=-1) { selectedSheetNum=sheetList[gridMain.GetSelectedIndex()].SheetNum;//PIn.Long(table.Rows[gridMain.GetSelectedIndex()]["SheetNum"].ToString()); } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g(this,"Date"),70); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Time"),50); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Description"),210); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; sheetList=Sheets.GetExamSheetsTable(PatNum,DateTime.MinValue,DateTime.MaxValue,textExamDescript.Text); for(int i=0;i<sheetList.Count;i++){ row=new ODGridRow(); row.Cells.Add(sheetList[i].DateTimeSheet.ToShortDateString());// ["date"].ToString()); row.Cells.Add(sheetList[i].DateTimeSheet.ToShortTimeString());// ["time"].ToString()); row.Cells.Add(sheetList[i].Description); gridMain.Rows.Add(row); } gridMain.EndUpdate(); //reselect if(selectedSheetNum!=0) { for(int i=0;i<sheetList.Count;i++) { if(sheetList[i].SheetNum==selectedSheetNum){ //table.Rows[i]["SheetNum"].ToString()==selectedSheetNum.ToString()) { gridMain.SetSelected(i,true); break; } } } }
private void FillMain() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g("TableApptTypes","Name"),150); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TableApptTypes","Color"),100); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TableApptTypes","Hidden"),0,HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; _listApptTypes.Sort(AppointmentTypes.SortItemOrder); for(int i=0;i<_listApptTypes.Count;i++) { row=new ODGridRow(); row.Cells.Add(_listApptTypes[i].AppointmentTypeName); //TODO: more elegantly display color. possibly by row (already supported), or color the cell (enhancement). //The text color is always black in the grid, but text is also always black on every appointment displayed in the appointment module. //If the user chooses a color that does makes the black text hard to read, then we want them to see that in this window immediately. row.Cells.Add(_listApptTypes[i].AppointmentTypeColor.Name); row.ColorBackG=_listApptTypes[i].AppointmentTypeColor; row.Cells.Add(_listApptTypes[i].IsHidden?"X":""); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("Reminder Criterion", 200); gridMain.Columns.Add(col); col = new ODGridColumn("Message", 200); gridMain.Columns.Add(col); listReminders = ReminderRules.SelectAll(); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < listReminders.Count; i++) { row = new ODGridRow(); switch (listReminders[i].ReminderCriterion) { case EhrCriterion.Problem: DiseaseDef def = DiseaseDefs.GetItem(listReminders[i].CriterionFK); row.Cells.Add("Problem =" + def.ICD9Code + " " + def.DiseaseName); break; case EhrCriterion.Medication: Medication tempMed = Medications.GetMedication(listReminders[i].CriterionFK); if (tempMed.MedicationNum == tempMed.GenericNum) //handle generic medication names. { row.Cells.Add("Medication = " + tempMed.MedName); } else { row.Cells.Add("Medication = " + tempMed.MedName + " / " + Medications.GetGenericName(tempMed.GenericNum)); } break; case EhrCriterion.Allergy: row.Cells.Add("Allergy = " + AllergyDefs.GetOne(listReminders[i].CriterionFK).Description); break; case EhrCriterion.Age: row.Cells.Add("Age " + listReminders[i].CriterionValue); break; case EhrCriterion.Gender: row.Cells.Add("Gender is " + listReminders[i].CriterionValue); break; case EhrCriterion.LabResult: row.Cells.Add("LabResult " + listReminders[i].CriterionValue); break; //case EhrCriterion.ICD9: // row.Cells.Add("ICD9 "+ICD9s.GetDescription(listReminders[i].CriterionFK)); // break; } row.Cells.Add(listReminders[i].Message); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("FormTrophyNamePick", "FolderName"), 100); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormTrophyNamePick", "Last Name"), 120); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormTrophyNamePick", "First Name"), 120); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormTrophyNamePick", "Birthdate"), 80); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < ListMatches.Count; i++) { row = new ODGridRow(); row.Cells.Add(ListMatches[i].FolderName); row.Cells.Add(ListMatches[i].LName); row.Cells.Add(ListMatches[i].FName); row.Cells.Add(ListMatches[i].BirthDate.ToShortDateString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { Employees.Refresh(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("FormEmployeeSelect", "FName"), 75); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormEmployeeSelect", "LName"), 75); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormEmployeeSelect", "MiddleI"), 50); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormEmployeeSelect", "Hidden"), 50, HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < Employees.ListLong.Length; i++) { row = new ODGridRow(); row.Cells.Add(Employees.ListLong[i].FName); row.Cells.Add(Employees.ListLong[i].LName); row.Cells.Add(Employees.ListLong[i].MiddleI); if (Employees.ListLong[i].IsHidden) { row.Cells.Add("X"); } else { row.Cells.Add(""); } gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridQB() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableChartOfAccountsQB", "Description"), 200); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; //Get the list of accounts from QuickBooks. Cursor.Current = Cursors.WaitCursor; List <string> accountList = new List <string>(); try { accountList = QuickBooks.GetListOfAccounts(); } catch (Exception e) { MessageBox.Show(e.Message); } Cursor.Current = Cursors.Default; for (int i = 0; i < accountList.Count; i++) { row = new ODGridRow(); row.Cells.Add(accountList[i]); row.Tag = accountList[i]; gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridVaccine() { gridVaccine.BeginUpdate(); gridVaccine.Columns.Clear(); ODGridColumn col=new ODGridColumn("Date",90); gridVaccine.Columns.Add(col); col=new ODGridColumn("Vaccine",100); gridVaccine.Columns.Add(col); VaccineList=VaccinePats.Refresh(PatCur.PatNum); gridVaccine.Rows.Clear(); ODGridRow row; for(int i=0;i<VaccineList.Count;i++) { row=new ODGridRow(); if(VaccineList[i].DateTimeStart.Year<1880){ row.Cells.Add(""); } else{ row.Cells.Add(VaccineList[i].DateTimeStart.ToShortDateString()); } string str=""; if(VaccineList[i].VaccineDefNum==0) { str="Not administered: "+VaccineList[i].Note; } else { str=VaccineDefs.GetOne(VaccineList[i].VaccineDefNum).VaccineName; } row.Cells.Add(str); gridVaccine.Rows.Add(row); } gridVaccine.EndUpdate(); }
private void FillElectIDs(long electIDSelect) { ElectIDs.RefreshCache(); _listElectIDs = ElectIDs.GetDeepCopy(); gridElectIDs.BeginUpdate(); gridElectIDs.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableApptProcs", "Carrier"), 320); gridElectIDs.Columns.Add(col); col = new ODGridColumn(Lan.g("TableApptProcs", "Payer ID"), 80); gridElectIDs.Columns.Add(col); col = new ODGridColumn(Lan.g("TableApptProcs", "Is Medicaid"), 70, HorizontalAlignment.Center); gridElectIDs.Columns.Add(col); col = new ODGridColumn(Lan.g("TableApptProcs", "Comments"), 390); gridElectIDs.Columns.Add(col); gridElectIDs.Rows.Clear(); ODGridRow row; int selectedIndex = -1; for (int i = 0; i < _listElectIDs.Count; i++) { row = new ODGridRow(); row.Cells.Add(_listElectIDs[i].CarrierName); row.Cells.Add(_listElectIDs[i].PayorID); row.Cells.Add(_listElectIDs[i].IsMedicaid?"X":""); row.Cells.Add(_listElectIDs[i].Comments); gridElectIDs.Rows.Add(row); if (_listElectIDs[i].ElectIDNum == electIDSelect) { selectedIndex = i; } } gridElectIDs.EndUpdate(); gridElectIDs.SetSelected(selectedIndex, true); }
/// <summary></summary> private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Column"), 200); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Value"), 400); col.IsEditable = true; gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 1; i < _tableWikiList.Columns.Count; i++) //Start at 1 since row 0 (PK) goes in the title bar. { row = new ODGridRow(); row.Cells.Add(_tableWikiList.Columns[i].ColumnName); row.Cells.Add(_tableWikiList.Rows[0][i].ToString()); if (i == 0) { row.ColorBackG = Color.Gray; //darken the PK to imply that it cannot be edited. } gridMain.Rows.Add(row); } gridMain.EndUpdate(); gridMain.Title = Lan.g(this, "Edit List Item"); }
private void FillGrid(bool isExact) { Cursor = Cursors.WaitCursor; rxList = RxNorms.GetListByCodeOrDesc(textCode.Text, isExact); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("FormRxNorms", "Code"), 80); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormRxNorms", "Description"), 110); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < rxList.Count; i++) { row = new ODGridRow(); row.Cells.Add(rxList[i].RxCui); row.Cells.Add(rxList[i].Description); gridMain.Rows.Add(row); } gridMain.EndUpdate(); gridMain.ScrollValue = 0; Cursor = Cursors.Default; }
/// <summary></summary> private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Image Name"), 70); gridMain.Columns.Add(col); gridMain.Rows.Clear(); string[] fileNames = System.IO.Directory.GetFiles(WikiPages.GetWikiPath()); //All files from the wiki file path, including images and other files. ImageNamesList = new List <string>(); for (int i = 0; i < fileNames.Length; i++) { //If the user has entered a search keyword, then only show file names which contain the keyword. if (textSearch.Text != "" && !Path.GetFileName(fileNames[i]).ToLower().Contains(textSearch.Text.ToLower())) { continue; } //Only add image files to the ImageNamesList, not other files such at text files. if (ImageHelper.HasImageExtension(fileNames[i])) { ImageNamesList.Add(fileNames[i]); } } for (int i = 0; i < ImageNamesList.Count; i++) { ODGridRow row = new ODGridRow(); row.Cells.Add(Path.GetFileName(ImageNamesList[i])); gridMain.Rows.Add(row); } gridMain.EndUpdate(); labelImageSize.Text = Lan.g(this, "Image Size") + ":"; picturePreview.Image = null; picturePreview.Invalidate(); }
private void FillProblems() { DiseaseList = Diseases.Refresh(PatCur.PatNum); gridDiseases.BeginUpdate(); gridDiseases.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableDiseases", "Name"), 140); //total is about 325 gridDiseases.Columns.Add(col); col = new ODGridColumn(Lan.g("TableDiseases", "Patient Note"), 145); gridDiseases.Columns.Add(col); col = new ODGridColumn(Lan.g("TableDisease", "Status"), 40); gridDiseases.Columns.Add(col); gridDiseases.Rows.Clear(); ODGridRow row; for (int i = 0; i < DiseaseList.Count; i++) { row = new ODGridRow(); if (DiseaseList[i].DiseaseDefNum != 0) { row.Cells.Add(DiseaseDefs.GetName(DiseaseList[i].DiseaseDefNum)); } else { row.Cells.Add(ICD9s.GetDescription(DiseaseList[i].ICD9Num)); } row.Cells.Add(DiseaseList[i].PatNote); row.Cells.Add(DiseaseList[i].ProbStatus.ToString()); gridDiseases.Rows.Add(row); } gridDiseases.EndUpdate(); }
private void FillSupplementalInfo() { if (_proc.ListSupplementalInfo.Count == 0) { gridSupplementalInfo.Title = "Supplemental Info (None Reported)"; } else { gridSupplementalInfo.Title = "Supplemental Info"; } gridSupplementalInfo.BeginUpdate(); gridSupplementalInfo.Columns.Clear(); const int colWidthAmt = 80; int colWidthVariable = gridSupplementalInfo.Width - 10 - colWidthAmt; gridSupplementalInfo.Columns.Add(new ODGridColumn("Description", colWidthVariable, HorizontalAlignment.Left)); gridSupplementalInfo.Columns.Add(new ODGridColumn("Amt", colWidthAmt, HorizontalAlignment.Right)); gridSupplementalInfo.Rows.Clear(); for (int i = 0; i < _proc.ListSupplementalInfo.Count; i++) { Hx835_Info info = _proc.ListSupplementalInfo[i]; ODGridRow row = new ODGridRow(); row.Tag = info; row.Cells.Add(info.FieldName); //Description row.Cells.Add(info.FieldValue); //Amount gridSupplementalInfo.Rows.Add(row); } gridSupplementalInfo.EndUpdate(); }
///<summary>Fills patient information from message contents, not from PatCur.</summary> private void FillGridPatInfo() { gridPidInfo.BeginUpdate(); gridPidInfo.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("Patient Name", 335); gridPidInfo.Columns.Add(col); col = new ODGridColumn("Birthdate", 150); gridPidInfo.Columns.Add(col); col = new ODGridColumn("Gender", 150); gridPidInfo.Columns.Add(col); col = new ODGridColumn("SSN", 150); gridPidInfo.Columns.Add(col); gridPidInfo.Rows.Clear(); List <string[]> listPats = GetPatInfoFromPidSegments(); ODGridRow row; for (int i = 0; i < listPats.Count; i++) { if (listPats[i].Length < 4) //should never happen { continue; } row = new ODGridRow(); row.Cells.Add(listPats[i][0]); //patName row.Cells.Add(listPats[i][1]); //Birthdate row.Cells.Add(listPats[i][2]); //Gender row.Cells.Add(listPats[i][3]); //SSN gridPidInfo.Rows.Add(row); } gridPidInfo.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn("DateTime", 140); gridMain.Columns.Add(col); col = new ODGridColumn("Type", 600); gridMain.Columns.Add(col); listHistory = EhrMeasureEvents.RefreshByType(PatCur.PatNum, EhrMeasureEventType.ElectronicCopyRequested, EhrMeasureEventType.ElectronicCopyProvidedToPt); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < listHistory.Count; i++) { row = new ODGridRow(); row.Cells.Add(listHistory[i].DateTEvent.ToString()); switch (listHistory[i].EventType) { case EhrMeasureEventType.ElectronicCopyRequested: row.Cells.Add("Requested by patient"); break; case EhrMeasureEventType.ElectronicCopyProvidedToPt: row.Cells.Add("Provided to patient"); break; } gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("Date Time",80,HorizontalAlignment.Center);//Formatted yyyyMMdd col.SortingStrategy=GridSortingStrategy.DateParse; gridMain.Columns.Add(col); col=new ODGridColumn("Placer Order Number",130,HorizontalAlignment.Center);//Should be PK but might not be. Instead use Placer Order Num. gridMain.Columns.Add(col); col=new ODGridColumn("Filler Order Number",130,HorizontalAlignment.Center);//Should be PK but might not be. Instead use Placer Order Num. gridMain.Columns.Add(col); col=new ODGridColumn("Test Performed",430);//Should be PK but might not be. Instead use Placer Order Num. gridMain.Columns.Add(col); col=new ODGridColumn("Results In",80,HorizontalAlignment.Center);//Or date of latest result? or both? gridMain.Columns.Add(col); ListEhrLabs = EhrLabs.GetAllForPat(PatCur.PatNum); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<ListEhrLabs.Count;i++) { row=new ODGridRow(); string dateSt=ListEhrLabs[i].ResultDateTime.PadRight(8,'0').Substring(0,8);//stored in DB as yyyyMMddhhmmss-zzzz DateTime dateT=PIn.Date(dateSt.Substring(4,2)+"/"+dateSt.Substring(6,2)+"/"+dateSt.Substring(0,4)); row.Cells.Add(dateT.ToShortDateString());//date only row.Cells.Add(ListEhrLabs[i].PlacerOrderNum); row.Cells.Add(ListEhrLabs[i].FillerOrderNum); row.Cells.Add(ListEhrLabs[i].UsiText); row.Cells.Add(ListEhrLabs[i].ListEhrLabResults.Count.ToString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { if (PharmacyC.Listt.Count < 1) { MsgBox.Show(this, "Need to set up at least one pharmacy."); return; } listRx = RxPats.GetQueue(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableQueue", "Patient"), 150); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableQueue", "Provider"), 150); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableQueue", "Rx"), 150); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableQueue", "Pharmacy"), 150); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < listRx.Count; i++) { Patient patCur = Patients.GetLim(listRx[i].PatNum); row = new ODGridRow(); row.Cells.Add(Patients.GetNameLF(patCur.LName, patCur.FName, patCur.Preferred, patCur.MiddleI)); row.Cells.Add(Providers.GetAbbr(listRx[i].ProvNum)); row.Cells.Add(listRx[i].Drug); row.Cells.Add(Pharmacies.GetDescription(listRx[i].PharmacyNum)); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
///<summary>This method takes care of parsing the query by pulling out SET statements and finding the variables with their assigned values. ///Puts all of this information into the grid.</summary> private void FillGrid(bool isTypingText = false) { Point selectedCell = gridMain.SelectedCell; List <string> listSetStmts = UserQueries.ParseSetStatements(_queryCur.QueryText); gridMain.BeginUpdate(); gridMain.Columns.Clear(); gridMain.Columns.Add(new ODGridColumn(Lan.g(gridMain.TranslationName, "Variable"), 200)); gridMain.Columns.Add(new ODGridColumn(Lan.g(gridMain.TranslationName, "Value"), 200, true)); gridMain.Rows.Clear(); foreach (string strSetStmt in listSetStmts) //for each SET statement { List <QuerySetStmtObject> listQObjs = GetListQuerySetStmtObjs(strSetStmt); //find the variable name foreach (QuerySetStmtObject qObj in listQObjs) { ODGridRow row = new ODGridRow(); row.Cells.Add(qObj.Variable); row.Cells.Add(qObj.Value); row.Tag = qObj; gridMain.Rows.Add(row); } } gridMain.EndUpdate(); if (!isTypingText) { try { gridMain.SetSelected(selectedCell); } catch { //suppress if the row doesn't exist (such as filling the grid for the first time) } } }
private void FillGrid() { if(_rootOIDString=="") { labelRetrieveStatus.ForeColor=System.Drawing.Color.Red; labelRetrieveStatus.Text="There is no OID root stored. It is recommended that you press the 'Retrieve OIDs' button."; } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("Type",100); gridMain.Columns.Add(col); col=new ODGridColumn("Recommended Value",220); gridMain.Columns.Add(col); col=new ODGridColumn("Actual Value",220); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<_listOIDInternal.Count;i++) { row=new ODGridRow(); row.Cells.Add(_listOIDInternal[i].IDType.ToString()); if(_listOIDInternal[i].IDType==IdentifierType.Root) { row.Cells.Add("Press 'Retrieve OIDs' or see manual"); } else { //recommended value is root+.1 through root+.4 (will grow as the enum is expanded) row.Cells.Add(_rootOIDString+"."+i.ToString());//adds the .1, .2, .3, and .4 (etc...) to the root } row.Cells.Add(_listOIDInternal[i].IDRoot); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("Date", 70); gridMain.Columns.Add(col); for (int i = 0; i < listOrthDisplayFields.Count; i++) { col = new ODGridColumn(listOrthDisplayFields[i].Description, listOrthDisplayFields[i].ColumnWidth, true); gridMain.Columns.Add(col); } gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < table.Rows.Count; i++) { row = new ODGridRow(); row.Height = 19; //fixes isEditable look and feel DateTime tempDate = (DateTime)table.Rows[i]["Date"]; row.Cells.Add(tempDate.ToShortDateString()); row.Tag = tempDate; for (int j = 0; j < listOrthDisplayFields.Count; j++) { row.Cells.Add(table.Rows[i][j + 1].ToString()); } gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
/// <summary></summary> private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g(this,"Image Name"),70); gridMain.Columns.Add(col); gridMain.Rows.Clear(); string[] fileNames=System.IO.Directory.GetFiles(WikiPages.GetWikiPath());//All files from the wiki file path, including images and other files. ImageNamesList=new List<string>(); for(int i=0;i<fileNames.Length;i++) { //If the user has entered a search keyword, then only show file names which contain the keyword. if(textSearch.Text!="" && !Path.GetFileName(fileNames[i]).ToLower().Contains(textSearch.Text.ToLower())) { continue; } //Only add image files to the ImageNamesList, not other files such at text files. if(ImageHelper.HasImageExtension(fileNames[i])) { ImageNamesList.Add(fileNames[i]); } } for(int i=0;i<ImageNamesList.Count;i++) { ODGridRow row=new ODGridRow(); row.Cells.Add(Path.GetFileName(ImageNamesList[i])); gridMain.Rows.Add(row); } gridMain.EndUpdate(); labelImageSize.Text=Lan.g(this,"Image Size")+":"; picturePreview.Image=null; picturePreview.Invalidate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("CPT Code",100); gridMain.Columns.Add(col); //col=new ODGridColumn("Deprecated",75,HorizontalAlignment.Center); //gridMain.Columns.Add(col); col=new ODGridColumn("Description",500); gridMain.Columns.Add(col); //col=new ODGridColumn("Used By CQM's",75); //gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; listCpts=Cpts.GetBySearchText(textCode.Text); //List<ODGridRow> listAll=new List<ODGridRow>();//for sorting grid after it has been filled. for(int i=0;i<listCpts.Count;i++) { row=new ODGridRow(); row.Cells.Add(listCpts[i].CptCode); row.Cells.Add(listCpts[i].Description); //row.Cells.Add(EhrCodes.GetMeasureIdsForCode(listCpts[i].SnomedCode,"SNOMEDCT")); row.Tag=listCpts[i];; //listAll.Add(row); gridMain.Rows.Add(row); } //listAll.Sort(SortMeasuresMet); //for(int i=0;i<listAll.Count;i++) { // gridMain.Rows.Add(listAll[i]); //} gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("Date Time", 135); gridMain.Columns.Add(col); col = new ODGridColumn("Service", 200); gridMain.Columns.Add(col); listLP = LabPanels.Refresh(PatCur.PatNum); List <LabResult> listResults; gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < listLP.Count; i++) { row = new ODGridRow(); listResults = LabResults.GetForPanel(listLP[i].LabPanelNum); if (listResults.Count == 0) { row.Cells.Add(" "); //to avoid a very short row } else { row.Cells.Add(listResults[0].DateTimeTest.ToString()); } row.Cells.Add(listLP[i].ServiceName); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { Cursor.Current = Cursors.WaitCursor; TableRegKeys = RegistrationKeys.GetAllWithoutCharges(); Cursor.Current = Cursors.Default; gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn("PatNum", 60); gridMain.Columns.Add(col); col = new ODGridColumn("RegKey", 140); gridMain.Columns.Add(col); col = new ODGridColumn("Family", 200); gridMain.Columns.Add(col); //col=new ODGridColumn("Repeating Charge",150); //gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < TableRegKeys.Rows.Count; i++) { row = new ODGridRow(); row.Cells.Add(TableRegKeys.Rows[i]["PatNum"].ToString()); row.Cells.Add(TableRegKeys.Rows[i]["RegKey"].ToString()); row.Cells.Add(TableRegKeys.Rows[i]["LName"].ToString() + ", " + TableRegKeys.Rows[i]["FName"].ToString()); //row.Cells.Add(table.Rows[i]["dateStop"].ToString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { if(!IsHL7DefInternal && !HL7DefSegCur.IsNew) { HL7DefSegCur.hl7DefFields=HL7DefFields.GetFromDb(HL7DefSegCur.HL7DefSegmentNum); } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g(this,"Field Name"),140); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Fixed Text"),240); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Type"),40); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Order"),40,HorizontalAlignment.Center); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Table ID"),75); gridMain.Columns.Add(col); gridMain.Rows.Clear(); if(HL7DefSegCur!=null && HL7DefSegCur.hl7DefFields!=null) { for(int i=0;i<HL7DefSegCur.hl7DefFields.Count;i++) { ODGridRow row=new ODGridRow(); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].FieldName); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].FixedText); row.Cells.Add(Lan.g("enumDataTypeHL7",HL7DefSegCur.hl7DefFields[i].DataType.ToString())); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].OrdinalPos.ToString()); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].TableId); gridMain.Rows.Add(row); } } gridMain.EndUpdate(); }
private void FillGridQuoteNotStarted() { List <Job> listJobsQuoteNotStarted = _listJobsAll.Where(x => x.ListJobQuotes.Exists(y => y.IsCustomerApproved == true) && x.HoursActual <= 0 && !x.PhaseCur.In(JobPhase.Cancelled, JobPhase.Complete, JobPhase.Documentation) && !x.Category.In(JobCategory.Bug, JobCategory.Query, JobCategory.Conversion, JobCategory.Research)).ToList(); gridQuoteNotStarted.BeginUpdate(); gridQuoteNotStarted.Columns.Clear(); gridQuoteNotStarted.Columns.Add(new ODGridColumn("Job", 0)); gridQuoteNotStarted.Columns.Add(new ODGridColumn("Owner", 70) { TextAlign = HorizontalAlignment.Center }); gridQuoteNotStarted.Columns.Add(new ODGridColumn("Owner Action", 90)); gridQuoteNotStarted.Rows.Clear(); foreach (Job job in listJobsQuoteNotStarted) { ODGridRow row = new ODGridRow() { Tag = job }; row.Cells.Add(job.ToString()); row.Cells.Add(Userods.GetName(job.OwnerNum)); row.Cells.Add(job.OwnerAction.GetDescription()); gridQuoteNotStarted.Rows.Add(row); } gridQuoteNotStarted.EndUpdate(); }
private void FillGrid() { if(comboType.SelectedIndex==0) { _listEhrMeasureEvents=EhrMeasureEvents.GetAllByTypeFromDB(PIn.DateT(textDateStart.Text),PIn.DateT(textDateEnd.Text),(EhrMeasureEventType)comboType.SelectedIndex,true); } else { _listEhrMeasureEvents=EhrMeasureEvents.GetAllByTypeFromDB(PIn.DateT(textDateStart.Text),PIn.DateT(textDateEnd.Text),(EhrMeasureEventType)comboType.SelectedIndex-1,false); } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g("TableProviders","Event Type"),140); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TableProviders","Date"),80); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TableProviders","PatNum"),60); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TableProviders","More Info"),160); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<_listEhrMeasureEvents.Count;i++) { row=new ODGridRow(); row.Cells.Add(_typeNames[(int)_listEhrMeasureEvents[i].EventType]); row.Cells.Add(_listEhrMeasureEvents[i].DateTEvent.ToShortDateString()); row.Cells.Add(_listEhrMeasureEvents[i].PatNum.ToString()); row.Cells.Add(_listEhrMeasureEvents[i].MoreInfo); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridNoHours() { List <Job> listJobsInDevelopmentNoHours = _listJobsAll.Where(x => x.HoursActual <= 0 && x.PhaseCur.In(JobPhase.Development) && !x.Category.In(JobCategory.Bug, JobCategory.Query, JobCategory.Conversion, JobCategory.Research)).ToList(); gridNoHours.BeginUpdate(); gridNoHours.Columns.Clear(); gridNoHours.Columns.Add(new ODGridColumn("Job", 0)); gridNoHours.Columns.Add(new ODGridColumn("Owner", 70) { TextAlign = HorizontalAlignment.Center }); gridNoHours.Columns.Add(new ODGridColumn("Owner Action", 90)); gridNoHours.Rows.Clear(); foreach (Job job in listJobsInDevelopmentNoHours) { ODGridRow row = new ODGridRow() { Tag = job }; row.Cells.Add(job.ToString()); row.Cells.Add(Userods.GetName(job.OwnerNum)); row.Cells.Add(job.OwnerAction.GetDescription()); gridNoHours.Rows.Add(row); } gridNoHours.EndUpdate(); }
private void FillGrid() { gridTasks.BeginUpdate(); gridTasks.Columns.Clear(); gridTasks.Rows.Clear(); ODGridColumn col = new ODGridColumn("Created", 70, HorizontalAlignment.Left, false); gridTasks.Columns.Add(col); col = new ODGridColumn("Completed", 70, HorizontalAlignment.Left, false); gridTasks.Columns.Add(col); col = new ODGridColumn("Description", 0); gridTasks.Columns.Add(col); ODGridRow row; for (int i = 0; i < _tableTasks.Rows.Count; i++) { row = new ODGridRow(); row.Cells.Add(_tableTasks.Rows[i]["dateCreate"].ToString()); row.Cells.Add(_tableTasks.Rows[i]["dateComplete"].ToString()); row.Cells.Add(_tableTasks.Rows[i]["description"].ToString()); row.Note = _tableTasks.Rows[i]["note"].ToString(); row.ColorLborder = Color.Black; row.ColorText = Color.FromArgb(PIn.Int(_tableTasks.Rows[i]["color"].ToString())); gridTasks.Rows.Add(row); row.Tag = _tableTasks.Rows[i]["TaskNum"].ToString(); } gridTasks.EndUpdate(); }
private void FillGridPickList() { gridPickList.BeginUpdate(); gridPickList.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(gridPickList.TranslationName, "Input Text"), 100, true); col.IsEditable = true; gridPickList.Columns.Add(col); gridPickList.Rows.Clear(); if (gridMain.SelectedCell.Y != -1) { ODGridRow row; for (int i = 0; i < _listComboOptions.Count; i++) { row = new ODGridRow(); row.Cells.Add(_listComboOptions[i]); gridPickList.Rows.Add(row); } } gridPickList.EndUpdate(); if (_pickListIndex > -1 && _listComboOptions.Count > _pickListIndex) { gridPickList.SetSelected(_pickListIndex, true); } }
private void FillGrid() { ConnList = CentralConnections.Refresh(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("#", 40); gridMain.Columns.Add(col); col = new ODGridColumn("Database", 320); gridMain.Columns.Add(col); col = new ODGridColumn("Note", 300); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < ConnList.Count; i++) { row = new ODGridRow(); row.Cells.Add(ConnList[i].ItemOrder.ToString()); if (ConnList[i].DatabaseName == "") //uri { row.Cells.Add(ConnList[i].ServiceURI); } else { row.Cells.Add(ConnList[i].ServerName + ", " + ConnList[i].DatabaseName); } row.Cells.Add(ConnList[i].Note); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { RecallTypes.RefreshCache(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableRecallTypes", "Description"), 110); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRecallTypes", "Special Type"), 110); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRecallTypes", "Triggers"), 190); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRecallTypes", "Interval"), 60); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRecallTypes", "Time Pattern"), 90); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRecallTypes", "Procedures"), 190); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; //string txt; for (int i = 0; i < RecallTypeC.Listt.Count; i++) { row = new ODGridRow(); row.Cells.Add(RecallTypeC.Listt[i].Description); row.Cells.Add(RecallTypes.GetSpecialTypeStr(RecallTypeC.Listt[i].RecallTypeNum)); row.Cells.Add(GetStringForType(RecallTypeC.Listt[i].RecallTypeNum)); row.Cells.Add(RecallTypeC.Listt[i].DefaultInterval.ToString()); row.Cells.Add(RecallTypeC.Listt[i].TimePattern); row.Cells.Add(RecallTypeC.Listt[i].Procedures); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { if(!IsHL7DefInternal && !HL7DefMesCur.IsNew) { HL7DefMesCur.hl7DefSegments=HL7DefSegments.GetDeepFromDb(HL7DefMesCur.HL7DefMessageNum); } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g(this,"Seg"),35); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Order"),40,HorizontalAlignment.Center); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Can Repeat"),73,HorizontalAlignment.Center); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Is Optional"),67,HorizontalAlignment.Center); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g(this,"Note"),100); gridMain.Columns.Add(col); gridMain.Rows.Clear(); if(HL7DefMesCur!=null && HL7DefMesCur.hl7DefSegments!=null) { for(int i=0;i<HL7DefMesCur.hl7DefSegments.Count;i++) { ODGridRow row=new ODGridRow(); row.Cells.Add(Lan.g("enumSegmentNameHL7",HL7DefMesCur.hl7DefSegments[i].SegmentName.ToString())); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].ItemOrder.ToString()); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].CanRepeat?"X":""); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].IsOptional?"X":""); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].Note); gridMain.Rows.Add(row); } } gridMain.EndUpdate(); }
private void FillGridWebSchedTimeSlots(List <TimeSlot> listTimeSlots) { if (this.InvokeRequired) { this.Invoke((Action) delegate() { FillGridWebSchedTimeSlots(listTimeSlots); }); return; } gridWebSchedTimeSlots.BeginUpdate(); gridWebSchedTimeSlots.Columns.Clear(); ODGridColumn col = new ODGridColumn("", 0); col.TextAlign = HorizontalAlignment.Center; gridWebSchedTimeSlots.Columns.Add(col); gridWebSchedTimeSlots.Rows.Clear(); ODGridRow row; DateTime dateTimeSlotLast = DateTime.MinValue; foreach (TimeSlot timeSlot in listTimeSlots) { //Make a new row for every unique day. if (dateTimeSlotLast.Date != timeSlot.DateTimeStart.Date) { dateTimeSlotLast = timeSlot.DateTimeStart; row = new ODGridRow(); row.ColorBackG = Color.LightBlue; row.Cells.Add(timeSlot.DateTimeStart.ToShortDateString()); gridWebSchedTimeSlots.Rows.Add(row); } row = new ODGridRow(); row.Cells.Add(timeSlot.DateTimeStart.ToShortTimeString() + " - " + timeSlot.DateTimeStop.ToShortTimeString()); gridWebSchedTimeSlots.Rows.Add(row); } gridWebSchedTimeSlots.EndUpdate(); }
private void FillGrid() { _listCodeSystems=CodeSystems.GetForCurrentVersion(_isMemberNation); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("Code System",200,false); gridMain.Columns.Add(col); col=new ODGridColumn("Current Version",100,false); gridMain.Columns.Add(col); col=new ODGridColumn("Available Version",100,false); gridMain.Columns.Add(col); col=new ODGridColumn("Download Status",100,false); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<_listCodeSystems.Count;i++){ row=new ODGridRow(); row.Cells.Add(_listCodeSystems[i].CodeSystemName); row.Cells.Add(_listCodeSystems[i].VersionCur); row.Cells.Add(_listCodeSystems[i].VersionAvail); //Initialize with the status which may have been set during pre-download in butDownload_Click. This cell will be updated on download progress updates. string status=""; _mapCodeSystemStatus.TryGetValue(_listCodeSystems[i].CodeSystemName,out status); row.Cells.Add(status); row.Tag=_listCodeSystems[i]; gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { ConnList=CentralConnections.Refresh(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("#",40); gridMain.Columns.Add(col); col=new ODGridColumn("Database",320); gridMain.Columns.Add(col); col=new ODGridColumn("Note",300); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<ConnList.Count;i++) { row=new ODGridRow(); row.Cells.Add(ConnList[i].ItemOrder.ToString()); if(ConnList[i].DatabaseName=="") {//uri row.Cells.Add(ConnList[i].ServiceURI); } else { row.Cells.Add(ConnList[i].ServerName+", "+ConnList[i].DatabaseName); } row.Cells.Add(ConnList[i].Note); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
///<summary>Fills patient information from message contents, not from PatCur.</summary> private void FillGridPatInfo() { gridPidInfo.BeginUpdate(); gridPidInfo.Columns.Clear(); ODGridColumn col; col=new ODGridColumn("Patient Name",335); gridPidInfo.Columns.Add(col); col=new ODGridColumn("Birthdate",150); gridPidInfo.Columns.Add(col); col=new ODGridColumn("Gender",150); gridPidInfo.Columns.Add(col); col=new ODGridColumn("SSN",150); gridPidInfo.Columns.Add(col); gridPidInfo.Rows.Clear(); List<string[]> listPats=GetPatInfoFromPidSegments(); ODGridRow row; for(int i=0;i<listPats.Count;i++) { if(listPats[i].Length<4) {//should never happen continue; } row=new ODGridRow(); row.Cells.Add(listPats[i][0]);//patName row.Cells.Add(listPats[i][1]);//Birthdate row.Cells.Add(listPats[i][2]);//Gender row.Cells.Add(listPats[i][3]);//SSN gridPidInfo.Rows.Add(row); } gridPidInfo.EndUpdate(); }
private void FillGrid() { PopupList=Popups.GetForFamily(PatCur); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col=new ODGridColumn(Lan.g("TablePopupsForFamily","Patient"),120); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TablePopupsForFamily","Level"),80); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TablePopupsForFamily","Disabled"),60,HorizontalAlignment.Center); gridMain.Columns.Add(col); col=new ODGridColumn(Lan.g("TablePopupsForFamily","Popup Message"),120); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for(int i=0;i<PopupList.Count;i++) { row=new ODGridRow(); row.Cells.Add(Patients.GetPat(PopupList[i].PatNum).GetNameLF()); row.Cells.Add(Lan.g("enumEnumPopupLevel",PopupList[i].PopupLevel.ToString())); row.Cells.Add(PopupList[i].IsDisabled?"X":""); row.Cells.Add(PopupList[i].Description); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }