Patch a medication request
patch
/MedicationRequest/{ID}
Patch an existing medication request.
Note:
- This implementation follows the JSON PATCH specification.
- Only operations on the paths listed below are supported.
Authorization Types
This operation supports the following authorization types:
Patch OperationsPath | Operation | Value Type | |
---|---|---|---|
/status
|
replace |
code
|
|
|
Request
Supported Media Types
- application/fhir+json
Path Parameters
-
ID(required): string
The logical resource ID.
Header Parameters
-
Authorization(required): string
Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
-
If-Match(required): string
The current version of the MedicationRequest resource.
-
accept(required): string
The media type to be requested. See what the resource's operation produces for what is supported.
-
content-type(required): string
Specifies the content type of the request entity body.
The body of the patch operation.
Root Schema : MedicationRequestPatch
Type:
array
Minimum Number of Items:
1
A summary representation of the patch (PATCH) operation for a medication request.
Show Source
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.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/MedicationRequest/1621910
Example Request Body:
[
{
'op': 'replace',
'path': '/status',
'value': 'stopped'
}
]
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. -
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.