Google Cloud Healthcare API 在 FHIR 资源上按日期和时区搜索 returns 错误

Google Cloud Healthcare API search by date with time zone on FHIR resource returns error

我正在使用 Google Healthcare API 并尝试按日期和时区搜索 FHIR 资源,如下例所示:

https://healthcare.googleapis.com/v1/projects/project-id/locations/us-central1/datasets/dataset/fhirStores/fhirstore/fhir/Appointment?date=2020-01-23T08:29:00+03:00

我收到这个错误:

{
    "issue": [
        {
            "code": "value",
            "details": {
                "text": "invalid_query"
            },
            "diagnostics": "error parsing date \"2020-01-23T08:29:00 03:00\": invalid dateTime: 2020-01-23T08:29:00 03:00",
            "severity": "error"
        }
    ],
    "resourceType": "OperationOutcome"
}

根据文档 FHIR and Google:

Date searches on any type of date, time, or period. The date parameter format is yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm], and the same prefix modifiers used for number also apply here.

它应该可以工作,但是当时区信号为“plus +”时。它抛出一个错误。 什么时候是“减号 -” 例如:/Appointment?date=2020-01-23T08:29:00-03:00。它有效。

我错过了什么吗?这对我来说像是一个错误。

谢谢!

看起来像 URL 转义问题 - plus 是 URL 中的特殊字符之一。

试试 date=2020-01-23T08:29:00%2B03:00,我试了就成功了。