Package ca.uhn.hl7v2.protocol.impl
Class MetadataExtractor
java.lang.Object
ca.uhn.hl7v2.protocol.impl.MetadataExtractor
A utility for getting a list of fields from a
Message,
e.g. for inclusion in a Transportable.- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MetadataExtractor
public MetadataExtractor()
-
-
Method Details
-
getFields
public static Map<String,String> getFields(Message theMessage, List<String> theTerserPaths) throws HL7Exception - Parameters:
theMessage- a message from which to extract fieldstheTerserPaths- a list of paths to desired fields, in the form required byTerser.- Returns:
- a Map from Terser paths to field values
- Throws:
HL7Exception
-