Activity for HAPI

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY posted a comment on ticket #258

    Thanks Chris. I get it now. Your solution worked.

  • Christian Ohr Christian Ohr posted a comment on ticket #258

    PRT is not a segment that is defined for the events you mentioned. Therefore you have to use a more generic way: You can add it to the message using addNonStandardSegment("PRT") (optionally with index position) and then obtain it with PRT prt = (PRT)a01.get("PRT")

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY created ticket #258

    How to instantiate a PRT segment for a A01 transaction

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY created ticket #257

    Can't I create PR1_11_1 field in HAPI v281?

  • Daniel Brownell Daniel Brownell posted a comment on ticket #256

    Thanks that was it.

  • Christian Ohr Christian Ohr posted a comment on ticket #255

    This is because PR1 is not repeatable, but the surrounding PROCEDURE group is. String msg = "MSH|^~\\&|||||20200301114708.448+0530||ADT^A01^ADT_A01|106701|P|2.5\r" + "PR1|654^^^654~^^^654||^^^^^654^654|^^^^^^654\r" + "PR1|1\r" + "PR1|2\r" + "PR1|3"; Message a01 = new PipeParser().parse(msg); Terser terser = new Terser(a01); terser.set("/.PROCEDURE(1)/PR1-1-4", "234"); terser.set("/.PROCEDURE(2)/PR1-1-4", "345"); System.out.println(a01.toString().replace('\r', '\n')); and the output will be MSH|^~\&|||||20200301114708.448+0530||ADT^A01^ADT_A01|106701|P|2.5...

  • Christian Ohr Christian Ohr posted a comment on ticket #256

    There is likely no proper HL7 segment separator after the 2.5.1 at the end of the MSH segment, so it treats the beginning of the next line as part of the version number. Segment separator must be a "\r" (corresponding to file saved with Mac linebreaks).

  • Daniel Brownell Daniel Brownell created ticket #256

    EVN is not recognized (2.5.1)

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY created ticket #255

    PR1-REPETITION PROBLEM TERSER

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY created ticket #254

    Pr1 field repetition with Terser

  • Supratim Paul Supratim Paul posted a comment on ticket #253

    Thanks for your input. Can you specify the exact Hapi JAR name?

  • Christian Ohr Christian Ohr modified ticket #253

    Hapi Terser issue to retrieve HL7 segments

  • Christian Ohr Christian Ohr posted a comment on ticket #253

    Use version HAPI version 2.3 You need to specify the segments in the order they are defined in the message definition! - your example is completely mixed up Custom Z segments appended to a message can never be in a group - how should the parser know that ZAR and ZSH supposed to form a group? If a segment is not immediately repeating, the second occurence gets a custom segment name (with a number appended to the segment name) to make it unique. Here is a working example (should also work with 2.8.1):...

  • Supratim Paul Supratim Paul modified a comment on ticket #253

    Segment - MSH|^~\&|||||||ADT^A01|P|2.8.1||1 Event Type is A01 and HL7 version is 2.8.1.

  • Supratim Paul Supratim Paul posted a comment on ticket #253

    Segment - MSH|^~\&|||||||ADT^A01|P|2.8.1||1 Event Type is A08 and HL7 version is 2.8.1.

  • Christian Ohr Christian Ohr posted a comment on ticket #253

    Please provide details about the MSH segment. The Terser paths depend on the event type and the HL7 version.

  • Supratim Paul Supratim Paul created ticket #253

    Hapi Terser issue to retrieve HL7 segments

  • Nick Radov Nick Radov created ticket #252

    Broken link to mailing list archive

  • Christian Ohr Christian Ohr posted a comment on ticket #102

    For RDE_O25, you use the RDE_O11 structure class

  • Anjum Pervaiz Anjum Pervaiz posted a comment on ticket #102

    HAPI APi do not have class for RDE_O25, right? I am using structure version 2.6.

  • Anjum Pervaiz Anjum Pervaiz created ticket #102

    Generic parser for ORU & RDE

  • Anjum Pervaiz Anjum Pervaiz posted a comment on ticket #101

    Thanks Christian Ohr

  • Christian Ohr Christian Ohr modified a comment on ticket #101

    There is ca.uhn.hl7v2.preparser.PreParser.getFields(msg, fields...) that returns the value of fields without parsing it into a structure. Check out the javadocs

  • Christian Ohr Christian Ohr posted a comment on ticket #101

    There is PreParser.getFields(msg, fields...) that returns the value of fields without parsing it into a structure. Check out the javadocs

  • Anjum Pervaiz Anjum Pervaiz created ticket #101

    Get message type (ADT, ORU etc) before parsing the message.

  • Anjum Pervaiz Anjum Pervaiz created ticket #100

    SuperStructures for 2.8 version message

  • Hao Trinh Hao Trinh posted a comment on ticket #251

    Thanks Christian for the fix!

  • Christian Ohr Christian Ohr posted a comment on ticket #251

    True. The DefaultXMLParser did not set himself as parser being responsible for the message being created. Fixed with https://github.com/hapifhir/hapi-hl7v2/commit/f17db02ce8bcfd5df25a894039186719c432df3e

  • Hao Trinh Hao Trinh created ticket #251

    Cannot disable XMLParser validation in HAPI 2 v2.3

  • Rajan Bhatt Rajan Bhatt posted a comment on ticket #99

    Hi All, Sorry but i found solution of it. Posted below. ST extraSubcomponent = new ST(oru_r01); extraSubcomponent.setValue("Pending Delivery"); obxSegment.getObx5_ObservationValue(0).setData(extraSubcomponent);

  • Rajan Bhatt Rajan Bhatt created ticket #99

    HL7(2.5.1) OBX-5 Segment setter method not available or not working.

  • Rajan Bhatt Rajan Bhatt posted a comment on ticket #83

    Hi All, I am java developer. I have the same kind of issue while creating the HL7 OBR R01 message. When i try to create OBX segment , there is no setter method provided to set the value for OBX5. so how do i set that segment? as it is required segment. Please let me know if you have set those values and generated OBX segment. Regards, Rajan

  • Pablo A Pablo A posted a comment on ticket #214

    I have same problem.

  • Christian Ohr Christian Ohr posted a comment on ticket #250

    What event type do you build in which HL7 version? addNonstandardSegment is implemented for Groups in general. So, if you want to append a non-standard segment to a repeating group, you have to create/obtain the group repetition and append your segment here instead of at message level. E.g. if you try to construct a ADT_A01 in HL7v2.5: ADT_A01 a01 = new ADT_A01(); // ... // add a repetition ADT_A01_INSURANCE insurance = a01.insertINSURANCE(0); Segment in1 = insurance.getIN1(); // ... populate IN1...

  • Brajesh Kumar Mondal Brajesh Kumar Mondal posted a comment on ticket #250

    Please reply fast

  • Brajesh Kumar Mondal Brajesh Kumar Mondal created ticket #250

    Adding external segment with particular repeatation of Repeatable Segment

  • Christian Ohr Christian Ohr modified ticket #249

    Position of standard Segment for each transaction type and transacrtion genre

  • Christian Ohr Christian Ohr posted a comment on ticket #249

    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.

  • Brajesh Kumar Mondal Brajesh Kumar Mondal posted a comment on ticket #249

    please solve my query

  • Brajesh Kumar Mondal Brajesh Kumar Mondal created ticket #249

    Position of standard Segment for each transaction type and transacrtion genre

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY posted a comment on ticket #247

    Thank you Chris, your idea solved my problem. You may close this ticket.

  • Christian Ohr Christian Ohr posted a comment on ticket #247

    What do try to achieve with 20? First thing I urgently recommend you to get a copy of the HL7 specification (https://www.hl7.org/implement/standards/product_brief.cfm?product_id=185; yes, you need to have an account!). Sometimes, an online tool like http://hl7-definition.caristix.com:9010/ is also sufficient. From the ADT_A01 definition, you can see that PV1 is the 10th segment in the message. As the index is zero-based, message.addNonstandardSegment("ZPV", 10); will add a ZPV segment after PV1....

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY posted a comment on ticket #247

    Hi Chris, I tried with the method message.addNonstandardSegment(String name, int index) too, but how do I let the method know exactly after which standard segment I need to place the custom segment. As an example I tried setting message.addNonstandardSegment("ZPV",20); to the code, but it does not comes after PV1. What should I do to acheive this?

  • Christian Ohr Christian Ohr posted a comment on ticket #247

    Did you already try the method message.addNonstandardSegment(String name, int index)? With this method you should be able to insert your custom segment at the "index" position in the message or message group

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY created ticket #248

    Bypass HL7 data type exceptions on creating a new message

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY posted a comment on ticket #247

    any update on this?

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY posted a comment on ticket #247

    Hi Chris, The following is the sample code thru I created it and I need to send this created message over some destination: public static void main(String args[]) throws HL7Exception, IOException { ADT_A01 adt= new ADT_A01(); try { adt.initQuickstart("ADT", "A01", "P"); MSH mshSegment=adt.getMSH(); PID pid=adt.getPID(); PV1 pv1=adt.getPV1(); IN1 in1=adt.getINSURANCE().getIN1(); in1.getIn11_SetIDIN1().setValue("1"); pid.getPid1_SetIDPID().setValue("1"); pv1.getPv11_SetIDPV1().setValue("1"); HapiContext...

  • Christian Ohr Christian Ohr posted a comment on ticket #247

    Can you provide some sample code on how you create this message? Do you need to send it or receive/parse it?

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY posted a comment on ticket #247

    Can anyone please help me solve this problem ?

  • SWAROOP CHAKRABORTY SWAROOP CHAKRABORTY created ticket #247

    Insert a Z Segment after a standard segment

  • Han Han posted a comment on ticket #214

    I have same problem here, can someone take a look?

  • Jagdeep Singh Jagdeep Singh posted a comment on ticket #37

    Hi Mithun, I am struggeling with parsing the Z segments. The url you have posted above is not working right now. Could you please help me to parse Z segments using Hapi. Thanks

  • Rajat Rajat created ticket #246

    Class Cast Exception During Running BulkHl7V2ComparisonTest: testInvalidMessageTypeComparison

  • sarah sarah created ticket #245

    Incorrect error message in Terser class

  • Thibault Joseph Thibault Joseph posted a comment on ticket #103

    The rjuncu correction work, can you integrate it into a new version of HAPI ?

  • James Agnew James Agnew committed [r991]

    Get everything building for 2.3 release

  • Christian Ohr Christian Ohr committed [r990]

    #242: fix tests

  • Christian Ohr Christian Ohr committed [r989]

    #242: credits

  • Christian Ohr Christian Ohr committed [r988]

    #242: improve SegmentFinder performance

  • Christian Ohr Christian Ohr modified ticket #242

    Performance problem in SegmentFinder

  • Christian Ohr Christian Ohr modified ticket #233

    The set of supported HL7 versions is unordered

  • Christian Ohr Christian Ohr posted a comment on ticket #233

    The error message is not going to show up anymore: if a structure library is not...

  • Christian Ohr Christian Ohr committed [r987]

    fixed incorrect field numbers for handling MFE-...

  • Christian Ohr Christian Ohr posted a comment on ticket #97

    HAPI HL7 2.3 will include 2.7 and 2.8 support. About to be released within the next...

  • Christian Ohr Christian Ohr modified ticket #95

    Performance improvement SegmentFinder#matches

  • Christian Ohr Christian Ohr posted a comment on ticket #95

    Duplicate of https://sourceforge.net/p/hl7api/bugs/242/.

  • Christian Ohr Christian Ohr modified ticket #244

    PipeParser.getAckID does not work on Windows machines

  • Yevgeny Keyser Yevgeny Keyser posted a comment on ticket #244

    Noticed \r is part of the HL7 standard. You may closed this.

  • Yevgeny Keyser Yevgeny Keyser created ticket #244

    PipeParser.getAckID does not work on Windows machines

  • Jens Villadsen Jens Villadsen created ticket #243

    Bug in the HoH implementation/spec

  • Jyoti Sharma Jyoti Sharma created ticket #97

    Any plans of adding support for v2.8

  • Jens Villadsen Jens Villadsen created ticket #96

    Wrapping for camel

  • Niels Ull Harremoës Niels Ull Harremoës posted a comment on ticket #95

    Duplicate of bug 242 - I hadn't noticed that it was already entered as a bug. https://sourceforge.net/p/hl7api/bugs/242/...

  • Niels Ull Harremoës Niels Ull Harremoës posted a comment on ticket #95

    And I think this could go into the next minor release - it doesn't need to be milestone...

  • Niels Ull Harremoës Niels Ull Harremoës posted a comment on ticket #95

    oops - forgot to add the patch file before saving

  • Niels Ull Harremoës Niels Ull Harremoës created ticket #95

    Performance improvement SegmentFinder#matches

  • Jens Villadsen Jens Villadsen posted a comment on ticket #94

    As I see it - the easiest way to make out-of-the-box conformance is to author conformance...

  • Christian Ohr Christian Ohr created ticket #242

    Performance problem in SegmentFinder

  • Christian Ohr Christian Ohr posted a comment on ticket #221

    A while ago I committed ca.uhn.hl7v2.model.Unmodifiable, that allows to protect messages...

  • Christian Ohr Christian Ohr modified ticket #239

    wrong casing for deserializing

  • Christian Ohr Christian Ohr committed [r986]

    #239: fix parsing Role and Identifier elements

  • Christian Ohr Christian Ohr posted a comment on ticket #241

    Fixed. Thanks for spotting this.

  • Christian Ohr Christian Ohr modified ticket #241

    NumberFormatException when generating an ack message

  • Christian Ohr Christian Ohr committed [r985]

    #241: credits

  • Christian Ohr Christian Ohr committed [r984]

    #241: consistently use longs during message ID ...

  • Samantha Chan Samantha Chan created ticket #241

    NumberFormatException when generating an ack message

  • Christian Ohr Christian Ohr modified ticket #240

    ERR segment: Issue with sequence

  • Christian Ohr Christian Ohr posted a comment on ticket #240

    fixed in AbstractHL7Exception

  • Christian Ohr Christian Ohr committed [r983]

    #240: fix missing segment repetition location i...

  • Christian Wörns Christian Wörns created ticket #240

    ERR segment: Issue with sequence

  • Jens Villadsen Jens Villadsen created ticket #239

    wrong casing for deserializing

  • Christian Ohr Christian Ohr committed [r982]

    #238: fix serialization of TerserMessageRule

  • Christian Ohr Christian Ohr modified ticket #238

    TerserMessageRule is not serializable

  • Christian Ohr Christian Ohr modified ticket #234

    NPE when working with Conformance Profiles stored on the ClassPath

  • Christian Ohr Christian Ohr posted a comment on ticket #234

    Now returning null what causes the ProfileValidator to throw a ProfileException

  • Christian Ohr Christian Ohr committed [r981]

    #234:fix NPE with non-existing conformance prof...

  • Christian Ohr Christian Ohr modified ticket #234

    NPE when working with Conformance Profiles stored on the ClassPath

  • Christian Ohr Christian Ohr posted a comment on ticket #235

    The xref is of HAPI v2.1. The example was added with 2.2

1 >