Stream: implementers
Topic: Issue uploading Questionnaire resource to FHIR server
Mike C. (Aug 15 2019 at 14:34):
Greetings FHIR Friends,
I am having a bit of trouble uploading a specific Questionnaire resource to my FHIR server (from localhost to the internet - the FHIR server is online)
When I try to upload my questionnaire, I am met with the '400 Bad Request' response which reads as follows:
issue": [
{
"severity": "error",
"code": "invalid",
"diagnostics": "Type checking the data: Choice element 'valueExpression' is suffixed with unexpected type 'Expression'"
}
]
I believe this is rooted from one (or actually maybe several) of my Extension elements, which are defined as follows:
{
"url" : "http://hl7.org/fhir/StructureDefinition/variable",
"valueExpression" : {
"name": "scoreExt",
"language": "text/fhirpath",
"expression": "'http://hl7.org/fhir/StructureDefinition/ordinalValue'"
}
}
Has anyone ever experienced this error before? I am not seeing a lot online about this specific error type, and I have been checking the Extensibility and Questionnaire documentation pages (http://hl7.org/fhir/extensibility-registry.html, https://www.hl7.org/fhir/questionnaire.html)
Grahame Grieve (Aug 15 2019 at 19:00):
is this a version issue? What version is the server expecting?
Mike C. (Aug 15 2019 at 19:36):
@Grahame Grieve Thanks for the reply. My server is running version 3.0.1 - I do not see anything in the Questionnaire resource itself referencing a version. Is there something I should look at in terms of 3.0.1 documentation?
Grahame Grieve (Aug 15 2019 at 19:38):
Expression is a R4 data type. Generally, the whole variable support in Questionnaire is R4 based
Mike C. (Aug 15 2019 at 19:44):
Expression is a R4 data type. Generally, the whole variable support in Questionnaire is R4 based
Ah, okay. Understood. Thank you very much for your replies!
Last updated: Apr 12 2022 at 19:14 UTC