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

SO-4280: Enforce new rules to determine definition status of a concept #663

Open
wants to merge 2 commits into
base: 7.x
Choose a base branch
from

Conversation

AAAlinaaa
Copy link
Contributor

  • If a concept only has equivalent class axioms make it defined
  • If a concept only has sub class axioms make it primitive
  • If a concept contains a mixture make it primitive as well

* If a concept only has equivalent class axioms make it defined
* If a concept only has sub class axioms make it primitive
* If a concept contains a mixture make it primitive as well
@AAAlinaaa AAAlinaaa self-assigned this Sep 17, 2020
Copy link
Member

@apeteri apeteri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please re-formulate the expression so that the definition status only becomes FULLY_DEFINED if - ignoring any GCI axioms - all remaining axioms are of type "equivalent classes". 0 axioms of such kind should still result in PRIMITIVE status, which doesn't happen with the code in its current form.

@@ -35,7 +35,7 @@ public static String getDefinitionStatusFromExpressions(Set<String> owlExpressio

return owlExpressions.stream()
.filter(expression -> !Strings.isNullOrEmpty(expression))
Copy link
Member

@apeteri apeteri Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filter GCI axioms here (in class SnomedOWLAxiomHelper), not in the create or update requests. They don't have a say in the concept's suggested definition status, but should be going through when creating or updating a SNOMED CT concept, just as before.

Or did they cause some other problem?

@cmark cmark added the pinned label Sep 22, 2020
@cmark
Copy link
Member

cmark commented Sep 22, 2020

Putting this to on hold. Not sure about the proper logic here, need more information to decide.

@cmark cmark changed the title SO-4280: Enforce new rules to determine definition status of a concept: SO-4280: Enforce new rules to determine definition status of a concept Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants