Skip to content

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

Open
AAAlinaaa wants to merge 2 commits into7.xfrom
issue/SO-4280-definition_status_update
Open

SO-4280: Enforce new rules to determine definition status of a concept#663
AAAlinaaa wants to merge 2 commits into7.xfrom
issue/SO-4280-definition_status_update

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.

3 participants