...
When the NhaxWriter instance has been created WriteUsers and WriteMiscData must be called in order to add users and add Misc data to the Nhax file. These functions must be called before the WritePatient is called. Each call of WritePatient will add a patient to the Nhax file.
If size of the current Nhax file 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 new Nhax file the nhaxFileCreatedCallback is created and NhaxFileCreatedCallback is called if set in the constructorcalled whith 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 multiple times but when writing patient data. The users referred from a patient object must be knowm when WritePatient is called.
...