-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field Type Validation of NBS Orders #341
Comments
-What validation is needed in the TI? |
This Story helps complete the requirement: |
This Story helps complete the requirement: |
This Story helps complete the requirement: |
This Story helps complete the requirement: |
Emily will provide a list of data types to test to confirm what RS is currently validating and inform us on future validation rules (date, coded data, strings etc.) |
Story
As a hospital, so that NBS orders with invalid information can be fixed more quickly, I need validation of orders that identifies if any data is of the wrong type (e.g. date, string, number).
Context
Are there key values that, if of the wrong format, would cause things to break when received by the LIMS? For example:
Pre-conditions
Acceptance Criteria
Tasks
Research
Engineering
Proposed Solution
Use a variation on the Rules Engine Design Pattern (read more here and here and here)
The rules would be defined in a json file with this shape:
Version 1
Version 2
Final version?
And we'd have these classes/interfaces for the implementation:
ValidationEngine
void addRule(ValidationRule rule)
void validate(FhirResource resource)
ValidationRule
void validate(FhirResource resource)
boolean appliesTo(FhirResource resource)
RuleLoader
List<ValidationRule> loadRules(String configPath)
ExpressionInterpreter
boolean evaluateBooleanExpression(FhirContext context, String expression)
Universal Validations
Findings for RS validation
Possible categories of validation
value is in ["Y", "N"]
=>Patient.name.where(use='usual').exists(given = 'Jim' or given = 'Peter')
Definition of Done
Research Questions
Decisions
Notes
The text was updated successfully, but these errors were encountered: