Interaction response sets

Summarizes the HTTP responses for each FHIR interaction.

Scope

The current R4 and R6 CapabilityStatements advertise create, read, versioned read, update, delete, and type-level search for every resource listed below.

Supported resources

FHIR R4: AllergyIntolerance, CarePlan, CareTeam, Composition, Condition, Device, DiagnosticReport, DocumentReference, Encounter, Endpoint, FamilyMemberHistory, Group, Immunization, Location, Medication, MedicationRequest, MedicationStatement, Observation, Organization, Patient, Practitioner, PractitionerRole, Procedure, Provenance, RelatedPerson, ServiceRequest, Specimen.

FHIR R6: Device, DeviceAssociation, Encounter, Location, Observation, Patient, Practitioner, PractitionerRole, Provenance, Subscription, and SubscriptionTopic.

Successful interaction responses

InteractionRequestSuccessful response
SearchGET /Resource or POST /Resource/_search200 with a search-set Bundle
CreatePOST /Resource201 with the created resource
ReadGET /Resource/{rid}200 with the resource
Versioned readGET /Resource/{rid}/_history/{vid}200 with the requested resource version
UpdatePUT /Resource/{rid}200 for a live update; 201 for supported PUT-as-create or restoration. Body content follows the requested return preference.
DeleteDELETE /Resource/{rid}204 with no response body

Operation responses

  • Every resource listed above advertises POST /Resource/$purgeDeleted and POST /Resource/{rid}/$hardDelete. A successful request returns HTTP 200 with an OperationOutcome.
  • GET /api/fhir/r6-ballot4/Subscription/$status and GET /api/fhir/r6-ballot4/Subscription/{rid}/$status return HTTP 200 with a search-set Bundle containing SubscriptionStatus operation results.

For common unsuccessful responses and FHIR-formatted error bodies, see OperationOutcome errors. A response does not always contain a FHIR body.

See also

For permanent deletion guidance, see Data deletion and purge operations.