Skip to content

Azure Health Data Services Fhir Service Questionnaire fhir resource not validation properly and returning non-informative response #3664

Closed
@iofh

Description

@iofh

Im not sure if this is the correct place to raise this issue. I am having issue with Azure Health Data Services's fhir service on STU3 version where sending a POST Questionnaire request results in a non-informative response.

sending a post request to https://*******.fhir.azurehealthcareapis.com/Questionnaire with the following json

{
    "resourceType": "Questionnaire",
    "id": "123",
    "title": "Test",
    "status": "active",
    "useContext": [
        {
            "code": {
                "code": "L1",
                "display": "this is the element causing the issue"
            }
        }
    ]
}

returns

{
    "resourceType": "OperationOutcome",
    "id": "09f075cbe8277369597ae3b07casdfas",
    "meta": {
        "lastUpdated": "2024-01-11T02:49:13.2509628+00:00"
    },
    "issue": [
        {
            "severity": "error",
            "code": "unknown",
            "diagnostics": ""
        }
    ]
}

The issue is with the useContext.code.display. Without the display, the POST request execute fine. But with the display, the POST request fails.

Request below POST fine.

{
    "resourceType": "Questionnaire",
    "id": "123",
    "title": "Test",
    "status": "active",
    "useContext": [
        {
            "code": {
                "code": "L1"
            }
        }
    ]
}

i've tried different fhir resource that uses useContext and all were fine with having useContext.code.display. It's only the fhir Questionnaire having the issue

FHIR Version
Stu3

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug bug bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions