# Referral Confirm Cancelled

Order notifications contain details about any order placed by your connection’s system to your organization. This could include device, medication, service, or referral requests, depending on what your organization provides or manages for patients.

For standard FHIR, you can receive notifications when an order is created, cancelled, or updated. 

For <u>**360X workflows**</u>, you can receive notifications about your referral statuses or receive a referral from your connection. 

> **Open beta feature**
>
> This is an open beta feature, which means you won’t see it available in your organization until you opt in. If you’re interested in joining this beta, [talk to a Redoxer](https://redoxengine.com/forms/contact-us/) to find out if you’d be a good fit. 

Confirms that an existing patient referral has been cancelled as requested.

This notification includes this bundle of resources:

**Required**

- `Procedure`  
- `Patient` 

**Optional**

- `Composition`
- `DocumentReference`
- `Organization`
- `Practitioner`
- `ServiceRequest` 

> **No lightweight notifications**
>
> There’s no lightweight version of this notification type because it relies on DirectTrust’s 360 Exchange for Closed Loop Referrals (360X) specs. [Learn more about 360X](https://directtrust.org/what-we-do/direct-secure-messaging/360x).

## Detailed payload

Bundle sent as part of a referral-confirm-cancelled event

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `resourceType` | string | Yes | Identifies the type of the resource. Value: Bundle |
| `type` | string | Yes | Indicates the purpose of this bundle - how it is intended to be used. Value: message |
| `entry` | Array of messageHeader or Other | Yes | An entry in the bundle containing a FHIR resource |
| `entry[] (messageHeader).resource` | object | No | The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type. |
| `entry[] (messageHeader).resource.resourceType` | string | Yes | Identifies the type of the resource. Value: MessageHeader |
| `entry[] (messageHeader).resource.source` | object | Yes | The source application from which this message originated. |
| `entry[] (messageHeader).resource.source.endpoint` | string | Yes | Identifies the routing target to send acknowledgements to. |
| `entry[] (messageHeader).resource.source.name` | string | No | Human-readable name for the source system. |
| `entry[] (messageHeader).resource.focus` | Array of object | Yes | The actual data of the message - a reference to the root/focus class of the event. Must be a resource of type `Resource`. |
| `entry[] (messageHeader).resource.focus[].reference` | string | No | A reference to another resource. This is typically either a relative reference which includes the resource type and ID, or an internal reference which starts with `#` and refers to a contained resource. |
| `entry[] (messageHeader).resource.definition` | string | Yes | Permanent link to the MessageDefinition for this message. |
| `entry[] (messageHeader).resource.eventUri` | string | Yes | Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value `http://terminology.hl7.org/CodeSystem/message-events`.  Alternatively uri to the EventDefinition. Value: https://fhir.redoxengine.com/EventDefinition/ReferralConfirmCancelled |
| `entry[] (messageHeader).resource.eventCoding` | object | Yes | This describes the message being communicated |
| `entry[] (messageHeader).resource.eventCoding.system` | string | No | The identification of the code system that defines the meaning of the symbol in the code. |
| `entry[] (messageHeader).resource.eventCoding.code` | string | No | A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). |
| `entry[] (messageHeader).resource.destination` | Array of object | No | The destination(s) for the message, including the Direct Address of the intended recipient. |
| `entry[] (messageHeader).resource.destination[].endpoint` | string | Yes | The Direct Address of the intended message recipient (DirectAddressTo). For messages received via DirectTrust, this identifies the target direct address. |
| `entry[] (Other)` | object | No |  |
| `timestamp` | string | No | The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle. |

```json
{
  "resourceType": "Bundle",
  "id": "ReferralConfirmCancelledFullBundleExample",
  "type": "message",
  "entry": [
    {
      "resource": {
        "eventUri": "https://fhir.redoxengine.com/EventDefinition/ReferralConfirmCancelled",
        "resourceType": "MessageHeader",
        "id": "919bf32f-5478-5975-928a-0056dc310c34",
        "focus": [
          {
            "reference": "ServiceRequest/example-referral"
          }
        ],
        "source": {
          "name": "Good Health Clinics",
          "endpoint": "mailto:receiving-provider@direct.example.com"
        },
        "destination": [
          {
            "endpoint": "mailto:goodhealthclinics@direct.redoxengine.com"
          }
        ],
        "definition": "https://fhir.redoxengine.com/MessageDefinition/ReferralConfirmCancelledFull"
      },
      "fullUrl": "urn:uuid:919bf32f-5478-5975-928a-0056dc310c34"
    }
  ],
  "timestamp": "2026-03-24T12:05:00.000Z",
  "Meta": {
    "Logs": [
      {
        "ID": "d9f5d293-7110-461e-a875-3beb089e79f3",
        "AttemptID": "925d1617-2fe0-468c-a14c-f8c04b572c54"
      }
    ],
    "Test": true,
    "EventDateTime": "2026-11-20T22:18:53.621Z",
    "Source": {
      "ID": "7ce6f387-c33c-417d-8682-81e83628cbd9",
      "Name": "Redox Dev Tools"
    },
    "Destinations": [
      {
        "ID": "af394f14-b34a-464f-8d24-895f370af4c9",
        "Name": "Redox EMR"
      }
    ],
    "DataModel": "FHIR.Event.Order",
    "EventType": "referral-confirm-cancelled"
  }
}
```
