Procedure

The Procedure resource documents a healthcare intervention performed on a patient — surgeries, therapies, diagnostic procedures, and other medical services.

API convention: patient, encounter, and location references are sent as flat string id fields (subjectId, encounterId, locationId). Performer references use the standard FHIR reference shape. All resource ids are raw UUIDs (v4).

Creating a Procedure

curl -X POST https://api.esus.health/fhir/Procedure \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/fhir+json" \
  -d '{
    "status": "completed",
    "subjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "encounterId": "c1a2e3d4-5b6f-7890-abcd-ef1234567890",
    "code": {
      "coding": [{
        "system": "http://snomed.info/sct",
        "code": "80146002",
        "display": "Appendectomy"
      }]
    },
    "performedDateTime": "2026-04-21T11:30:00Z"
  }'

Procedure Statuses

StatusMeaning
preparationIn preparation
in-progressCurrently being performed
not-doneProcedure not performed
on-holdTemporarily suspended
stoppedProcedure stopped
completedSuccessfully completed
entered-in-errorErroneous record
unknownStatus cannot be determined

If status is not-done, statusReason (a CodeableConcept) explains why.

Common Fields

FieldDescription
subjectIdThe patient (UUID)
encounterIdThe visit during which it occurred (UUID)
locationIdWhere it was performed (UUID)
performer[]Who performed the procedure (FHIR reference shape)
outcomeWhat happened (success, complication)
complicationAny complication that occurred

Linking to a Practitioner

{
  "performer": [
    {
      "actor": {
        "reference": "Practitioner/a7b1c2d3-e4f5-6789-abcd-ef0123456789",
        "display": "Dr. John Martinez"
      },
      "function": {
        "coding": [{ "code": "SA", "display": "Surgeon" }]
      }
    }
  ]
}