I am trying to use a patch operation to add an emergency contact to a patient and I am getting an error, can anyone tell me what is wrong
The patch operation is
{
"patches": [
{
"op": "add",
"path": "/contact/-",
"period": {
"start": "2026-07-22"
},
"relationship": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0131",
"code": "C",
"display": "Emergency Contact"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "01632960587"
}
]
}
]
}
and the error response is
{
"issue": \[
{
"code": "invariant",
"details": {
"coding": \[
{
"code": "ADDITIONAL_PROPERTIES",
"display": "Additional properties should not be included",
"system": "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode",
"version": "1"
}
\]
},
"diagnostics": "Invalid request with error - Additional properties are not allowed ('period', 'telecom', 'relationship' were unexpected)",
"severity": "error"
}
\],
"resourceType": "OperationOutcome"
}