Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

An Nhax file is a file format that is used to export/import data from Noah.

The A Nhax format file is a mix of binary data and XML formatted data the so called sections. As the Nhax format is complex and hard to implement HIMSA has developed a standalone library that can be used by business system developers that must support the Nhax format.

...

Extension to Old Nhax Format

In order to increase the quality of the data the The data in Nhax sections is defined using XSD files. All data must validate with respect to the XSD when reading/writing Nhax files.

Furthermore the The Misc section is now used and is defined in and XSD file.

...

Link to XML Sections in Nhax Files: XML Sections in Nhax Files

Error Handling

In general Nhaxlib NhaxLib functions returns a ValidateResult class:

...

The Nhax writer writes Noah data to an a Nhax file or a stream. The behavior of the NhaxWrites is define of the constructor called to make an instance of the writer. It may When writing data to a file the NhaxWriter will either produce a number of files of a given max size , or one file that contains all data or all data written to a stream.

...

If using the constructor that takes maxFileSize argument a new Nhax file is created when the file size exceeds the maxFileSize after a patient is written. When changing to start writing a new Nhax file the nhaxFileCreatedCallback is called whith with name of created Nhax file. The default size of maxFileSize is the advised size when generating Nhax file that is used when migrating to NoahES.

It is possible to call the writeUsers WriteUsers multiple times but when . When writing patient data . The users - WritePatient - the user referred from a patient object data must be knowm when WritePatient is calledknown.

IMPORTANT: Be aware that the Nhax Writer implements the idisposable interface. It is important that dispose is called in order to update the binary part of the Nhax file correctly.

...

Logging in NhaxLib can be enable enabled either by implementing the Nhax logger interface INhaxLogger or create and use the simple logger that NhaxLib implements. The logger must be added using NhaxLogger.AddLogger.

...