Visual Basic code for medical software