Hi,
Often, we hardcode HL7 values in the code. For example:
if (adt_a08.getPID().getSex().equals("U")) {
...
It would be preferable to use constants. I've (semi-automatically)=20
generated a class gathering all these constants. (I haven't found=20
something similar in the distribution, but maybe I'm wrong.) My code=20
becomes now:
if (adt_a08.getPID().getSex().equals(TableConstants.SEX_UNKNOWN)) {
...
See the attached file.
Regards,
--=20
Fr=E9d=E9ric Dubru
Cliniques universitaires Saint-Luc
10, avenue Hippocrate
B-1200 Bruxelles
+32 2 764 36 43
http://www.saintluc.be
|