Update Diagnostic Result
PATCHhttps://api.sandbox.daslab.health/v2/diagnostic-results/:id
Updates a Diagnostic Result.
Request
Path Parameters
id uuidrequired
The ID of the Diagnostic Result.
- application/json
Body
required
diagnosticReport objectrequired
observations object[]
Responses
- 202
- 400
- 401
- 403
Update accepted.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"id": "f6cd5701-95f4-4aa6-9435-54661d144d21"
}
{
"id": "f6cd5701-95f4-4aa6-9435-54661d144d21"
}
The request was unacceptable. Usually due to parameters being missing or being sent in an invalid format.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
Default value: Bad Request
messages string[]
statusCode integer
Default value: 400
{
"error": "Bad Request",
"messages": [
"string"
],
"statusCode": 400
}
{
"error": "Bad Request",
"messages": [
"diagnosticReport should not be null or undefined"
],
"statusCode": 400
}
JWT is either missing, invalid, or expired.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
Default value: Unauthorized
messages string[]
statusCode integer
Default value: 401
{
"error": "Unauthorized",
"messages": [
"string"
],
"statusCode": 401
}
{
"error": "Unauthorized",
"messages": [
"Invalid JWT"
],
"statusCode": 401
}
Account does not have permission to make this request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
Default value: Forbidden
messages string[]
statusCode integer
Default value: 403
{
"error": "Forbidden",
"messages": [
"string"
],
"statusCode": 403
}
{
"error": "Forbidden",
"messages": [
"Your account does not have permission to update this Diagnostic Result"
],
"statusCode": 403
}
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PATCH 'https://api.sandbox.daslab.health/v2/diagnostic-results/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"diagnosticReport": {
"resourceType": "string",
"identifier": [
{
"type": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"system": "string",
"value": "string"
}
],
"basedOn": [
{
"type": "string",
"reference": "string"
}
],
"presentedForm": [
{
"contentType": "string",
"language": "string",
"data": "string"
}
]
},
"observations": [
{
"resourceType": "string",
"identifier": [
{
"type": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"system": "string",
"value": "string"
}
],
"code": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"valueCodeableConcept": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"valueQuantity": {
"comparator": "string",
"value": 0,
"unit": "string",
"system": "string",
"code": "string"
},
"referenceRange": [
{
"low": {
"comparator": "string",
"value": 0,
"unit": "string",
"system": "string",
"code": "string"
},
"high": {
"comparator": "string",
"value": 0,
"unit": "string",
"system": "string",
"code": "string"
},
"type": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"normalValue": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"appliesTo": [
{
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
}
],
"age": {
"low": {
"comparator": "string",
"value": 0,
"unit": "string",
"system": "string",
"code": "string"
},
"high": {
"comparator": "string",
"value": 0,
"unit": "string",
"system": "string",
"code": "string"
}
},
"text": "string"
}
],
"note": [
{
"authorReference": {
"type": "string",
"reference": "string"
},
"authorString": "string",
"time": "string",
"text": "string"
}
],
"method": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
}
}
]
}'
ResponseClear