-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Describe the bug
When saving extracted resources, they are added to a List resource as references containing the resource type and resource ID. This List resource is then added to the QuestionnaireResponse contained section.
When a Group resource is extracted, its logical ID is not included in the reference that’s added to the List resource. This causes the syncing of the List resource to fail with the error:
SERVER ERROR - HTTP 400 | Code - PROCESSING | Diagnostics -
HAPI-0508: Invalid resource reference found at path[List.entry.item] - Does not contain resource ID - Group/List Resource
"resourceType": "List",
"id": "2fb6c1a3-8360-493b-838a-afe1b58595f7",
"meta": {
"lastUpdated": "2025-11-11T11:41:59.128+03:00",
"tag": []
},
"status": "current",
"mode": "working",
"title": "GeneratedResourcesList",
"date": "2025-06-14T11:55:39+03:00",
"entry": [
{
"deleted": false,
"date": "2025-06-14T11:55:39+03:00",
"item": {
"reference": "Group/"
}
},
{
"deleted": false,
"date": "2025-06-14T11:55:39+03:00",
"item": {
"reference": "Location/b8627f19-22f5-41ac-8236-703e35a87d3f"
}
}
]QuestionnaireResponse Resource
"resourceType": "QuestionnaireResponse",
"id": "01cb467a-8e70-463b-adbb-fc296b544902",
"meta": {
"versionId": "1",
"lastUpdated": "2025-11-11T08:41:57.030+00:00",
"source": "#c621389bc0505418",
"tag": [ ]
},
"contained": [
{
"resourceType": "List",
"id": "b8853ebc-41ee-4641-9d8b-f3e074dc94f7",
"status": "current",
"mode": "working",
"title": "GeneratedResourcesList",
"date": "2025-09-15T15:23:10+03:00",
"entry": [
{
"deleted": false,
"date": "2025-09-15T15:23:10+03:00",
"item": {
"reference": "Group/"
}
},
{
"deleted": false,
"date": "2025-09-15T15:23:10+03:00",
"item": {
"reference": "Location/96894192-28ae-424c-b8f8-ee0e8b2d4c1a"
}
}
]To Reproduce
Steps to reproduce the behaviour:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behaviour
The Group's logical ID should be included in the List resource.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: [e.g. Samsung Galaxy A2 emulator]
- Android version: [e.g. Settings -> About phone -> Android version]
- Build number: [e.g. Settings -> About phone -> Build number]
- Version [e.g. 24]
Additional context
Add any other context about the problem here.