| Yes, A VerifiedPatient would be a subclass of a PatientAlias (from a Java perspective); they would have many properties in common, methods, validations, etc. A VerifiedPatient would link (from a SQL perspective) to many PatientAliases, and under each PatientAlias there would then be links to information entered under that alias.
But from what I have read, there are bugs with inheritance, and it might be better to just duplicate the common properties and methods.....
On Jul 2, 2006, at 4:39 PM, Ken Anderson wrote: Mr G. Brown,
I think it would be necessary to understand your object model a little more before being able to recommend if/how to use inheritance. At the moment, I really don't see any entities you have that are good candidates for inheritance, unless I'm misunderstanding your problem. It seems to me like you need a Patient entity and a PatientAlias entity, related Patient <->> PatientAlias.
Yes, but from a Jave perspective the Patient is a subclass of PatientAlias, or should be... Can you please give us some more detail?
Well the above is the gist of it...
Consider Mary Smith, who has some tests, then next year is Mary Doe, and gets more tests, then the next year is Mary Smith again, who gets more tests, then the following year is Mary Rogers. Now find all the info for Mary Smith/Doe/Smith/Rogers. And yes, an ID number would work...in an ideal world where there weren't any typos or mistakes with that property.
Ken On Jul 2, 2006, at 1:01 PM, Mr. G Brown wrote: Hello,
I have a few questions about inheritance, thanks if anybody can help.
The parent class would be a Patient, or more accurately, a PatientAlias, because with typos, name changes (marriage or otherwise) information about the same human being could appear, does appear, under several PatientAliases.
The derived class would be a VerifiedPatient, which would be like a PatientAlias, but with some more info.
A VerifiedPatient does have a "to many" relationship to PatientAliases, and a PaitentAlias has a "to one" relationship with a VerifiedPatient.
Now it would be nice to extend a PatientAlias class to a VerifiedPatient class, BUT with the "to many" and "to one" relationships will that work? or will that cause problems? Does EOgenerator work with inheritance? And what flavor of inheritance would work best here?
Well thanks for your insights.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Help/Unsubscribe/Update your Subscription:
|