From: Tripp, B. <Bry...@uh...> - 2003-06-11 20:29:41
|
String messageType = (String) PropertyUtils.getProperty(mshSegment, "messageType.messageType.value"); String triggerEvent = (String) PropertyUtils.getProperty(mshSegment, "messageType.triggerEvent.value"); String mrn = (String) PropertyUtils.getProperty(pidSegment, "patientIDInternalID[0].patientID.value"); Nice! I don't think this will handle version-independence though ... the path to existing components may change (get longer) when components are added. For example: "pid.mothersMaidenName.value" ... becomes: "pid.mothersMaidenName.familyName.value" ... when moving from v2.2 to v2.3. You're fine with the Terser because the path "PID-6-1" will work with both versions. Bryan This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |