none
HL7 Schema Generation Tool for generating schema for HL7 ver 2.7 RRS feed

  • Question

  • Is there an HL7 Schema Generation Tool that is written for (that supports) HL7 version 2.7 access db? 

    The current HL7 Schema Generation Tool fails when generating schema for HL7 ver 2.7. I briefly went through the code and noticed that HL7 has quietly changed the table definition in version 2.7 (and 2.7.1). The table HL7DataElements has a column 'Length' which is a text field in version 2.7 but it was a number column in version 2.6.


    • Edited by Karu Monday, September 29, 2014 7:15 PM
    Monday, September 29, 2014 7:14 PM

All replies

  • Is there any error message occurred?

    Tuesday, September 30, 2014 7:10 AM
  • Yes, but the errors are misleading. This is because of the bad code or error handling. However the gist is that the code works fine upto HL7 ver 2.6. In HL7 ver 2.7 (and 2.7.1), HL7.org has changed the column names and datatypes on several fields. One example is that the table HL7DataElements in the access db has a column 'length' that was of datatype 'number' before ver 2.7 and now it is a text. Sample data for this column is 4..5 (min length 4, max length 5), 1..1 etc. Because of this error, the file 'segments_27.xsd' is not built. And then there were 6485 errors in the log. So I think the schemas built are not correct.

    Here are some error messages:

    [ERROR]: 9/29/2014 12:29:55 PM Message Reader Open Error: No value given for one or more required parameters.
    [ERROR]: 9/29/2014 12:29:55 PM Error when creating schema file GeneratedSchemas271\2.7.1\segments_271.xsd, detail error: Object reference not set to an instance of an object.
    [ERROR]: 9/29/2014 12:35:26 PM Segment SFT of MessageType ADT:A01 does not have any DataItem entries in the database


    • Edited by Karu Tuesday, September 30, 2014 2:30 PM
    Tuesday, September 30, 2014 2:27 PM