Modifier and Type | Class and Description |
---|---|
protected static class |
ER7.ER7SegmentHandler |
protected static interface |
ER7.Handler |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static boolean |
parseMessage(Properties props,
List<DatumPath> msgMask,
String message)
Parses message and dumps contents to props, with keys in the
ZYX[a]-b[c]-d-e style.
|
protected static boolean |
parseMSHSegmentWhole(Properties props,
List<DatumPath> msgMask,
EncodingCharacters encodingChars,
String segment)
given segment, starting with "MSH", then encoding characters, etc...
|
protected static void |
parseSegmentGuts(ER7.Handler handler,
String guts,
List<Integer> nodeKey)
recursively tokenize "guts" (a segment, or part of one) into tokens,
according to separators (aka delimiters) which are different at each level
of recursion, and to a recursive depth which is discovered through "handler"
via handler.delim(int) and handler.specDepth() As tokens are found, they
are reported to handler via handler.putDatum(), which presumably stashes them
away somewhere.
|
protected static void |
parseSegmentWhole(Properties props,
Map<String,Integer> segmentId2nextRepIdx,
List<DatumPath> msgMask,
EncodingCharacters encodingChars,
String segment)
pass in a whole segment (of type other than MSH), including message type
at the start, according to encodingChars, and we'll parse the contents and
put them in props.
|
public static boolean parseMessage(Properties props, List<DatumPath> msgMask, String message)
protected static boolean parseMSHSegmentWhole(Properties props, List<DatumPath> msgMask, EncodingCharacters encodingChars, String segment)
protected static void parseSegmentWhole(Properties props, Map<String,Integer> segmentId2nextRepIdx, List<DatumPath> msgMask, EncodingCharacters encodingChars, String segment)
protected static void parseSegmentGuts(ER7.Handler handler, String guts, List<Integer> nodeKey)
Copyright © 2001–2017 University Health Network. All rights reserved.