Minimal Data Set: Difference between revisions

TOstryzniuk (talk | contribs)
Line 40: Line 40:


== {{CCMDB Data Integrity Checks}} ==
== {{CCMDB Data Integrity Checks}} ==
=== data that is never allowed ===
Trying to send or clicking the "Pre-send checker" button triggers data integrity checks for the minimal data set. If there are errors you get a message "You have patients with an incomplete or wrong minimal data set." Click OK and the query listing the actual errors will open. For any line in the query at least one column other than Patient_ID would have "Problem" and the current content of the column in it; that column is the one where you have an error. The heading of the columns should be self-explanatory.
*If the elements of the Minimal Data Set aren't complete, you can't send (even the complete ones).
 
*If discharge date is available, the discharge date must not be before the admit date.
=== some problems being checked ===
* discharge date must '''not be after ''today''''' date;
* missing location
* missing last name or first name
* chart is blank or has spaces or other non-numerical things in it
* admit date missing or after today
* if discharge date is present it can't be after today or before admit date
* Transfer_before_adm - transfer date is present and is before admit date
* Transfer_after_disch - transfer and discharge dates are present, and transfer is after discharge
* adm_after_disch - discharge date is present and admit date is after discharge date
 
==== implementation ====
==== implementation ====
Check is done as part of module "tmp_checker" calling query "minimal_data_set_incomplete".
Check is done as part of module "tmp_checker" calling query "minimal_data_set_incomplete".