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(); }
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(); }
///<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; 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 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=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() { _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 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 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 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() { 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 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("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() { 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 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(){ 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() { 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 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 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 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; 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 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() { 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(); }
/// <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 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() { 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() { 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(){ //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 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() { 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(); }
public ODGridColumn Copy() { ODGridColumn retVal = (ODGridColumn)this.MemberwiseClone(); if (this.ListDisplayStrings != null) { retVal.ListDisplayStrings = this.ListDisplayStrings.Select(x => new string(x.ToArray())).ToList(); } return(retVal); }
private void FillGrid() { List <object> listSelectedTags = new List <object>(); //This list is used to maintain previous selections. foreach (int index in gridMain.SelectedIndices) { listSelectedTags.Add(gridMain.Rows[index].Tag); } gridMain.BeginUpdate(); gridMain.Rows.Clear(); //Clears the selections also. gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(); gridMain.Columns.Add(col); ODGridRow row; for (int i = 0; i < _listItems.Count; i++) { row = new ODGridRow(); row.Tag = _listItems[i]; row.Cells.Add(_listItems[i].ToString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); for (int i = 0; i < gridMain.Rows.Count; i++) { if (listSelectedTags.Contains(gridMain.Rows[i].Tag)) { gridMain.SetSelected(i, true); } } int heightTotal = 0; for (int i = 0; i < gridMain.Rows.Count; i++) { heightTotal += gridMain.Rows[i].RowHeight; } gridMain.Height = heightTotal + 3; //1 (for upper grid border) +1 (for lower grid border) +1 (for toolbar magic space at top) = 3 if (gridMain.Height > _maxDropDownHeight) { gridMain.Height = _maxDropDownHeight; } }
//public ODGridColumn Item(int index){ // return (ODGridColumn)List[index]; //} ///<summary></summary> public int Add(ODGridColumn value) { return(List.Add(value)); }
///<summary></summary> public void Insert(int index, ODGridColumn value) { List.Insert(index, value); }
///<summary></summary> public bool Contains(ODGridColumn value) { // If value is not of type ODGridColumn, this will return false. return(List.Contains(value)); }
///<summary></summary> public void Remove(ODGridColumn value) { List.Remove(value); }
///<summary></summary> public int IndexOf(ODGridColumn value) { return(List.IndexOf(value)); }