---
title: "Update diagnosis"
method: PATCH
path: "/api/diagnoses/v2/{diagnosis_id}"
tags: ["diagnoses"]
---

# Update diagnosis

`PATCH /api/diagnoses/v2/{diagnosis_id}`

Updates the diagnosis record matching the provided `diagnosis_id`

## Path parameters

- `diagnosis_id` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string — Empty string not allowed.
  - `code_type` 'ABF' | 'ABJ' | 'ABK' | 'APR' | 'BF' | 'BJ' | 'BK' | 'PR' | 'DR' | 'LOI'
  - `code` string — Empty string not allowed. Should be of the appropriate format for the provided `code_type`. Must obey the ICD-10 format if an ICD-10 code_type is provided, specifically: - Letter - Digit - Digit or the letter `A` or `B` - (Optional) Period `.` - Up to 4 (or as few as 0) letters and digits
  - `present_on_admission_indicator` 'YES' | 'NO' | 'UNKNOWN' | 'NOT_APPLICABLE'

## Response `200`

Response with status 200

- TypeDiagnosesDiagnosis
  - `name` string — Empty string not allowed.
  - `code_type` 'ABF' | 'ABJ' | 'ABK' | 'APR' | 'BF' | 'BJ' | 'BK' | 'PR' | 'DR' | 'LOI', required
  - `code` string, required — Empty string not allowed. Should be of the appropriate format for the provided `code_type`. Must obey the ICD-10 format if an ICD-10 code_type is provided, specifically: - Letter - Digit - Digit or the letter `A` or `B` - (Optional) Period `.` - Up to 4 (or as few as 0) letters and digits
  - `present_on_admission_indicator` 'YES' | 'NO' | 'UNKNOWN' | 'NOT_APPLICABLE'
  - `encounter_id` string, uuid, required
  - `diagnosis_id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `404` — Error response with status 404
- `422` — Error response with status 422

---

[API](https://skmtc.net/joincandidhealth/apis/api-reference.md) · [All operations](https://skmtc.net/joincandidhealth/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/joincandidhealth/api-reference/revisions/7cc5974e4128/schema)
