Skip to content
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

JSON Schema Creation for Conditional Validations in ObservationScreeningResponse #1705

Open
megin1989 opened this issue Nov 21, 2024 · 0 comments

Comments

@megin1989
Copy link

I encountered an issue while creating a JSON schema using Frictionless where I need to enforce specific conditional validations for certain LOINC question codes. Specifically:

LOINC question code: 44250-9

The allowed answer codes must be one of the following:
LA6568-5, LA6569-3, LA6570-1, LA6571-9.

LOINC question code: 44255-89

The allowed answer codes must be one of the following:
LA6568-5, LA6569-3, LA6570-1, LA6571-9.

Expected Behavior:
When defining the JSON schema, the conditional validation should be able to enforce that for each ObservationScreeningResponse, if the LOINC question code is 44250-9, the answer code must match the specified values. Similarly, for the question code 44255-8, the same rule applies.

Could support for such conditional validations be added to Frictionless, or is there an existing workaround to achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant