Skip to main content

Update Diagnostic Request

PATCH 

https://api.sandbox.daslab.health/v1/diagnostic-requests/:id

This endpoint allows you to update a Diagnostic Request.

A Diagnostic Request is a custom FHIR Bundle defined by DasLab in order to represent the package that contains the following FHIR resources:

  • Patient
  • Service Request
  • Specimen

Please see here for more information regarding Bundles and their usage in the FHIR standard.

Request

Path Parameters

    id uuidrequired

    The ID of the Diagnostic Request.

Body

required
    patient objectrequired
    birthDate stringrequired

    Possible values: Value must match regular expression /^\d{4}-\d{2}-\d{2}$/u

    gender stringrequired
    identifier object[]required
  • Array [
  • type objectrequired
    coding object[]required
  • Array [
  • code stringrequired
    display stringrequired
    system stringrequired
  • ]
  • text string
    system string
    value stringrequired
  • ]
  • name object[]required
  • Array [
  • family stringrequired
    given string[]required
  • ]
  • resourceType stringrequired
    telecom object[]required
  • Array [
  • system stringrequired
    use stringrequired
    value stringrequired
  • ]
  • specimen objectrequired
    id string
    resourceType stringrequired
    collection objectrequired
    collectedDateTime stringrequired
    container object[]required
  • Array [
  • identifier object[]required
  • Array [
  • type objectrequired
    coding object[]required
  • Array [
  • code stringrequired
    display stringrequired
    system stringrequired
  • ]
  • text string
    system string
    value stringrequired
  • ]
  • ]
  • serviceRequest objectrequired
    identifier object[]required
  • Array [
  • type objectrequired
    coding object[]required
  • Array [
  • code stringrequired
    display stringrequired
    system stringrequired
  • ]
  • text string
    system string
    value stringrequired
  • ]
  • id string

Responses

Updated successfully.

Schema
    any

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
curl -L -X PATCH 'https://api.sandbox.daslab.health/v1/diagnostic-requests/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"patient": {
"birthDate": "string",
"gender": "string",
"identifier": [
{
"type": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"system": "string",
"value": "string"
}
],
"name": [
{
"family": "string",
"given": [
"string"
]
}
],
"resourceType": "string",
"telecom": [
{
"system": "string",
"use": "string",
"value": "string"
}
]
},
"specimen": {
"id": "string",
"resourceType": "string",
"collection": {
"collectedDateTime": "string"
},
"container": [
{
"identifier": [
{
"type": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"system": "string",
"value": "string"
}
]
}
]
},
"serviceRequest": {
"identifier": [
{
"type": {
"coding": [
{
"code": "string",
"display": "string",
"system": "string"
}
],
"text": "string"
},
"system": "string",
"value": "string"
}
],
"id": "string"
}
}'
Request Collapse all
Base URL
https://api.sandbox.daslab.health
Auth
Parameters
— pathrequired
Body required
{
  "patient": {
    "birthDate": "string",
    "gender": "string",
    "identifier": [
      {
        "type": {
          "coding": [
            {
              "code": "string",
              "display": "string",
              "system": "string"
            }
          ],
          "text": "string"
        },
        "system": "string",
        "value": "string"
      }
    ],
    "name": [
      {
        "family": "string",
        "given": [
          "string"
        ]
      }
    ],
    "resourceType": "string",
    "telecom": [
      {
        "system": "string",
        "use": "string",
        "value": "string"
      }
    ]
  },
  "specimen": {
    "id": "string",
    "resourceType": "string",
    "collection": {
      "collectedDateTime": "string"
    },
    "container": [
      {
        "identifier": [
          {
            "type": {
              "coding": [
                {
                  "code": "string",
                  "display": "string",
                  "system": "string"
                }
              ],
              "text": "string"
            },
            "system": "string",
            "value": "string"
          }
        ]
      }
    ]
  },
  "serviceRequest": {
    "identifier": [
      {
        "type": {
          "coding": [
            {
              "code": "string",
              "display": "string",
              "system": "string"
            }
          ],
          "text": "string"
        },
        "system": "string",
        "value": "string"
      }
    ],
    "id": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!