///<summary></summary> public static long Insert(DisplayField field) { return(Crud.DisplayFieldCrud.Insert(field)); }
public static List <DisplayField> GetAllAvailableList(DisplayFieldCategory category) { //No need to check RemotingRole; no call to db. List <DisplayField> list = new List <DisplayField>(); if (category == DisplayFieldCategory.None) { list.Add(new DisplayField("Date", 67, category)); list.Add(new DisplayField("Time", 40, category)); list.Add(new DisplayField("Th", 27, category)); list.Add(new DisplayField("Surf", 40, category)); list.Add(new DisplayField("Dx", 28, category)); list.Add(new DisplayField("Description", 218, category)); list.Add(new DisplayField("Stat", 25, category)); list.Add(new DisplayField("Prov", 42, category)); list.Add(new DisplayField("Amount", 48, category)); list.Add(new DisplayField("ADA Code", 62, category)); list.Add(new DisplayField("User", 62, category)); list.Add(new DisplayField("Signed", 55, category)); list.Add(new DisplayField("Priority", 44, category)); list.Add(new DisplayField("Date TP", 67, category)); list.Add(new DisplayField("Date Entry", 67, category)); list.Add(new DisplayField("Prognosis", 60, category)); list.Add(new DisplayField("Length", 40, category)); if (Programs.UsingOrion) { list.Add(new DisplayField("DPC", 33, category)); list.Add(new DisplayField("Schedule By", 72, category)); list.Add(new DisplayField("Stop Clock", 67, category)); list.Add(new DisplayField("Stat 2", 36, category)); list.Add(new DisplayField("On Call", 45, category)); list.Add(new DisplayField("Effective Comm", 90, category)); list.Add(new DisplayField("End Time", 56, category)); //not visible unless orion list.Add(new DisplayField("Quadrant", 55, category)); //behavior is specific to orion list.Add(new DisplayField("DPCpost", 52, category)); } } else if (category == DisplayFieldCategory.PatientSelect) { list.Add(new DisplayField("LastName", 75, category)); list.Add(new DisplayField("First Name", 75, category)); list.Add(new DisplayField("MI", 25, category)); list.Add(new DisplayField("Pref Name", 60, category)); list.Add(new DisplayField("Age", 30, category)); list.Add(new DisplayField("SSN", 65, category)); list.Add(new DisplayField("Hm Phone", 90, category)); list.Add(new DisplayField("Wk Phone", 90, category)); list.Add(new DisplayField("PatNum", 80, category)); list.Add(new DisplayField("ChartNum", 60, category)); list.Add(new DisplayField("Address", 100, category)); list.Add(new DisplayField("Status", 65, category)); list.Add(new DisplayField("Bill Type", 90, category)); list.Add(new DisplayField("City", 80, category)); list.Add(new DisplayField("State", 55, category)); list.Add(new DisplayField("Pri Prov", 85, category)); list.Add(new DisplayField("Birthdate", 70, category)); list.Add(new DisplayField("Site", 90, category)); } else if (category == DisplayFieldCategory.PatientInformation) { list.Add(new DisplayField("Last", 0, category)); list.Add(new DisplayField("First", 0, category)); list.Add(new DisplayField("Middle", 0, category)); list.Add(new DisplayField("Preferred", 0, category)); list.Add(new DisplayField("Title", 0, category)); list.Add(new DisplayField("Salutation", 0, category)); list.Add(new DisplayField("Status", 0, category)); list.Add(new DisplayField("Gender", 0, category)); list.Add(new DisplayField("Position", 0, category)); list.Add(new DisplayField("Birthdate", 0, category)); list.Add(new DisplayField("Age", 0, category)); list.Add(new DisplayField("SS#", 0, category)); list.Add(new DisplayField("Address", 0, category)); list.Add(new DisplayField("Address2", 0, category)); list.Add(new DisplayField("City", 0, category)); list.Add(new DisplayField("State", 0, category)); list.Add(new DisplayField("Zip", 0, category)); list.Add(new DisplayField("Hm Phone", 0, category)); list.Add(new DisplayField("Wk Phone", 0, category)); list.Add(new DisplayField("Wireless Ph", 0, category)); list.Add(new DisplayField("E-mail", 0, category)); list.Add(new DisplayField("Contact Method", 0, category)); list.Add(new DisplayField("ABC0", 0, category)); list.Add(new DisplayField("Chart Num", 0, category)); list.Add(new DisplayField("Billing Type", 0, category)); list.Add(new DisplayField("Ward", 0, category)); list.Add(new DisplayField("AdmitDate", 0, category)); list.Add(new DisplayField("Primary Provider", 0, category)); list.Add(new DisplayField("Sec. Provider", 0, category)); list.Add(new DisplayField("Language", 0, category)); list.Add(new DisplayField("Clinic", 0, category)); list.Add(new DisplayField("ResponsParty", 0, category)); list.Add(new DisplayField("Referrals", 0, category)); list.Add(new DisplayField("Addr/Ph Note", 0, category)); list.Add(new DisplayField("PatFields", 0, category)); list.Add(new DisplayField("Guardians", 0, category)); list.Add(new DisplayField("Arrive Early", 0, category)); list.Add(new DisplayField("Super Head", 0, category)); } else if (category == DisplayFieldCategory.AccountModule) { list.Add(new DisplayField("Date", 65, category)); list.Add(new DisplayField("Patient", 100, category)); list.Add(new DisplayField("Prov", 40, category)); list.Add(new DisplayField("Clinic", 50, category)); list.Add(new DisplayField("Code", 46, category)); list.Add(new DisplayField("Tth", 26, category)); list.Add(new DisplayField("Description", 270, category)); list.Add(new DisplayField("Charges", 60, category)); list.Add(new DisplayField("Credits", 60, category)); list.Add(new DisplayField("Balance", 60, category)); } else if (category == DisplayFieldCategory.RecallList) { list.Add(new DisplayField("Due Date", 75, category)); list.Add(new DisplayField("Patient", 120, category)); list.Add(new DisplayField("Age", 30, category)); list.Add(new DisplayField("Type", 60, category)); list.Add(new DisplayField("Interval", 50, category)); list.Add(new DisplayField("#Remind", 55, category)); list.Add(new DisplayField("LastRemind", 75, category)); list.Add(new DisplayField("Contact", 120, category)); list.Add(new DisplayField("Status", 130, category)); list.Add(new DisplayField("Note", 215, category)); list.Add(new DisplayField("BillingType", 100, category)); } else if (category == DisplayFieldCategory.ChartPatientInformation) { list.Add(new DisplayField("Age", 0, category)); list.Add(new DisplayField("ABC0", 0, category)); list.Add(new DisplayField("Billing Type", 0, category)); list.Add(new DisplayField("Referred From", 0, category)); list.Add(new DisplayField("Date First Visit", 0, category)); list.Add(new DisplayField("Prov. (Pri, Sec)", 0, category)); list.Add(new DisplayField("Pri Ins", 0, category)); list.Add(new DisplayField("Sec Ins", 0, category)); if (PrefC.GetBool(PrefName.DistributorKey)) { list.Add(new DisplayField("Registration Keys", 0, category)); list.Add(new DisplayField("Ehr Provider Keys", 0, category)); } list.Add(new DisplayField("Premedicate", 0, category)); list.Add(new DisplayField("Problems", 0, category)); list.Add(new DisplayField("Med Urgent", 0, category)); list.Add(new DisplayField("Medical Summary", 0, category)); list.Add(new DisplayField("Service Notes", 0, category)); list.Add(new DisplayField("Medications", 0, category)); list.Add(new DisplayField("Allergies", 0, category)); list.Add(new DisplayField("PatFields", 0, category)); list.Add(new DisplayField("Birthdate", 0, category)); list.Add(new DisplayField("City", 0, category)); list.Add(new DisplayField("AskToArriveEarly", 0, category)); list.Add(new DisplayField("Super Head", 0, category)); } else if (category == DisplayFieldCategory.ProcedureGroupNote) { list.Add(new DisplayField("Date", 67, category)); list.Add(new DisplayField("Th", 27, category)); list.Add(new DisplayField("Surf", 40, category)); list.Add(new DisplayField("Description", 218, category)); list.Add(new DisplayField("Stat", 25, category)); list.Add(new DisplayField("Prov", 42, category)); list.Add(new DisplayField("Amount", 48, category)); list.Add(new DisplayField("ADA Code", 62, category)); if (Programs.UsingOrion) { list.Add(new DisplayField("Stat 2", 36, category)); list.Add(new DisplayField("On Call", 45, category)); list.Add(new DisplayField("Effective Comm", 90, category)); list.Add(new DisplayField("Repair", 45, category)); list.Add(new DisplayField("DPCpost", 52, category)); } } else if (category == DisplayFieldCategory.TreatmentPlanModule) { list.Add(new DisplayField("Done", 50, category)); list.Add(new DisplayField("Priority", 50, category)); list.Add(new DisplayField("Tth", 40, category)); list.Add(new DisplayField("Surf", 45, category)); list.Add(new DisplayField("Code", 50, category)); list.Add(new DisplayField("Description", 235, category)); list.Add(new DisplayField("Fee", 50, category)); list.Add(new DisplayField("Pri Ins", 50, category)); list.Add(new DisplayField("Sec Ins", 50, category)); list.Add(new DisplayField("Discount", 55, category)); list.Add(new DisplayField("Pat", 50, category)); list.Add(new DisplayField("Prognosis", 60, category)); list.Add(new DisplayField("Dx", 28, category)); } else if (category == DisplayFieldCategory.OrthoChart) { list = GetForCategory(DisplayFieldCategory.OrthoChart); //The display fields that the user has already saved List <OrthoChart> listDistinctOrthoCharts = OrthoCharts.GetByDistinctFieldNames(); for (int i = 0; i < listDistinctOrthoCharts.Count; i++) { bool addToList = true; for (int j = 0; j < list.Count; j++) { if (list[j].Description == listDistinctOrthoCharts[i].FieldName) { addToList = false; } } if (addToList) { DisplayField df = new DisplayField("", 20, DisplayFieldCategory.OrthoChart); df.Description = listDistinctOrthoCharts[i].FieldName; list.Add(df); } } } return(list); }
private void butLeft_Click(object sender,EventArgs e) { if(category==DisplayFieldCategory.OrthoChart) {//Ortho Chart if(listAvailable.SelectedItems.Count==0 && textCustomField.Text=="") { MsgBox.Show(this,"Please select an item in the list on the right or create a new field first."); return; } if(textCustomField.Text!="") {//Add new ortho chart field for(int i=0;i<ListShowing.Count;i++) { if(textCustomField.Text==ListShowing[i].Description) { MsgBox.Show(this,"That field is already displaying."); return; } } for(int i=0;i<AvailList.Count;i++) { if(textCustomField.Text==AvailList[i].Description) { ListShowing.Add(AvailList[i]); textCustomField.Text=""; changed=true; FillGrids(); return; } } DisplayField df=new DisplayField("",100,DisplayFieldCategory.OrthoChart); df.Description=textCustomField.Text; ListShowing.Add(df); textCustomField.Text=""; } else {//add existing ortho chart field(s) DisplayField field; for(int i=0;i<listAvailable.SelectedItems.Count;i++) { field=AvailList[listAvailable.SelectedIndices[i]]; field.ColumnWidth=100; ListShowing.Add(field); } } } else {//All other display field types if(listAvailable.SelectedItems.Count==0) { MsgBox.Show(this,"Please select an item in the list on the right first."); return; } DisplayField field; for(int i=0;i<listAvailable.SelectedItems.Count;i++) { field=(DisplayField)listAvailable.SelectedItems[i]; ListShowing.Add(field); } } changed=true; FillGrids(); }
///<summary>Modified Sync pattern for the OrthoChart. We cannot use the standard Sync pattern because we have to perform logging when updating ///or deleting.</summary> public static void Sync(Patient patCur, List <OrthoChart> listNew, List <DisplayField> listOrthDisplayFields, DisplayField displayFieldSignature) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(), patCur, listNew, listOrthDisplayFields, displayFieldSignature); return; } List <OrthoChart> listDB = GetAllForPatient(patCur.PatNum); //Inserts, updates, or deletes database rows to match supplied list. //Adding items to lists changes the order of operation. All inserts are completed first, then updates, then deletes. List <OrthoChart> listIns = new List <OrthoChart>(); List <OrthoChart> listUpdNew = new List <OrthoChart>(); List <OrthoChart> listUpdDB = new List <OrthoChart>(); List <OrthoChart> listDel = new List <OrthoChart>(); List <string> listColNames = new List <string>(); //Remove fields from both lists that are not currently set to display. for (int i = 0; i < listOrthDisplayFields.Count; i++) { listColNames.Add(listOrthDisplayFields[i].Description); } for (int i = listDB.Count - 1; i >= 0; i--) { if (!listColNames.Contains(listDB[i].FieldName)) { listDB.RemoveAt(i); } } listNew = listNew.FindAll(x => listColNames.Contains(x.FieldName)); listNew.Sort(OrthoCharts.SortDateField); listDB.Sort(OrthoCharts.SortDateField); int idxNew = 0; int idxDB = 0; OrthoChart fieldNew; OrthoChart fieldDB; //Because both lists have been sorted using the same criteria, we can now walk each list to determine which list contians the next element. The next element is determined by Primary Key. //If the New list contains the next item it will be inserted. If the DB contains the next item, it will be deleted. If both lists contain the next item, the item will be updated. while (idxNew < listNew.Count || idxDB < listDB.Count) { fieldNew = null; if (idxNew < listNew.Count) { fieldNew = listNew[idxNew]; } fieldDB = null; if (idxDB < listDB.Count) { fieldDB = listDB[idxDB]; } //begin compare if (fieldNew != null && fieldDB == null) //listNew has more items, listDB does not. { listIns.Add(fieldNew); idxNew++; continue; } else if (fieldNew == null && fieldDB != null) //listDB has more items, listNew does not. { listDel.Add(fieldDB); idxDB++; continue; } else if (fieldNew.DateService < fieldDB.DateService) //newPK less than dbPK, newItem is 'next' { listIns.Add(fieldNew); idxNew++; continue; } else if (fieldNew.DateService > fieldDB.DateService) //dbPK less than newPK, dbItem is 'next' { listDel.Add(fieldDB); idxDB++; continue; } else if (fieldNew.FieldName.CompareTo(fieldDB.FieldName) < 0) //New Fieldname Comes First { listIns.Add(fieldNew); idxNew++; continue; } else if (fieldNew.FieldName.CompareTo(fieldDB.FieldName) > 0) //DB Fieldname Comes First { listDel.Add(fieldDB); idxDB++; continue; } //Both lists contain the 'next' item, update required listUpdNew.Add(fieldNew); listUpdDB.Add(fieldDB); idxNew++; idxDB++; } //Commit changes to DB for (int i = 0; i < listIns.Count; i++) { if (listIns[i].FieldValue == "") //do not insert new blank values. This happens when fields from today are not used. { continue; } listIns[i].UserNum = Security.CurUser.UserNum; Insert(listIns[i]); } for (int i = 0; i < listUpdNew.Count; i++) { if (listUpdDB[i].FieldValue == listUpdNew[i].FieldValue) { continue; //values equal. do not update/create log entry. } if (listUpdNew[i].FieldValue != "") //Actually update rows that have a new value. { Update(listUpdNew[i], listUpdDB[i]); } else //instead of updating to a blank value, we delete the row from the DB. { listDel.Add(listUpdDB[i]); } #region security log entry string logText = Lans.g("OrthoCharts", "Ortho chart field edited. Field date") + ": " + listUpdNew[i].DateService.ToShortDateString() + " " + Lans.g("OrthoCharts", "Field name") + ": " + listUpdNew[i].FieldName + "\r\n"; //Do not log the Base64 information into the audit trail if this is a signature column, log some short descriptive text instead. if (displayFieldSignature != null && listUpdNew[i].FieldName == displayFieldSignature.Description) //This is the signature box { if (listUpdDB[i].FieldValue != "" && listUpdNew[i].FieldValue != "") { logText += Lans.g("OrthoCharts", "Signature modified.") + " "; } else if (listUpdDB[i].FieldValue != "" && listUpdNew[i].FieldValue == "") { logText += Lans.g("OrthoCharts", "Signature deleted.") + " "; } } else //Not a signature { logText += Lans.g("OrthoCharts", "Old value") + ": \"" + listUpdDB[i].FieldValue + "\" " + Lans.g("OrthoCharts", "New value") + ": \"" + listUpdNew[i].FieldValue + "\" "; } logText += listUpdDB[i].DateService.ToString("yyyyMMdd"); //This date stamp must be the last 8 characters for new OrthoEdit audit trail entries. SecurityLogs.MakeLogEntry(Permissions.OrthoChartEditFull, patCur.PatNum, logText); #endregion } for (int i = 0; i < listDel.Count; i++) //All logging should have been performed above in the "Update block" { Delete(listDel[i].OrthoChartNum); } }
public static List<DisplayField> GetAllAvailableList(DisplayFieldCategory category){ //No need to check RemotingRole; no call to db. List<DisplayField> list=new List<DisplayField>(); if(category==DisplayFieldCategory.None) {//Currently only used for ChartViews list.Add(new DisplayField("Date",67,category)); list.Add(new DisplayField("Time",40,category)); list.Add(new DisplayField("Th",27,category)); list.Add(new DisplayField("Surf",40,category)); list.Add(new DisplayField("Dx",28,category)); list.Add(new DisplayField("Description",218,category)); list.Add(new DisplayField("Stat",25,category)); list.Add(new DisplayField("Prov",42,category)); list.Add(new DisplayField("Amount",48,category)); list.Add(new DisplayField("ADA Code",62,category)); list.Add(new DisplayField("User",62,category)); list.Add(new DisplayField("Signed",55,category)); list.Add(new DisplayField("Priority",44,category)); list.Add(new DisplayField("Date TP",67,category)); list.Add(new DisplayField("Date Entry",67,category)); list.Add(new DisplayField("Prognosis",60,category)); list.Add(new DisplayField("Length",40,category)); list.Add(new DisplayField("Abbr",50,category)); list.Add(new DisplayField("Locked",50,category)); if(Programs.UsingOrion){ list.Add(new DisplayField("DPC",33,category)); list.Add(new DisplayField("Schedule By",72,category)); list.Add(new DisplayField("Stop Clock",67,category)); list.Add(new DisplayField("Stat 2",36,category)); list.Add(new DisplayField("On Call",45,category)); list.Add(new DisplayField("Effective Comm",90,category)); list.Add(new DisplayField("End Time",56,category));//not visible unless orion list.Add(new DisplayField("Quadrant",55,category));//behavior is specific to orion list.Add(new DisplayField("DPCpost",52,category)); } } else if(category==DisplayFieldCategory.PatientSelect){ list.Add(new DisplayField("LastName",75,category)); list.Add(new DisplayField("First Name",75,category)); list.Add(new DisplayField("MI",25,category)); list.Add(new DisplayField("Pref Name",60,category)); list.Add(new DisplayField("Age",30,category)); list.Add(new DisplayField("SSN",65,category)); list.Add(new DisplayField("Hm Phone",90,category)); list.Add(new DisplayField("Wk Phone",90,category)); if(PrefC.GetBool(PrefName.DistributorKey)) {//if for OD HQ list.Add(new DisplayField("OtherPhone",90,category)); } list.Add(new DisplayField("PatNum",80,category)); list.Add(new DisplayField("ChartNum",60,category)); list.Add(new DisplayField("Address",100,category)); list.Add(new DisplayField("Status",65,category)); list.Add(new DisplayField("Bill Type",90,category)); list.Add(new DisplayField("City",80,category)); list.Add(new DisplayField("State",55,category)); list.Add(new DisplayField("Pri Prov",85,category)); list.Add(new DisplayField("Birthdate",70,category)); list.Add(new DisplayField("Site",90,category)); list.Add(new DisplayField("Email",90,category)); } else if(category==DisplayFieldCategory.PatientInformation){ list.Add(new DisplayField("Last",0,category)); list.Add(new DisplayField("First",0,category)); list.Add(new DisplayField("Middle",0,category)); list.Add(new DisplayField("Preferred",0,category)); list.Add(new DisplayField("Title",0,category)); list.Add(new DisplayField("Salutation",0,category)); list.Add(new DisplayField("Status",0,category)); list.Add(new DisplayField("Gender",0,category)); list.Add(new DisplayField("Position",0,category)); list.Add(new DisplayField("Birthdate",0,category)); list.Add(new DisplayField("Age",0,category)); list.Add(new DisplayField("SS#",0,category)); list.Add(new DisplayField("Address",0,category)); list.Add(new DisplayField("Address2",0,category)); list.Add(new DisplayField("City",0,category)); list.Add(new DisplayField("State",0,category)); if(PrefC.GetBool(PrefName.DockPhonePanelShow)) { list.Add(new DisplayField("Country",0,category)); } list.Add(new DisplayField("Zip",0,category)); list.Add(new DisplayField("Hm Phone",0,category)); list.Add(new DisplayField("Wk Phone",0,category)); list.Add(new DisplayField("Wireless Ph",0,category)); list.Add(new DisplayField("E-mail",0,category)); list.Add(new DisplayField("Contact Method",0,category)); list.Add(new DisplayField("ABC0",0,category)); list.Add(new DisplayField("Chart Num",0,category)); list.Add(new DisplayField("Billing Type",0,category)); list.Add(new DisplayField("Ward",0,category)); list.Add(new DisplayField("AdmitDate",0,category)); list.Add(new DisplayField("Primary Provider",0,category)); list.Add(new DisplayField("Sec. Provider",0,category)); list.Add(new DisplayField("Payor Types",0,category)); list.Add(new DisplayField("Language",0,category)); list.Add(new DisplayField("Clinic",0,category)); list.Add(new DisplayField("ResponsParty",0,category)); list.Add(new DisplayField("Referrals",0,category)); list.Add(new DisplayField("Addr/Ph Note",0,category)); list.Add(new DisplayField("PatFields",0,category)); list.Add(new DisplayField("Guardians",0,category)); list.Add(new DisplayField("Arrive Early",0,category)); list.Add(new DisplayField("Super Head",0,category)); if(PrefC.GetBool(PrefName.DistributorKey)) { list.Add(new DisplayField("References",0,category)); } } else if(category==DisplayFieldCategory.AccountModule){ list.Add(new DisplayField("Date",65,category)); list.Add(new DisplayField("Patient",100,category)); list.Add(new DisplayField("Prov",40,category)); list.Add(new DisplayField("Clinic",50,category)); list.Add(new DisplayField("Code",46,category)); list.Add(new DisplayField("Tth",26,category)); list.Add(new DisplayField("Description",270,category)); list.Add(new DisplayField("Charges",60,category)); list.Add(new DisplayField("Credits",60,category)); list.Add(new DisplayField("Balance",60,category)); } else if(category==DisplayFieldCategory.RecallList) { list.Add(new DisplayField("Due Date",75,category)); list.Add(new DisplayField("Patient",120,category)); list.Add(new DisplayField("Age",30,category)); list.Add(new DisplayField("Type",60,category)); list.Add(new DisplayField("Interval",50,category)); list.Add(new DisplayField("#Remind",55,category)); list.Add(new DisplayField("LastRemind",75,category)); list.Add(new DisplayField("Contact",120,category)); list.Add(new DisplayField("Status",130,category)); list.Add(new DisplayField("Note",215,category)); list.Add(new DisplayField("BillingType",100,category)); } else if(category==DisplayFieldCategory.ChartPatientInformation) { list.Add(new DisplayField("Age",0,category)); list.Add(new DisplayField("ABC0",0,category)); list.Add(new DisplayField("Billing Type",0,category)); list.Add(new DisplayField("Referred From",0,category)); list.Add(new DisplayField("Date First Visit",0,category)); list.Add(new DisplayField("Prov. (Pri, Sec)",0,category)); list.Add(new DisplayField("Pri Ins",0,category)); list.Add(new DisplayField("Sec Ins",0,category)); list.Add(new DisplayField("Payor Types",0,category)); if(PrefC.GetBool(PrefName.DistributorKey)) { list.Add(new DisplayField("Registration Keys",0,category)); list.Add(new DisplayField("Ehr Provider Keys",0,category)); list.Add(new DisplayField("References",0,category)); } list.Add(new DisplayField("Premedicate",0,category)); list.Add(new DisplayField("Problems",0,category)); list.Add(new DisplayField("Med Urgent",0,category)); list.Add(new DisplayField("Medical Summary",0,category)); list.Add(new DisplayField("Service Notes",0,category)); list.Add(new DisplayField("Medications",0,category)); list.Add(new DisplayField("Allergies",0,category)); list.Add(new DisplayField("PatFields",0,category)); list.Add(new DisplayField("Birthdate",0,category)); list.Add(new DisplayField("City",0,category)); list.Add(new DisplayField("AskToArriveEarly",0,category)); list.Add(new DisplayField("Super Head",0,category)); list.Add(new DisplayField("Patient Portal",0,category)); } else if(category==DisplayFieldCategory.ProcedureGroupNote) { list.Add(new DisplayField("Date",67,category)); list.Add(new DisplayField("Th",27,category)); list.Add(new DisplayField("Surf",40,category)); list.Add(new DisplayField("Description",218,category)); list.Add(new DisplayField("Stat",25,category)); list.Add(new DisplayField("Prov",42,category)); list.Add(new DisplayField("Amount",48,category)); list.Add(new DisplayField("ADA Code",62,category)); if(Programs.UsingOrion){ list.Add(new DisplayField("Stat 2",36,category)); list.Add(new DisplayField("On Call",45,category)); list.Add(new DisplayField("Effective Comm",90,category)); list.Add(new DisplayField("Repair",45,category)); list.Add(new DisplayField("DPCpost",52,category)); } } else if(category==DisplayFieldCategory.TreatmentPlanModule) { list.Add(new DisplayField("Done",50,category)); list.Add(new DisplayField("Priority",50,category)); list.Add(new DisplayField("Tth",40,category)); list.Add(new DisplayField("Surf",45,category)); list.Add(new DisplayField("Code",50,category)); list.Add(new DisplayField("Description",235,category)); list.Add(new DisplayField("Fee",50,category)); list.Add(new DisplayField("Pri Ins",50,category)); list.Add(new DisplayField("Sec Ins",50,category)); list.Add(new DisplayField("Discount",55,category)); list.Add(new DisplayField("Pat",50,category)); list.Add(new DisplayField("Prognosis",60,category)); list.Add(new DisplayField("Dx",28,category)); } else if(category==DisplayFieldCategory.OrthoChart) { list=GetForCategory(DisplayFieldCategory.OrthoChart);//The display fields that the user has already saved List<OrthoChart> listDistinctOrthoCharts=OrthoCharts.GetByDistinctFieldNames(); for(int i=0;i<listDistinctOrthoCharts.Count;i++) { bool addToList=true; for(int j=0;j<list.Count;j++) { if(list[j].Description==listDistinctOrthoCharts[i].FieldName) { addToList=false; } } if(addToList) { DisplayField df=new DisplayField("",20,DisplayFieldCategory.OrthoChart); df.Description=listDistinctOrthoCharts[i].FieldName; list.Add(df); } } } return list; }
///<summary></summary> public static long Insert(DisplayField field) { return Crud.DisplayFieldCrud.Insert(field); }