63.1.1 Datafile Integrity: Main Window
Select the menu bar item to access this function:
And the following window will display:
Select the options you require by checking the appropriate boxes. After the options have completed, you will find what was found or changed in the datafile in a log document created in the STATICItems folder at:
... STATICItems/Information/Data_Integrity/
Note: For Client Server, this document is located in the STATICItems folder located on the Server.
Indexes allow STATIC to perform Queries more efficiently. They are also subject to errors. The errors tend to occur due to crashes of the computer while STATIC is running. Errors can also occur due to frequent deletion and addition of records. If the underlying database engine is changed, the method used for indexation may change also causing problems.
How do you know it is required to run?
If you are experiencing crashes that are preceded by an error message that informs you that a record could not be found or that the index is damaged. It is a good idea to run this option whenever you have ANY problems with the database.
If you have imported a lot of records into or deleted a lot of records from the database, the state of the indexes may not be optimal for fast Queries. Running this option optimizes the indexes for Queries speeding up all subsequent Query operations.
We have left this option ON as the default as this option should be run as the first item whenever you have to resort to any of the options in this area.
It destroys all indexes and then rebuilds each one from scratch. This may take some time depending on the size of your database.
Orphans are records which do not have any logical place in the database. For example, a Procedures record which does not have a parent ICU Record. These can occur if STATIC crashed while writing information to disk. In this case maybe not all of the logical records are actually written to disk resulting in orphans.
How do you know it is required to run?
If you are getting extra records that should not be there in reports or exports.
First it assumes that ALL Admission Records are legitimate records. It will attempt to create all the related records for the Admission Records if they do not have the required related records present e.g. A HospitalRecord and one Location record. This may result in Location records that do not have valid dates appearing in the Modify Admissions Form.
Next it will delete any solitary HospitalRecord records which do not have any Admission Records related to them.
Next it will delete any solitary Location records. It will then check the link of all Location records to their Hospital records and recreate the link if missing through the Admission Record link. Next all solitary records for all other tables are deleted.
We believe that this sequence will give you the best data recovery possible while deleting troublesome orphans.
Some fields such as internal record numbers must be unique. This ensures that it is so. Records may be damaged by a crash. In this case there are sometimes several records with a Unique field set to the number Zero. This option resets them to a valid number.
How do you know it is required to run:
If you are getting the message that STATIC cannot save a new record as there is a Unique field conflict.
STATIC creates its own Sequence numbers on the fly. The system that does this relies on knowing the last largest number issued. After a crash this is occasionally set to an incorrect value. This option forces the Sequence number system to reset itself to correct values. You would need to use this option very rarely as we have, for obvious reasons, attempted to make it almost bomb proof.
How do you know it is required to run:
If you are getting the message that STATIC cannot save a new record as there is a Unique field conflict.
This is more for your convenience. It checks all records for valid dates. It will log any record that contains dates before 1900. It does not change the datafile but allows you to follow up records that have troublesome dates by using the log file.
How do you know it is required to run:
If your reports start to show average ages of over 90years old or similar strange results with dates. (Really, we have had this as a patient was admitted 1/1/1099 making him very old and messing up the average.)
A gremlin is a character in a field of your datafile that should not be there. It is usually an invisible, non printing character. This makes it difficult to visually detect and remove by editing the field directly even if you knew the problem was there.
Often from strange keyboard combinations and data import from other sources. Data import includes Cut and Paste because a Gremlin may be lurking in the middle of the Cut text and be Pasted with the text into your database.
Other Gremlins are due to impossible numeric values such as infinity or negative infinity. We have never seen these in STATIC but just in case... this routine will check for and remove them if found.
Realistically, you can't completely insure against them due to Cut and Paste by the user.
This function removes them. This function can take a very long time as every character in every field for every record will be examined.
We have seen this function take over 30 minutes to complete.
This is only useful for Client Server.
Every Client in a Client Server environment maintains a copy of STATIC in its local cache. This copy is automatically updated every time the program at the Server is updated.
This makes it very easy to update STATIC.
Unless the underlying database software requires updating you do not need to go to your Clients to update any software. It is all done automatically for you.
We have noticed that over time or after a certain number of updates that the cache starts to misbehave. STATIC will automatically purge the cache on a regular basis anyway, but this gives you the option to do it when you want to.
The only drawback is that the cache needs to be reconstructed after purging. This is done as objects are required. So initially the apparent operation of STATIC will appear slower than it was prior to cache purging. as these objects will be accessed from the network instead of from the local hard disk.
There can be only one New ICU Admission per Hospital admission. All other ICU Admissions must be Readmissions. This looks for records that break this rule and resets them.
How do you know it is required to run:
This is the single most common mistake made during data entry. If your staff has not been trained in the data model that is used in STATIC they will not understand this concept especially in a multi ward ICU department. If untrained, they will tend to create New ICU Admission for every move from one ICU Ward to another and for every admission to ICU even if it is after surgery and the patient came straight back to ICU.
This function allows you to perform an exhaustive check on all mandatory fields in the database. The mandatory nature of a field is set in the File: Preferences: Mandatory Data see File: Preferences: Mandatory Data on page 83. It is the same function that is executed from the Preferences area after changing the mandatory nature of a field.
This command can take a long time to complete depending on the number of records you have within your database.
Once you select to process the options selected by clicking the OK button, STATIC will close all windows and in the case of Client Server Lock all workstations while the options are processed.
|