Stream: pascal
Topic: Alphanumeric ID for CodeSystem rejected by FHIR server
Marcelo Cabello (Feb 19 2020 at 18:00):
I receive this error message after try to PUT a CodeSystem resource with an alphanumeric ID (example "id": "acme-concepts").
This behavior doesn't appear when I do the same operation over a ValueSet.
Version of Grahame's FHIR server is 4.0.1
Should I made an extra configuration to accept my own IDs instead the FHIR Server generate it?
{
"resourceType" : "CodeSystem",
"id" : "acme-concepts"
"url" : "http://acme.cl/cs/acme-concepts",
...
...
}
{
"resourceType" : "OperationOutcome",
"text" : {
"status" : "generated",
"div" : "<div><p><b>Operation Outcome for :Validate resource </b></p><table class=\"grid\"><tr><td><b>Severity</b></td><td><b>Location</b></td><td><b>Details</b></td><td><b>Diagnostics</b></td><td><b>Type</b></td></tr><tr><td>error</td><td>CodeSystem</td><td>Within a code system definition, all the codes SHALL be unique (Unable to find class \"http://hl7.org/fhirpath/System.String\" for name \"id\" on property CodeSystem.id) concept.code.combine($this.descendants().concept.code).isDistinct()</td><td/><td>invariant</td></tr></table></div>"
},
"issue" : [
{
"severity" : "error",
"code" : "invariant",
"details" : {
"text" : "Within a code system definition, all the codes SHALL be unique (Unable to find class \"http://hl7.org/fhirpath/System.String\" for name \"id\" on property CodeSystem.id) concept.code.combine($this.descendants().concept.code).isDistinct()"
},
"location" : [
"CodeSystem"
],
"expression" : [
"CodeSystem // line 1 col 2)"
]
}
]
}
Grahame Grieve (Feb 19 2020 at 19:34):
that error has nothing to do with your id
Grahame Grieve (Feb 19 2020 at 19:37):
it's a bug in the validator. The validator is a long way behind and fixing it is on my todo list
Last updated: Apr 12 2022 at 19:14 UTC