Class MetadataExtractor

java.lang.Object
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 Details

  • Method Details

    • 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