Program Rule validation

Hello everyone!!!
These days I’ve been working with programRules, and I need to validate the form according to the programRules. However, I want to know if there is a library for programRule validation? where I could pass the values of the variables and it would return the result of the programRule condition.

Thanks

3 Likes

Hi @EdsonNhancale

Welcome back to the community! :tada:

This is a really nice idea for a dhis2 custom app, maybe? Or a feature request!

Personally, I have used https://regex101.com/ to test the rules or keep testing on any play.dhis2.org instance. :slight_smile:

Hi community, @software_developer20, @dhis2-tracker

I have similar interests, if there is a way/library to run program rules?
It would be really great to build own tracker data entry apps.

Thanks
Regards,
Ulanbek

1 Like

@Ulanbek thanks for your comment!

Please see here Program rule engine - DHIS2 Documentation

Developers can use the API and make use of the program rules engine.

1 Like

Thank you @Gassim for the information!

1 Like

@enrico can probably provide a lot of info on the topic.

2 Likes