# SetPreferredPharmacyResponse

Model ID: `SetPreferredPharmacyResponse`

Response for PUT /patients/preferred-pharmacy: the saved FHIR
Organization resource (passthrough, hence `extra="allow"` rather than
enumerating every FHIR field) plus the vendor mirror outcomes.

Type: `object`

## Fields

| Field | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `athena_pharmacy_error` | `string|null` | No |  |  |  | Yes | Reserved for backward-compatible response parsing. |
| `athena_pharmacy_status` | `string|null` | No |  |  |  | Yes | Outcome of the write: 'linked' for an Athena-integrated tenant, or 'skipped_no_athena' when FHIR is the tenant's source of truth. Athena match/write failures return a non-2xx response instead. |
| `openloop_pharmacy_error` | `string|null` | No |  |  |  | Yes | Reserved for backward-compatible response parsing. |
| `openloop_pharmacy_status` | `string|null` | No |  |  |  | Yes | Outcome of the Healthie (OpenLoop) addPharmacy mirror: 'linked' for an OpenLoop-integrated tenant, or 'skipped_no_openloop' when not integrated. OpenLoop match/write failures return a non-2xx response instead. |
| `steadymd_pharmacy_error` | `string|null` | No |  |  |  | Yes | Failure detail for the SteadyMD mirror when its status is 'failed'. |
| `steadymd_pharmacy_status` | `string|null` | No |  |  |  | Yes | Outcome of the SteadyMD requestedPharmacy mirror: 'linked' when the pharmacy was attached to the patient's episode, 'skipped_no_steadymd' when not integrated, or 'skipped_no_open_episode' when the patient has no open SteadyMD episode. Unlike the Athena/OpenLoop legs, SteadyMD failures surface here as 'failed' (non-fatal) because SteadyMD is not authoritative for the saved FHIR copy. |

## Example

None declared in canonical OpenAPI.
