GithubHelp home page GithubHelp logo

carthageking / hapi-hl7v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hapifhir/hapi-hl7v2

0.0 0.0 0.0 12.43 MB

Shell 0.12% Java 89.88% Lex 0.06% Batchfile 0.02% FreeMarker 0.01% HTML 9.79% CSS 0.02% JavaScript 0.11%

hapi-hl7v2's People

Contributors

jamesagnew avatar ohr avatar

Watchers

 avatar

hapi-hl7v2's Issues

Inconsistent validation errors between TestPanel and pure DefaultValidator

The following code below will only output 2 errors:

        HapiContext hapiCtx = new DefaultHapiContext();
        ProfileParser parser = new ProfileParser(false);
        RuntimeProfile profile = parser.parseClasspath("ORU_R01_v2.6_MessageProfile.xml");
        String inputMsg = "MSH|^~\\&|dd||||20011105133010||ORU^R01|fg|P|2.6\r"
            + "PID|||32||myname\r"
            + "ORC|CN\r"
            + "OBR||||ff";
        DefaultValidator validator = new DefaultValidator(hapiCtx);
        PipeParser pparser = hapiCtx.getPipeParser();
        //pparser.getParserConfiguration().setValidating(false);
        Message msg = pparser.parse(inputMsg);
        List<HL7Exception> errlst = Arrays.asList(validator.validate(msg, profile.getMessage()));
        for (int i = 0; i < errlst.size(); i++) {
            System.out.println(errlst.get(i));
        }

Output:

ca.uhn.hl7v2.conf.check.ProfileNotFollowedException: Message structure null doesn't match profile type of ORU_R01
ca.uhn.hl7v2.conf.check.ProfileNotFollowedException: Required element Message Structure is missing at MSH-9(0)

However, HAPI TestPanel will generate a lot more errors when the same profile is used.

testpanel_error

ORU_R01_v2.6_MessageProfile.zip

ACK message classes not being generated

Using the all-in-one Access database containing versions 2.1 to 2.8.1, the sourcegen module currently does not create the ACK message classes. This leads to compilation failures in the hapi-examples and hapi-test modules.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.