ca.uhn.hl7v2.protocol.impl
Class MetadataExtractor

java.lang.Object
  extended by ca.uhn.hl7v2.protocol.impl.MetadataExtractor

public class MetadataExtractor
extends Object

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
MetadataExtractor()
           
 
Method Summary
static Map<String,String> getFields(Message theMessage, List<String> theTerserPaths)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataExtractor

public MetadataExtractor()
Method Detail

getFields

public static Map<String,String> getFields(Message theMessage,
                                           List<String> theTerserPaths)
                                    throws HL7Exception
Parameters:
theMessage - a message from which to extract fields
theTerserPaths - a list of paths to desired fields, in the form required by Terser.
Returns:
a Map from Terser paths to field values
Throws:
HL7Exception


Copyright © 2001-2012 University Health Network. All Rights Reserved.