lh-ehr icon indicating copy to clipboard operation
lh-ehr copied to clipboard

Validation checks for Clinical Decision Rules in OpenEMR

Open MeghaMoncy opened this issue 2 years ago • 1 comments

There is a notable issue in OpenEMR concerning the creation of Clinical Decision Rules. Currently, there is a lack of validation for missing or incorrect data inputs, which significantly impacts the integrity and functionality of these rules. This absence of validation is leading to difficulties in creating effective and error-free plans later in the process.

Steps to Replicate the Issue

  • Log in to OpenEMR.
Screenshot 2023-11-21 at 1 06 58 PM
  • Navigate to the “Admin” section on the main toolbar, proceed to "Practice", and then select "Rules”.
Screenshot 2023-11-21 at 11 51 51 AM
  • On the Rules Configuration page, there are options to add new rules or edit existing ones.
Screenshot 2023-11-21 at 11 52 27 AM
  • Upon reviewing an incorrectly created rule, the issue becomes apparent. For example, in the "Reminder intervals" section, text input is allowed where numeric values should be required.
Screenshot 2023-11-21 at 11 50 57 AM Screenshot 2023-11-21 at 11 53 06 AM

Proposed Enhancements

  • Mandatory Field Validation: Implement a system where saving and proceeding is disabled if any required fields are missing. This will ensure that incomplete rules are not created.

  • Data Type Validation: Specific fields, such as 'Reminder intervals', should only accept inputs of the correct data type (e.g., numeric).

  • Limit on Required Inclusions: Introduce a limit on the number of required inclusions when entering a diagnosis. This will help in preventing potential future errors caused by excessive mandatory conditions.

These enhancements are vital for improving the functionality and reliability of the Clinical Decision Rules feature in OpenEMR. By enforcing stricter data validation, the system can prevent the creation of flawed rules, thus aiding healthcare providers in making more accurate and effective clinical decisions.

MeghaMoncy avatar Nov 21 '23 18:11 MeghaMoncy

i can fix it

riteshsinghh-coder avatar Dec 31 '23 06:12 riteshsinghh-coder