-
Notifications
You must be signed in to change notification settings - Fork 87
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
Default module id not working #588
Comments
The core module should only be used when no default module is found in the branch metadata, including ancestor branches until the Codesystem branch. |
Yes, i'm using the key defaultModuleId. Look what I'm doing:
The response: {
"conceptId": "706832731000309109",
"fsn": {},
"pt": {},
"active": true,
"released": false,
"moduleId": "900000000000207008",
"definitionStatus": "PRIMITIVE",
"descriptions": [
{
"active": true,
"moduleId": "733690761000309105",
"released": false,
"descriptionId": "104253741000309115",
"term": "test concept",
"conceptId": "706832731000309109",
"typeId": "900000000000013009",
"acceptabilityMap": {
"450828004": "PREFERRED"
},
"type": "SYNONYM",
"lang": "es",
"caseSignificance": "ENTIRE_TERM_CASE_SENSITIVE"
},
{
"active": true,
"moduleId": "733690761000309105",
"released": false,
"descriptionId": "819473001000309118",
"term": "test concept (finding)",
"conceptId": "706832731000309109",
"typeId": "900000000000003001",
"acceptabilityMap": {
"450828004": "PREFERRED"
},
"type": "FSN",
"lang": "es",
"caseSignificance": "ENTIRE_TERM_CASE_SENSITIVE"
}
],
"annotations": [],
"classAxioms": [],
"gciAxioms": [],
"relationships": [],
"alternateIdentifiers": [],
"validationResults": []
} As you can see, the descriptions has the proper module Id but the main concept not. The question is: Do I set the module id manually or not? if so, what is the pourpuse of defaultModuleId? |
It looks like you are right that the core module will be used in the JSON to Java object deserialisation. |
This is a bug. Setting the proper moduleId in the request body would be a good workaround. This is how the SNOMED International authoring UI makes requests. That is why the bug was not discovered sooner. |
Hi! I'm dealing with an issue trying yo create concepts. I created a new branch and set the default namespaces and module id. But if I create new concepts without moduleId, Snowstorm is still using de CORE_MODULE ID (900000000000207008).
Debugging the code i found out the problem (i think):
First, when concept is created, the CORE_MODULE is using as default:
https://github.com/IHTSDO/snowstorm/blob/master/src/main/java/org/snomed/snowstorm/core/data/domain/Concept.java#L97
So, the following conditions is always false:
https://github.com/IHTSDO/snowstorm/blob/master/src/main/java/org/snomed/snowstorm/core/data/services/ConceptUpdateHelper.java#L260
Descriptions and relationships is working fine.
The text was updated successfully, but these errors were encountered: