Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong OperationOutcome format #363

Closed
yazver opened this issue Mar 5, 2021 · 1 comment
Closed

Wrong OperationOutcome format #363

yazver opened this issue Mar 5, 2021 · 1 comment
Labels

Comments

@yazver
Copy link

yazver commented Mar 5, 2021

OperationOutcome.issue.expression has string format instead of []string.

FHIR specification:

"expression": {
    "description": "A [simple subset of FHIRPath](fhirpath.html#simple) limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised.",
    "items": {
        "$ref": "#/definitions/string"
    },
    "type": "array"
}

AiDBOX info:

OperationOutcome.issue.expression | string [ ] | FHIRPath of element(s) related to issue

But the server returns:

{
    "resourceType": "OperationOutcome",
    "text": {
        "status": "generated",
        "div": "Invalid resource"
    },
    "issue": [
        {
            "severity": "fatal",
            "code": "invalid",
            "expression": "Patient.birthDate",
            "diagnostics": "expected format ^-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?$"
        }
    ]
}
@rublag
Copy link
Contributor

rublag commented Apr 15, 2021

Fixed in the :edge channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants