We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding a caret rule like a designation to a versioned code in a ValueSet currently causes an error.
For example this FSH ValueSet with a designation for a specific version of SNOMED:
ValueSet: Test Id: test Title: "Test" Description: "test" * http://snomed.info/sct#182869005 "Drug not taken - patient lost tablets (situation)" * ^designation[0].language = #de * ^designation[0].value = "Medikament nicht eingenommen wegen Verlust des Arzneimittels" * http://snomed.info/sct|http://snomed.info/sct/11000274103/version/20240515#182879007 "Medication decreased (finding)" * ^designation[0].language = #de * ^designation[0].value = "Dosisreduktion"
This causes the following errors:
error Could not find concept http://snomed.info/sct|http://snomed.info/sct/11000274103/version/20240515#182879007, skipping rule. File: ...\input\fsh\vs_test.fsh Line: 9 error Could not find concept http://snomed.info/sct|http://snomed.info/sct/11000274103/version/20240515#182879007, skipping rule. File: ...\input\fsh\vs_test.fsh Line: 10
and the output JSON does not include the designation:
{ "resourceType": "ValueSet", "status": "draft", "name": "Test", "id": "test", "title": "Test", "description": "test", "url": "http://example.org/ValueSet/test", "compose": { "include": [ { "system": "http://snomed.info/sct", "concept": [ { "code": "182869005", "display": "Drug not taken - patient lost tablets (situation)", "designation": [ { "language": "de", "value": "Medikament nicht eingenommen wegen Verlust des Arzneimittels" } ] } ] }, { "system": "http://snomed.info/sct", "version": "http://snomed.info/sct/11000274103/version/20240515", "concept": [ { "code": "182879007", "display": "Medication decreased (finding)" } ] } ] } }
Expected output would be no errors and the following JSON:
{ "resourceType": "ValueSet", "status": "draft", "name": "Test", "id": "test", "title": "Test", "description": "test", "url": "http://example.org/ValueSet/test", "compose": { "include": [ { "system": "http://snomed.info/sct", "concept": [ { "code": "182869005", "display": "Drug not taken - patient lost tablets (situation)", "designation": [ { "language": "de", "value": "Medikament nicht eingenommen wegen Verlust des Arzneimittels" } ] } ] }, { "system": "http://snomed.info/sct", "version": "http://snomed.info/sct/11000274103/version/20240515", "concept": [ { "code": "182879007", "display": "Medication decreased (finding)", "designation": [ { "language": "de", "value": "Dosisreduktion" } ] } ] } ] } }
The text was updated successfully, but these errors were encountered:
Thanks for finding and reporting this issue, @sebg-mio42. I've created a FSH Online link that also reproduces it: https://fshschool.org/FSHOnline/#/share/3WomCxu
And I see you've submitted a PR to fix it. That's great! I'll go take a look...
Sorry, something went wrong.
1e1297a
Successfully merging a pull request may close this issue.
Adding a caret rule like a designation to a versioned code in a ValueSet currently causes an error.
For example this FSH ValueSet with a designation for a specific version of SNOMED:
This causes the following errors:
and the output JSON does not include the designation:
Expected output would be no errors and the following JSON:
The text was updated successfully, but these errors were encountered: