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

Add validation rules #218

Open
lopierra opened this issue Dec 4, 2024 · 1 comment
Open

Add validation rules #218

lopierra opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
linkml Issues that require linkml development

Comments

@lopierra
Copy link
Member

lopierra commented Dec 4, 2024

  • ontology term prefix, e.g. MONDO/HP - ensures that label/term aren't switched, and consistency (e.g. SNOMED vs SNOMEDCT)
  • Unknown - preferred over NA
  • Age at X contigent on X not being unknown/blank (e.g. age only required for vital status Alive or Dead, not Unknown) [@madanucd to check whether this is possible in LinkML]
  • Participant ID has to be unique within a Study
@lopierra lopierra added the linkml Issues that require linkml development label Dec 4, 2024
@lopierra lopierra self-assigned this Dec 4, 2024
@lopierra
Copy link
Member Author

@madanucd here is an example of a validation rule that is needed:

In the Participant class, if outcomesVitalStatus == "Alive" or "Dead" then ageAtLastVitalStatus is required
If outcomesVitalStatus == "Unknown" or NA then ageAtLastVitalStatus is not required

Or

If participantLifeSpanStage (Study) == Pediatric then ageAtFirstPatientEngagement (Participant) must be <0 and <=6209 days

@lopierra lopierra added this to the Misc LinkML tasks milestone Jan 17, 2025
@tursynay tursynay removed this from the Misc LinkML tasks milestone Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linkml Issues that require linkml development
Projects
None yet
Development

No branches or pull requests

2 participants