Hi, I'm able to create a video visit appointment:
{
"resourceType": "Appointment",
"id": "1970419",
"meta": {
"versionId": "1",
"lastUpdated": "2021-03-18T21:31:06.511+00:00"
},
"status": "booked",
"serviceType": [
{
"coding": [
{
"code": "2572307911",
"display": "Video Visit",
"userSelected": true
}
],
"text": "Video Visit"
}
],
"reasonCode": [
{
"text": "test video visit appointment"
}
],
"description": "test video visit",
"start": "2021-03-30T14:08:13+11:00",
"end": "2021-03-30T14:23:13+11:00",
"minutesDuration": 15,
"participant": [
{
"type": [
{
"coding": [
{
"code": "4572",
"display": "Patient",
"userSelected": true
}
],
"text": "Patient"
}
],
"actor": {
"reference": "Patient/1755716"
},
"status": "accepted"
},
{
"actor": {
"display": "myClinic"
},
"status": "accepted"
}
]
}
However I'm not able to patch in the meeting links as per the documentation:
[
{
"op": "add",
"path": "/contained/0/telecom/0/value",
},
{
"op": "add",
"path": "/contained/1/telecom/0/value",
},
{
"op": "add",
"path": "/contained/0/telecom/0/period/start",
"value": "2021-01-25T08:00:00.000Z"
},
{
"op": "add",
"path": "/contained/0/telecom/0/period/end",
"value": "2021-01-25T09:10:00.000Z"
}
]
I get a 400 error returned with following info:
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"
http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>parent of node to add does not exist</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "parent of node to add does not exist"
}
]
}
Any thoughts on what I'm missing?