yaaaaale
10/18/2023, 7:15 PMError: Invalid additional property "system" (QuestionnaireResponse.item.answer.system); Invalid additional property "code" (QuestionnaireResponse.item.answer.code); Invalid additional property "display" (QuestionnaireResponse.item.answer.display)
And here is the request body:
{
"resourceType": "QuestionnaireResponse",
"item": [
{
"id": "id-2",
"linkId": "outcome",
"text": "Call outcome",
"answer": [
{
"system": "https://imaginepediatrics.org/fhir/CodeSystem/imaginepediatrics",
"code": "call-quality-issue",
"display": "Call quality issue"
}
],
"item": []
}
],
"questionnaire": "Questionnaire/23eb7487-02d6-4c03-9ecf-ac58188ee338",
"source": {
"reference": "Practitioner/a4cdd5ba-d1d1-4c23-9ef6-631f0b3a36ae",
"display": "Yale Spector"
},
"authored": "2023-10-18T19:11:12.138Z",
"status": "completed"
}
Two questions:
1. Is this a bug with Medplum's questionnaire components?
2. If we were to generate a questionnaire response payload without the use of Medplum's components, how should we format an answer for a ValueSet field? (e.g., how would we modify the request body above to be successful?)rahul1
10/18/2023, 10:02 PMvalueCoding to indicate the answer type):
answer": [
{
valueCoding: {
"system": "https://imaginepediatrics.org/fhir/CodeSystem/imaginepediatrics",
"code": "call-quality-issue",
"display": "Call quality issue"
}
}
],
"item": []
}
],rahul1
10/18/2023, 10:12 PMyaaaaale
10/19/2023, 4:11 PMrahul1
10/19/2023, 4:14 PMrahul1
10/19/2023, 9:41 PM