Menu

#249 Position of standard Segment for each transaction type and transacrtion genre

2.2
closed-wont-fix
nobody
9
2018-06-05
2018-06-04
No

I have a requirement of finding the posituion of standard segments in the HL7 script for each transaction type(A01,A02).I currently use :
ADT_A03 a03 = new ADT_A03();
a03.initQuickstart("ADT", "A03", "P");
String msgStructureA03= a03.printStructure();
and then process it to get the position of each Standard segment.Since i have to do a hell lot of string manipulation to find the Segement position i need a way out.Do we have any library function that i can use to find the position of standard segmements or there is any other efficient mechaninsm.please reply as soon as possible.

Discussion

  • Brajesh Kumar Mondal

    please solve my query

     
  • Christian Ohr

    Christian Ohr - 2018-06-05

    Reading javadocs is recommended when looking for library functions.

    getNames() returns what you want.
    Note that messages may contain groups that again contain groups or segments, i.e. messages do not just contain a linear structure of segments.

     
  • Christian Ohr

    Christian Ohr - 2018-06-05
    • status: open --> closed-wont-fix
     

Log in to post a comment.