Activity for Christian Ohr

  • 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")

  • 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).

  • 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):...

  • 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.

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

    For RDE_O25, you use the RDE_O11 structure class

  • 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

  • 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

  • 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...

  • 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.

  • 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....

  • 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

  • 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?

  • 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

  • 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 modified ticket #241

    NumberFormatException when generating an ack message

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

    Fixed. Thanks for spotting this.

  • Christian Ohr Christian Ohr committed [r985]

    #241: credits

  • Christian Ohr Christian Ohr committed [r984]

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

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

    fixed in AbstractHL7Exception

  • Christian Ohr Christian Ohr modified ticket #240

    ERR segment: Issue with sequence

  • Christian Ohr Christian Ohr committed [r983]

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

  • 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

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

    I think this is a duplicate of #229

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

    Please send questions like this to the HAPI mailing list (http://hl7api.sourceforge.net/mail-lists.html)....

  • Christian Ohr Christian Ohr created ticket #233

    The set of supported HL7 versions is unordered

  • Christian Ohr Christian Ohr modified ticket #229

    CommonTS.getValueAsCalendar problems with positive GMT offsets and DST

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

    Verfied and comitted your fix except that I chose to construct the time zone string...

  • Christian Ohr Christian Ohr committed [r980]

    #229:fix daylight savings issue

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

    Oh cool. I will look into this. The .project files should probably not checked in...

  • Christian Ohr Christian Ohr committed [r979]

    removed unnecessary generics (ambiguities with ...

  • Christian Ohr Christian Ohr committed [r978]

    upgrade to Java 1.6

  • Christian Ohr Christian Ohr committed [r977]

    skip conformance checking for Varies fields

  • Christian Ohr Christian Ohr committed [r976]

    #229: fix positive timezones

  • Christian Ohr Christian Ohr modified ticket #229

    CommonTS.getValueAsCalendar problems with positive GMT offsets and DST

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

    There's the hapi-osgi-base library; please check if this is what you expect

  • Christian Ohr Christian Ohr committed [r975]

    add optional validation of primitives (turned o...

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

    Probably a DST issue, see #229. What is your default time zone?

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

    Great input. Obviously, fixing the Timezone string for positive offsets makes most...

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

    Great inut. Obviously, fixing the Timezone string for positive offsets makes most...

  • Christian Ohr Christian Ohr modified ticket #230

    HapiContext.close() throws NullPointerException

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

    duplicate of #223

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

    As a workaround, you can subclass ca.uhn.hl7v2.conf.check.DefaultValidator and overwrite...

  • Christian Ohr Christian Ohr modified ticket #226

    hapi-osgi-base: Unneeded statically linked slf4j-api throws error

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

    The exclusion still referred to log4j which is not directly used anymore. fixed to...

  • Christian Ohr Christian Ohr committed [r974]

    #226:exclude slf4j from bundle

  • Christian Ohr Christian Ohr committed [r973]

    avoid NPE when caching model classes

  • Christian Ohr Christian Ohr committed [r972]

    Added truncation character support and new proj...

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

    After almost 10 years... Fixing OBX-2/5 has been generalized and extended to MFE-5....

  • Christian Ohr Christian Ohr modified ticket #14

    Automatically fix data types in MFE-5 and RDF/RDT

  • Christian Ohr Christian Ohr committed [r971]

    removed message-private validationcontext

  • Christian Ohr Christian Ohr committed [r970]

    include new packages to be exported into bundle

  • Christian Ohr Christian Ohr committed [r969]

    fix test. Rendering an ampersand in a field sho...

  • Christian Ohr Christian Ohr committed [r968]

    Make adding/removing repetitions public. It's d...

  • Christian Ohr Christian Ohr committed [r967]

    document changes

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

    Hopefully it will work out for 2.3

  • Christian Ohr Christian Ohr modified ticket #57

    Add support for v2.7

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

    committed the change

  • Christian Ohr Christian Ohr modified ticket #207

    .encode causes havoc

  • Christian Ohr Christian Ohr committed [r966]

    #207: fix test. Changes in PipeParser was commi...

  • Christian Ohr Christian Ohr committed [r965]

    uncomment on etest. not sure what the expection is

  • Christian Ohr Christian Ohr modified ticket #211

    Seems there is a bug in the timezone conversion somewhere ...

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

    also see https://sourceforge.net/p/hl7api/bugs/221/#c6c9

  • Christian Ohr Christian Ohr committed [r964]

    rollback some code

  • Christian Ohr Christian Ohr committed [r963]

    #91: fix test

  • Christian Ohr Christian Ohr committed [r962]

    #92: allow to wrap messages to make them unmodi...

  • Christian Ohr Christian Ohr created ticket #92

    Allow to make parsed message unmodifiable

  • Christian Ohr Christian Ohr committed [r961]

    #91: use HapiContext message creation in a few ...

  • Christian Ohr Christian Ohr committed [r960]

    remove a few warnings, code cosmetics, migrate ...

  • Christian Ohr Christian Ohr modified ticket #91

    Create messages from HapiContext

  • Christian Ohr Christian Ohr committed [r959]

    #91: message creation from within an HapiContext

  • Christian Ohr Christian Ohr created ticket #91

    Create messages from HapiContext

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

    also see #65

  • Christian Ohr Christian Ohr modified ticket #224

    TSComponentOne breaks contract of AbstractPrimitive

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

    fix with rev. 957

  • Christian Ohr Christian Ohr committed [r958]

    #224: fix tscomponentone

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

    Some archaeology: This dates to back to 2011, introduced with rev. 335 and the comment...

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

    Cannot reproduce this. Anyway, the assertion will never be true because you're comparing...

1 >