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

Subcodes #218

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Subcodes #218

wants to merge 15 commits into from

Conversation

RalphBln
Copy link
Contributor

@RalphBln RalphBln commented Jul 7, 2024

No description provided.

@RalphBln RalphBln requested a review from ChristophB July 7, 2024 21:37
Copy link
Member

@ChristophB ChristophB left a comment

Choose a reason for hiding this comment

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

Open tasks in addition to my comments:

  • upgrade top-api
  • add tests

@ChristophB
Copy link
Member

Please also update the enum test at src/test/java/care/smith/top/backend/EnumTest.java when adding new enums.

assertThat(CodeScope.values())
    .isEqualTo(
        new CodeScope[] {
            CodeScope.SELF,
            CodeScope.SUBTREE,
            CodeScope.LEAVES
        });

@ChristophB
Copy link
Member

Increased version to 0.8.0

Copy link
Member

@ChristophB ChristophB left a comment

Choose a reason for hiding this comment

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

Some open issues

  1. Code system URIs are derived from ontology.getConfig().getId(), which doesn't seem right. If I connect to https://www.ebi.ac.uk/ols4, SNOMEDCT has the ID "snomed".
    Should ontology.getConfig().getVersionIri() be used, if available?

  2. Child nodes don't have a short name for their code system

@RalphBln
Copy link
Contributor Author

RalphBln commented Feb 3, 2025

  1. Code system URIs are derived from ontology.getConfig().getId(), which doesn't seem right. If I connect to https://www.ebi.ac.uk/ols4, SNOMEDCT has the ID "snomed".

While the public EBI OLS instance uses abbreviated labels as ontology ids, our import mechanism makes sure that ontologies being loaded into our TOP OLS instances always have their ontology IRI set as their OLS id.

"id": "http://snomed.info/sct",
"versionIri": null,

Should ontology.getConfig().getVersionIri() be used, if available?

I agree as it might be useful in the context of code versioning. Added in dfa6dab.

@ChristophB
Copy link
Member

@RalphBln, what is the status on:

Child nodes don't have a short name for their code system

@RalphBln
Copy link
Contributor Author

@RalphBln, what is the status on:

Child nodes don't have a short name for their code system

Addressed in 6ea4864.

Copy link
Member

@ChristophB ChristophB left a comment

Choose a reason for hiding this comment

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

Is there anything missing or is this PR ready to be merged?

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

Successfully merging this pull request may close these issues.

2 participants