GithubHelp home page GithubHelp logo

v2-validation's Introduction

HL7 Validation Library

Dependencies

The project has two external dependencies :

xml-util

  • GitHub Repository : https://github.com/usnistgov/xml-util
  • Jar File Location : /dependencies/xml-util-2.1.0/xml-util-2.1.0.jar
  • POM File Location : /dependencies/xml-util-2.1.0/xml-util-2.1.0.pom
  • Maven :
    <groupId>gov.nist</groupId>
    <artifactId>xml-util</artifactId>
    <version>2.1.0</version>
    

validation-report

  • GitHub Repository : https://github.com/usnistgov/validation-report
  • Jar File Location : /dependencies/validation-report-1.1.0/validation-report-1.1.0.jar
  • POM File Location : /dependencies/validation-report-1.1.0/validation-report-1.1.0.pom
  • Maven :
    <groupId>com.github.hl7-tools</groupId>
    <artifactId>validation-report</artifactId>
    <version>1.1.0</version>
    

Installing JARs to local M2

  1. Open terminal
  2. Navigate to "dependencies" folder from root of the project (v2-validation)
  3. Install xml-utils, run command :
    mvn install:install-file 
    -Dfile=xml-util-2.1.0/xml-util-2.1.0.jar
    -DpomFile=xml-util-2.1.0/xml-util-2.1.0.pom
    
  4. Install validation-report, run command :
    mvn install:install-file 
    -Dfile=validation-report-1.1.0/validation-report-1.1.0.jar
    -DpomFile=validation-report-1.1.0/validation-report-1.1.0.pom
    

Build :

  1. First install Scala Build Tool (sbt) : http://www.scala-sbt.org/
  2. Make sure you have installed the external dependencies to your maven repository
  3. Run "sbt" command on project root directory
  4. To run tests you can use "test" command
  5. To build the tool you can use "compile" command

v2-validation's People

Contributors

fdevaulx-nist avatar hossamt avatar htcorp avatar maxence-lefort avatar salifou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

v2-validation's Issues

Unable to build

I'm unable to build using the provided dependency jars.
When I try to compile with sbt I get the following error:
[error] missing or invalid dependency detected while loading class file 'XOMDocumentBuilder.class'. [error] Could not access term nu in package <root>, [error] because it (or its dependencies) are missing. Check your build definition for [error] missing or conflicting dependencies. (Re-run with-Ylog-classpathto see the problematic classpath.) [error] A full rebuild may help if 'XOMDocumentBuilder.class' was compiled against an incompatible version of <root>. [error] missing or invalid dependency detected while loading class file 'XOMDocumentBuilder.class'. [error] Could not access type Document in value <root>.xom, [error] because it (or its dependencies) are missing. Check your build definition for [error] missing or conflicting dependencies. (Re-run with-Ylog-classpath to see the problematic classpath.) [error] A full rebuild may help if 'XOMDocumentBuilder.class' was compiled against an incompatible version of <root>.xom. [error] C:\Code\repos\xlr\v2-validation\profile\src\main\scala\hl7\v2\profile\XMLDeserializerHelper.scala:4: not found: object nu [error] import nu.xom.{ Element, Elements }

unresolved field error

I am getting an unresolved field error. See attachment for VXU profile. Using the following message:
MSH|^~&|Test EHR Application|X68||NIST Test Iz Reg|20120701082240-0500||VXU^V04^VXU_V04|NIST-IZ-001.00|P|2.5.1|||ER|AL|||||Z22^CDCPHINVS
PID|1||D26376273^^^NIST MPI^MR||Snow^Madelynn^Ainsley^^^^L|Lam^Morgan^^^^^M|20070706|F||2076-8^Native Hawaiian or Other Pacific Islander^CDCREC|32 Prescott Street Ave^^Warwick^MA^02452^USA^L||^PRN^PH^^^657^5558563|||||||||2186-5^non Hispanic or Latino^CDCREC
PD1|||||||||||02^Reminder/Recall - any method^HL70215|||||A|20120701|20120701
NK1|1|Lam^Morgan^^^^^L|MTH^Mother^HL70063|32 Prescott Street Ave^^Warwick^MA^02452^USA^L|^PRN^PH^^^657^5558563
ORC|RE||IZ-783274^NDA|||||||I-23432^Burden^Donna^A^^^^^NIST-AA-1^^^^PRN||57422^RADON^NICHOLAS^^^^^^NIST-AA-1^L^^^MD
RXA|0|1|20120814||33332-0010-01^Influenza, seasonal, injectable, preservative free^NDC|0.5|mL^MilliLiter [SI Volume Units]^UCUM||00^New immunization record^NIP001|7832-1^Lemon^Mike^A^^^^^NIST-AA-1^^^^PRN|^^^X68||||Z0860BB|20121104|CSL^CSL Behring^MVX|||CP|A
RXR|C28161^Intramuscular^NCIT|LD^Left Arm^HL70163
OBX|1|CE|64994-7^Vaccine funding program eligibility category^LN|1|V05^VFC eligible - Federally Qualified Health Center Patient (under-insured)^HL70064||||||F|||20120701|||VXC40^Eligibility captured at the immunization level^CDCPHINVS
OBX|2|CE|30956-7^vaccine type^LN|2|88^Influenza, unspecified formulation^CVX||||||F
OBX|3|TS|29768-9^Date vaccine information statement published^LN|2|20120702||||||F
OBX|4|TS|29769-7^Date vaccine information statement presented^LN|2|20120814||||||F
unresolvedfield

I will email the Profile files separate. I cant do it from here.

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.