-
Notifications
You must be signed in to change notification settings - Fork 1
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
OCL not properly handling some mappings with unusual codes #1161
Comments
…concept_code correctly
@bmamlin The is fixed. Applied correct encoding. Will be deploying this soon on Staging. |
Thanks @snyaggarwal. I deleted (retired) the erroneous mapping on staging and tried to re-import the mapping, but it failed (task I tried importing this JSON as {"retired": false, "from_concept_url": "/orgs/CIEL/sources/CIEL/concepts/149786/", "type": "Mapping", "source": "CIEL", "to_source_url": "/orgs/WHO/sources/ICD-11-WHO/", "owner": "CIEL", "map_type": "NARROWER-THAN", "owner_type": "Organization", "external_id": "290537ABBBBBBBBBBBBBBBBBBBBBBBBBBBBB", "to_concept_code": "DA60.Y&XT5R/DA60.Y/ME24.3Z"} and it completed with a ""Parent, map_type, from_concept, to_source, to_concept_code must be unique." error as seen in the report: {
"total": 1,
"processed": 1,
"created": [],
"updated": [],
"invalid": [],
"exists": [],
"failed": [
{
"retired": false,
"from_concept_url": "/orgs/CIEL/sources/CIEL/concepts/149786/",
"type": "Mapping",
"source": "CIEL",
"to_source_url": "/orgs/WHO/sources/ICD-11-WHO/",
"owner": "CIEL",
"map_type": "NARROWER-THAN",
"owner_type": "Organization",
"external_id": "290537ABBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
"to_concept_code": "DA60.Y&XT5R/DA60.Y/ME24.3Z",
"errors": {
"__all__": [
"Parent, map_type, from_concept, to_source, to_concept_code must be unique."
]
}
}
],
"exception": [],
"deleted": [],
"others": [],
"unknown": [],
"permission_denied": [],
"elapsed_seconds": 41.726099729537964,
"start_time": "2021-12-17T15:19:59.806301",
"child_resource_time_distribution": {
"mapping": 1.007059097290039
}
} After retiring the erroneous mapping, I would expect to be able to import the mapping without an error. |
FYI – I was able to add the mapping manually through the term browser. This unblocks me, but I think there might still be a bug, since I would expect it to have worked via bulk import. |
@bmamlin This is now deployed on Staging |
This is done. Closing this. |
While working through #1159 (Importing CIEL v2021-12-15), one of the mappings in CIEL:
wasn't properly handled during the bulk import and it was imported as:
where the code DA60.Y&XT5R/DA60.Y/ME24.3Z became DA60.Y&XT5R. There are nearly 50 mappings where the code contains a forward slash, almost 20 containing ampersands, and even 1-2 that contain both ampersand and forward slash, so I'm not sure what's special about this one. Maybe multiple forward slashes?
The text was updated successfully, but these errors were encountered: