Page 1 of 1

International Tooth Numbering & Procedure Surface toggle

Posted: Tue Aug 12, 2008 10:31 pm
by V Suite
It appears that Procedure surface toggle treats the tooth number as a universal number even if international tooth numbering is selected. This may result in even more tricky problems with Palmer notation.
eg. [International numbers selected]. From Chart, click tooth FDI #11 (#8, UR1) and choose Composite. The Procedure info window comes up.
1. Click in sequence M, O/I, D, and it works as expected, selecting MID. Unselect all surfaces
2. Change the tooth number to #12. This should be FDI #12 (#7, UR2). Click M, O/I, D. This selects MOD. The tooth is wrongly interpreted as FDI #24 (#12, UL4). Unselect all surfaces.
3. Change the tooth number to 8. This is an invalid international number, so the field correctly turns yellow. Click M, O/I, D. This selects MID, since the tooth is interpreted as FDI #11 (#8, UR1).

Solution?
I'm looking at OpenDental.FormProcEdit,

Code: Select all

		private void textSurfaces_Validating(object sender, System.ComponentModel.CancelEventArgs e) {
			if(Tooth.IsValidEntry(textTooth.Text)){
				textSurfaces.Text=Tooth.SurfTidy(textSurfaces.Text,Tooth.FromInternat(textTooth.Text),false);
			}
			else{
				textSurfaces.Text=Tooth.SurfTidy(textSurfaces.Text,"",false);
			}
Should that be ToInternat(textTooth.Text) ? (2 places to fix)

Or is it in here? ToothGraphic.IsAnterior(ProcCur.ToothNum)? (2 places to fix)

Code: Select all

			if(butBF.BackColor==Color.White) {
				if(ToothGraphic.IsAnterior(textTooth.Text)) {
					textSurfaces.AppendText("F");
				}
				else {
					textSurfaces.AppendText("B");
				}

Re: International Tooth Numbering & Procedure Surface toggle

Posted: Wed Aug 13, 2008 6:53 am
by jordansparks
The bug has been posted. Thank you. I can't tell right now what the problem is. Just a matter of slogging through it with testing.

Re: International Tooth Numbering & Procedure Surface toggle

Posted: Sat Aug 16, 2008 8:32 am
by jordansparks
Fixed.