Patch a coverage
patch
/Coverage/{ID}
Patches existing encounter-level or patient-level coverage.
Note:
- This implementation follows the JSON Patch specification.
- Only operations on the paths listed below are supported.
- For private coverages, both encounter-level and patient-level coverages may be patched, with the caveat of only supporting the
/period
and/dependent
operations on patient-level coverages. - For public coverages, both encounter-level and patient-level coverages may be patched, with the caveat of only supporting the
/period
and/class/0/value
operations.
Authorization Types
This operation supports the following authorization types:
Patch Operations
Path | Operation | Value Type | |
---|---|---|---|
/class/0/value
|
replace |
string |
|
|
|||
/class/1/value
|
replace |
string |
|
|
|||
/class/1/name
|
replace |
string |
|
|
|||
/dependent
|
replace |
string |
|
|
|||
/period
|
replace |
Period |
|
|
|||
/relationship
|
replace |
CodeableConcept |
|
|
|||
/subscriberId
|
replace |
string |
|
|
|||
/subscriber
|
replace |
Reference |
|
|
Request
Supported Media Types
- application/fhir+json
Path Parameters
-
ID(required): string
The logical resource ID associated with the resource.
Header Parameters
-
If-Match(required): string
The current version of the Coverage resource.
-
accept(required): string
The media type to be requested. See what the resource's operation produces for what is supported.
-
authorization(required): string
Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer Token.
The body of the patch operation
Nested Schema : items
Type:
Show Source
object
-
op(required):
string
Allowed Values:
[ "replace" ]
-
path(required):
string
-
value:
string
Response
Supported Media Types
- application/json-patch+json
Default Response
Example Request:
PATCH https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Coverage/623884-674012
Example Request Body:
[
{
'op': 'replace',
'path': '/class/0/value',
'value': '729825'
},
{
'op': 'replace',
'path': '/class/1/value',
'value': '456'
},
{
'op': 'replace',
'path': '/class/1/name',
'value': 'Miscellaneous Commercial Health Plan'
},
{
'op': 'replace',
'path': '/dependent',
'value': '9816564'
},
{
'op': 'replace',
'path': '/period',
'value': {
'start': '2014-09-05T14:30:12.000Z',
'end': '2015-09-05T14:30:12.000Z'
}
},
{
'op': 'replace',
'path': '/relationship',
'value': {
'coding': [
{
'system': 'http://terminology.hl7.org/CodeSystem/subscriber-relationship',
'code': 'parent'
}
]
}
},
{
'op': 'replace',
'path': '/subscriberId',
'value': '4655446'
},
{
'op': 'replace',
'path': '/subscriber',
'value': {
'reference': 'Patient/1626016'
}
}
]
Example Response:
Cache-Control: no-cache
Content-Length: 0
Content-Type: text/html
Date: Tue, 26 Mar 2019 15:42:29 GMT
Etag: W/"10"
Last-Modified: Tue, 26 Mar 2019 15:42:27 GMT
Vary: Origin
X-Request-Id: 11111111-1111-1111-1111-111111111111
opc-request-id: /11111111111111111111111111111111/11111111111111111111111111111111
The ETag
response header indicates the current If-Match
version to use on a subsequent update.
Headers
-
Etag: string
For Update or Patch versioning controls. Related to
If-Match
. When a resource performs an operation that creates or updates a record, anEtag
value is returned as a header. This same value should be included in request headers as anIf-Match
for any subsequent update to that record. -
If-Match: string
For Update or Patch versioning controls. Related to
Etag
. When a resource performs an operation that creates or updates a record, anEtag
value is returned as a header. This same value should be included in request headers as anIf-Match
for any subsequent update to that record. -
X-Request-Id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
X-Request-Id
, if present. -
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
opc-Request-Id
, if present.