---
updatedAt: 2026-08-28T19:08:38.000Z
agentTools:
  projectIndex: https://portal.api.modmed.com/llms.txt
---

# Procedure

Base profile: <https://www.hl7.org/fhir/procedure.html>

`Procedure` is used specifically for the **Past Surgical History** and **Ocular Surgical History** sections of the Clipboard — for other clipboard sections, including Past Medical History and Ocular History (non-surgical), use [Condition](https://portal.api.modmed.com/docs/condition-1) instead.

**Supported operations: Create, Read, and Search only — there is no Update.**

The following attributes are supported:

| Field Name | Notes                                                                                                                                                                                                            |
| :--------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | **Required.**`value` must be `PSX` (Past Surgical History) or `OSX` (Ocular Surgical History) — no other values are accepted. This is the only field that determines which section the Procedure is filed under. |
| subject    | Required. Reference to Patient.                                                                                                                                                                                  |
| code       | Required. 1–2 SNOMED CT codings.                                                                                                                                                                                 |
| status     | Required, and must be `completed` — no other value is accepted.                                                                                                                                                  |
| category   | Always set to `DIAGNOSIS`/"Diagnosis" on the returned resource, regardless of what's submitted.                                                                                                                  |

`onsetDateTime`, `recordedDate`, and `note` are not supported — they aren't returned on read even if submitted.

***

### Procedure CREATE

```json
{
  "resourceType": "Procedure",
  "status": "completed",
  "identifier": [
    { "value": "PSX" }
  ],
  "code": {
    "coding": [
      { "system": "SNOMED CT", "code": "442338001", "display": "Biopsy of prostate" }
    ]
  },
  "subject": {
    "reference": "Patient/EXAMPLE-ID",
    "display": "Test Sample"
  }
}
```

**Omitting&#x20;**`identifier`**, or sending a value other than&#x20;**`PSX`**/**`OSX`**, fails the request outright** — unlike Condition, there is no default-section fallback for Procedure.

***

### Procedure READ

The resource id is in the form `PSX|<integer>` or `OSX|<integer>` — a plain numeric id, or the wrong prefix for that record, returns an error.

***

### Procedure SEARCH

Both `patient` and `identifier` are **required** (unlike Condition, where both are optional). `identifier` must be in the form `identifier=procedure-type|PSX` or `identifier=procedure-type|OSX`.