validate icon indicating copy to clipboard operation
validate copied to clipboard

Define rule and metadata together

Open thomasggodfrey opened this issue 1 year ago • 1 comments

Hello, Thanks for all your work on the package - it's very interesting; I've not fully integrated it into my workflow but it's a great idea.

I was exploring the documentation, looking for ways to specify rules and metadata within the same function call. I was hoping to find something a bit like this:

rule1 <- create_rule(complete_patsname = !is.na(patsname),
                       name = "complete_patsname", 
                       label  = "Patient surname recorded"
                       description = "patsname Cannot be NULL",
                       reference   = "Upper-GI-Validations-v4.2-Final")`
 
If you ever have time to redevelop the package I think this style of tidy-verse like interface would be a nice addition. You could create rules like this in your R script, join them together and save to YAML/CSV using current functionality.  I think that would make for a nice workflow. Just a suggestion. Thanks

thomasggodfrey avatar Aug 30 '24 15:08 thomasggodfrey

Thanks for the suggestion.

markvanderloo avatar Oct 29 '24 14:10 markvanderloo