Fast Data View For Modules



Fast Data View



With Noah 4.7 HIMSA has added the Fast Data Viewing feature, providing Professionals with immediate access to patient data without opening the Noah modules!

If the Noah module supports Fast Data Viewing, the Professional will see an eye icon next to the module action in the Sessions list.  Fast Data Viewing allows Noah modules to save a report with important patient information. The content and design of the report is set by the module developer.

Module API

The Action class has been extended with two new methods:

GetFastView and SetFastView, which are used to store a FastView object associated to the action. The fastview is used to store a fast-and-easily-shown preview of the data in the action. Business systems can then use the fastviews to make it possible for the user to browse through (many) actions and preview their contents without having to open the corresponding modules.

A valid fastview must have the following 2 fields:

  • The formatting of the data. Currently Pdf, Rtf and Jpg are supported.

  • A binary ’blob’ containing the actual data. This is exactly the same data as if the data were to be stored in a file on disc. Example: If Format is DataFormat.Jpg, and Data is saved in a file with extension '.jpg', the file can be opened with any program capable of showing Jpg images.

Only one action in an action group can have a fastview attached at a time. If there is already an action with a fastview in an action group, attaching a new fastview to an action in the same action group, will cause the previous fastview to be removed.

The fastview should always represent the latest data in the action (or action group). It is the Noah modules responsibility to keep the fastview up to date.

The Noah 4 Business Module automatically shows fastviews for journal actions, including actions that do not have a fastview attached. This is because the data format for journal action data, and Rtf fastviews are the same. If a fastview is attached to a journal action it will replace the automatically generated.


Maximum Size of Fast Data View Files

A Fast Data View file size must not be larger than 512KB. This is not enforced in the API in the first implementation, but will be so in future updates (In Noah 4.7 the technical max size is identical to the action max size which is 3 MB). For now it is simply documented here that a FDV will not be allowed bigger than 512KB. It is recommended that a module makes the the FDV files as small as possible as the size is of significance for the Business System and the waiting time that the user have when saving (uploading) data.

FastViewsEnabled Property

Please note the “FastViewsEnabled Property” that can be set by the user of the Business System. If this property is set to “False” then Noah Client will not send the FDV to the Business System, and it is simply deleted. The property is meant for users that do not wish to use FDV and thereby do not wish to populate the database. The module can skip creating the FDV if this property is set.


Structure

public class FastView

    {

        public FastViewDataFormat Format { get; set; }

        public byte[] Data { get; set; }

         public DateTime CreateDate { get; }

        public DateTime LastModifiedDate { get; }

        public int Version { get; }

    }

public enum DataFormat

        {

            Pdf = 1, // Pdf format

            Rtf = 2, // Rich Text Format

            Jpg = 3  // Jpg image

        };