Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004

    Question Unanswered: Classes Per Table ( and vice versa ) Design

    I work on the Clinical Surgery Department Data Application.
    The patient gets through the Admission, Surgery, PostSurgery and Discharge stages during his staying in the department. The Doctors just insert their medical data in to the different tables. I have three main classes: User, Patient and Portfolio ( patients portfolio ) and all the business bases on these classes.
    The problem is with the Classes per Medical Data Tables. The Medical tables should exist cause it includes the medical data about the patient however what is not clear: Whether I should create Business and Entity classes per each medical data table ( and this is something like 50 tables ) or I should insert all the functions in the Portfolio class and then there will be a mess of functions in one class? What is the accepted way to perform it ?

  2. #2
    Join Date
    Feb 2004
    In front of the computer
    Provided Answers: 54
    I'd create a base portfolio class, then create sub-classes for each of the sub-types. Put the common functions for all portfolio entries in the parent class, then put the specific functions into the appropriate sub-class.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts