我正在使用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"
}
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.
它应该可以工作,但是当时区信号为“加号”时。它抛出一个错误。“减号”是什么时候,例如:/Appointment?date=2020-01-23T08:29:00-03:00。有用。
我错过了什么吗?对我来说它看起来像一个错误。
谢谢!