Skip to content

Define rule and metadata together #187

@thomasggodfrey

Description

@thomasggodfrey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions