ADT Network

Health Gorilla's ADT Data provides event-driven notifications from a nationwide network of hospitals. ADT notifications are sent whenever a patient is admitted to, transferred to, or discharged from a care facility.

To enable ADT notifications for your practice, submit a roster of patients to the Health Gorilla SFTP. Health Gorilla enrolls the patients on the roster in our ADT network. If a patient on the roster is admitted to, transferred to, or discharged from a care facility in our network, the care organization sends an ADT notification to your tenant in Health Gorilla. You can access received ADTs in the following ways:

  • The Health Gorilla UI
  • FHIR subscriptions
  • The original HL7, through the FHIR API

Setting Up SFTP

Health Gorilla creates your SFTP credentials and provides them during onboarding and implementation. You can also get your SFTP credentials from your Client Success Manager.

Enrolling Patients

The first step in using the Health Gorilla ADT network is creating a roster file. Each roster file should represent the current list of patients for whom you want to receive ADTs. Each roster file you upload replaces the previously uploaded roster, which lets you add and remove patients from your ADT roster as needed.

Creating a Patient Roster

To enroll your patients in the Health Gorilla ADT network, upload a roster of your patients through SFTP. The roster is a CSV file that contains the following headers and a row of attributes for each patient.

FieldDefinitionStatusFormat
First_namePatient's first nameRequiredString
Last_namePatient's last nameRequiredString
Date_of_birthPatient's date of birthRequiredDate MM/DD/YYYY
GenderPatient's gender (Male/Female/Other/Unknown)RequiredString
Zip_codePatient's ZIP codeRequired99999-9999 (last 4 digits optional)
Subscriber_IDCommercial payer ID or MBIRequiredString
Internal_IDInternal ID (MRN) of the patient: the ID your organization uses to identify the patient in its internal systemRequiredString
Middle_initialPatient's middle initialOptionalString
MBIMedicare Beneficiary IdentifierOptionalString
Street_addressPatient's street address. Strongly recommended for improved matching.OptionalString
CityPatient's cityOptionalString
StatePatient's state, as a 2-letter abbreviationOptionalString
Home_phonePatient's home phone numberOptionalString
Mobile_phonePatient's mobile phone numberOptionalString
Email_addressPatient's email addressOptionalString
SSNPatient's Social Security number. Must be a valid Social Security number.Optional999999999
9-digit numeric string, no dashes
Subscriber_ID_prefixPrefix of the patient's Subscriber ID, if any. For example, "MM".OptionalString
Subscriber_ID_suffixSuffix of the patient's Subscriber ID, if any. For example, "01".OptionalString
PCP_NPINational Provider Identifier (NPI) of the patient's primary care physicianOptionalString
🚧

Subscriber_ID Requirement

Subscriber_ID is always required. How you fill it in depends on the patient's coverage:

  1. Commercial insurance only: Enter the commercial payer ID in the Subscriber_ID field.
  2. Medicare only: Enter the MBI in both the Subscriber_ID and MBI fields.
  3. Both Medicare and commercial insurance: Enter the commercial payer ID in the Subscriber_ID field and the MBI in the MBI field.

Uploading a Patient Roster

After you create your patient roster, upload it to the Health Gorilla SFTP with the credentials provided during onboarding. Health Gorilla then uses the file to enroll your patients in the ADT network.

🚧

Roster Management

Each roster you upload replaces the previously uploaded roster. Health Gorilla recommends uploading an updated roster once a week.

Checking Roster Processing

After you upload a roster, Health Gorilla processes the file and emails the result to the email address on file for your practice. If your practice has no email address on file, no email is sent. The email for a processed file contains the total number of patients in the roster, the patients newly enrolled and removed, and the number of rows with errors or warnings. For a file that can't be processed, the email contains the reason. Correct the problem, and then upload the roster again. If no email arrives, check the Rosters summary report.

Rows with errors are skipped, and rows with only warnings are processed. If a patient ID appears in more than one row, the first row is processed and the others are skipped as duplicates. A patient enrolled from an earlier roster stays enrolled only if the patient has a processed row in the new file. If the patient's only row is skipped, the patient is removed from enrollment and stops receiving ADT notifications. To fix skipped rows, correct them and upload the full roster again. A roster file that contains only headers, with no patients, removes every patient from enrollment. If a file can't be processed because of a system error, contact Health Gorilla Support.

You can check the processing status of your uploaded rosters in Practice Settings, which is available to users with administrator access. If you don't see Practice Settings, ask an administrator in your practice.

To check roster processing status

  1. In Health Gorilla, on the upper right, select your name, and then select Practice Settings.
  2. On the left, under Reports, select ADT Reports.
  3. In the report list, select Rosters report.
  4. Set the date range to include the day you uploaded the roster, and then select Run. The date range defaults to yesterday and can span up to one year.

Selecting Rosters report opens the Rosters summary report, which has a row for each roster file processed in the date range, so you can confirm that your file arrived and see whether it was processed. The report ends with a total row, and you can select Export to CSV to download it. In the report, patients enrolled in ADT notifications are labeled subscribed, and patients removed are labeled unsubscribed. The report gives counts of patients, not their names.

Use the columns in the Rosters summary report to see the outcome of each file, from its status to the number of patients it enrolled or removed.

ColumnShows
TimestampWhen processing of the file started
CustomerYour practice's name
FileThe roster file name
StatusProcessed, In Progress, or Rejected - critical error found. A file shows Rejected - critical error found when it can't be read or when a system error stops processing.
Total linesThe number of patient rows in the file
ValidThe number of rows processed without errors or warnings
Errors or WarningsThe number of rows with an error, a warning, or both
Patients subscribedThe number of patients newly enrolled from this file
Patients unsubscribedThe number of patients removed from enrollment because they had no processed row in this file

To see which rows had problems, select the file. The Roster processing results report lists each roster row with an error or a warning, by Line #, with the errors or warnings for that row. Rows without errors or warnings don't appear. A rejected file shows only the problem rows found before processing stopped, and it may have none. The reason for a rejection is in the email, not the report. If a file was rejected and you didn't receive the email, contact Health Gorilla Support with the file name and the time you uploaded it. For details, go to Getting Support.

Receiving Notifications

When Health Gorilla receives an ADT for a patient on your roster, you can be notified by text message, email, or FHIR subscription. You can also retrieve the original HL7 for the ADT with the Health Gorilla FHIR API.

Notification Types

Text message and email notifications are delivered by subscription to a notification type rather than to an individual HL7 v2 trigger event. Each type pairs a trigger event with a patient class, and a text message or email notification is sent only when both match. FHIR subscription notifications don't use these types. They're sent for every ADT that matches the criteria in your subscription, which can filter on event type and patient class. For details, go to Using FHIR Subscription Notifications (Webhooks).

Notification TypeTrigger EventPatient Class
Admission to the emergency departmentA01Emergency
Discharge from the emergency departmentA03Emergency
Transfer from the emergency department to inpatientA02Inpatient
Admission to an inpatient facilityA06Inpatient
Discharge from an inpatient facilityA07Inpatient

For text message and email notifications, a message whose patient class is neither emergency nor inpatient produces no notification, even when its trigger event is one of the five. Outpatient is the most common example. An A01 with an inpatient patient class also produces no notification, because no type pairs those two. A source system that sends direct inpatient admissions as A01, with no A06 for the same encounter, produces no text message or email notification for those admissions.

Inpatient admission is carried by A06, defined in HL7 v2 as "change an outpatient to an inpatient," and inpatient discharge by A07, "change an inpatient to an outpatient." Mapping a feed by trigger event alone, expecting A01 and A03 for inpatient admission and discharge, maps it incorrectly.

Health Gorilla receives and processes every ADT message regardless of trigger event. Only text message and email notification delivery depends on the pairing.

Using the Health Gorilla UI

After an ADT arrives in your tenant, you can view it by signing in to Health Gorilla, or by signing your users in through the embedded iFrame with SSO. For details, go to Embedded iFrame.

Users can configure their own ADT notification settings in the Settings section of the UI and receive notifications by email or SMS.

Using FHIR Subscription Notifications (Webhooks)

Health Gorilla can send notifications of new ADTs in your tenant to your webhook through FHIR subscriptions. Each notification contains all the information associated with the ADT, including a link to the original HL7. Creating a FHIR subscription takes three steps:

  1. Create your webhook URL.
  2. Use your webhook URL and the Health Gorilla FHIR API to create a FHIR subscription for ADTs.
  3. Write the code to consume the notifications sent to your webhook.

FHIR Notification Example

{
    "resourceType": "Bundle",
    "id": "2a64a366-4c4e-496e-8848-68eac8577e30",
    "type": "message",
    "entry": [
        {
            "fullUrl": "urn:uuid:128761641d1817df3377391a",
            "resource": {
                "resourceType": "MessageHeader",
                "id": "128761641d1817df3377391a",
                "meta": {
                    "profile": [
                        "https://healthgorilla.com/fhir/StructureDefinition/hg-message-header"
                    ]
                },
                "contained": [
                    {
                        "resourceType": "Organization",
                        "id": "1",
                        "identifier": [
                            {
                                "value": "1234567893"
                            }
                        ],
                        "name": "Hospital Jungle Junction"
                    }
                ],
                "extension": [
                    {
                        "url": "http://hl7.org/fhir/3.0/StructureDefinition/extension-MessageHeader.timestamp",
                        "valueInstant": "2023-05-10T12:33:00+00:00"
                    },
                    {
                        "url": "https://www.healthgorilla.com/fhir/R4/StructureDefinition/adt-event-type",
                        "valueCode": "A02"
                    }
                ],
                "eventCoding": {
                    "system": "http://hl7.org/fhir/message-events",
                    "code": "admin-notify",
                    "display": "admin-notify"
                },
                "sender": {
                    "reference": "#1"
                },
                "source": {
                    "name": "Example EHR",
                    "software": "Example EHR"
                },
                "focus": [
                    {
                        "reference": "Patient/128761643f1ccfdc5778f76b",
                        "display": "Joe Gorilla"
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:patient",
            "resource": {
                "resourceType": "Patient",
                "id": "patient",
                "meta": {
                    "versionId": "1684113171551",
                    "lastUpdated": "2023-05-15T01:12:51.551+00:00",
                    "profile": [
                        "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient",
                        "http://fhir.org/guides/argonaut/StructureDefinition/argo-patient"
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Joe Gorilla, 72y.o., Male, Rogerston, PA, United States</div>"
                },
                "extension": [
                    {
                        "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
                        "extension": [
                            {
                                "url": "ombCategory",
                                "valueCoding": {
                                    "system": "urn:oid:2.16.840.1.113883.6.238",
                                    "code": "2106-3",
                                    "display": "White"
                                }
                            },
                            {
                                "url": "text",
                                "valueString": "White"
                            }
                        ]
                    }
                ],
                "identifier": [
                    {
                        "use": "usual",
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "MR",
                                    "display": "Medical record number"
                                }
                            ],
                            "text": "Medical record number"
                        },
                        "system": "https://www.healthgorilla.com",
                        "value": "128761643f1ccfdc5778f76b"
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "MR",
                                    "display": "Medical record number"
                                }
                            ],
                            "text": "Medical record number"
                        },
                        "system": "https://www.healthgorilla.com",
                        "value": "863117"
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "PT",
                                    "display": "Patient external identifier"
                                }
                            ],
                            "text": "Patient external identifier"
                        },
                        "value": "70284123RTE"
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "PT",
                                    "display": "Patient external identifier"
                                }
                            ],
                            "text": "Patient external identifier"
                        },
                        "value": "326123124"
                    }
                ],
                "active": true,
                "name": [
                    {
                        "use": "usual",
                        "text": "Joe Gorilla",
                        "family": "Gorilla",
                        "given": [
                            "Joe"
                        ]
                    }
                ],
                "gender": "male",
                "birthDate": "1950-12-27",
                "address": [
                    {
                        "use": "home",
                        "text": "543 Elle Rd, Rogerston, PA 00725",
                        "line": [
                            "543 Elle Rd"
                        ],
                        "city": "Rogerston",
                        "state": "PA",
                        "postalCode": "00725",
                        "country": "USA"
                    }
                ],
                "link": [
                    {
                        "other": {
                            "reference": "Patient/128761643f1ccfdc5778f76b",
                            "display": "Joe Gorilla"
                        },
                        "type": "refer"
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:enc",
            "resource": {
                "resourceType": "Encounter",
                "id": "enc",
                "contained": [
                    {
                        "resourceType": "Practitioner",
                        "id": "1",
                        "identifier": [
                            {
                                "value": "1111111111"
                            }
                        ],
                        "name": [
                            {
                                "text": "John Doe",
                                "family": "Doe",
                                "given": [
                                    "John"
                                ]
                            }
                        ]
                    },
                    {
                        "resourceType": "Practitioner",
                        "id": "2",
                        "identifier": [
                            {
                                "value": "1111111111"
                            }
                        ],
                        "name": [
                            {
                                "text": "John Doe",
                                "family": "Doe",
                                "given": [
                                    "John"
                                ]
                            }
                        ]
                    },
                    {
                        "resourceType": "Practitioner",
                        "id": "3",
                        "identifier": [
                            {
                                "type": {
                                    "coding": [
                                        {
                                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                            "code": "NPI"
                                        }
                                    ]
                                },
                                "value": "2222222222"
                            }
                        ],
                        "name": [
                            {
                                "text": "Jane Doe",
                                "family": "Doe",
                                "given": [
                                    "Jane"
                                ]
                            }
                        ]
                    },
                    {
                        "resourceType": "Location",
                        "id": "4",
                        "name": "01",
                        "physicalType": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "bd",
                                    "display": "Bed"
                                }
                            ],
                            "text": "Bed"
                        },
                        "partOf": {
                            "reference": "#5"
                        }
                    },
                    {
                        "resourceType": "Location",
                        "id": "5",
                        "name": "365",
                        "physicalType": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                                    "code": "ro",
                                    "display": "Room"
                                }
                            ],
                            "text": "Room"
                        },
                        "partOf": {
                            "reference": "#6"
                        }
                    },
                    {
                        "resourceType": "Location",
                        "id": "6",
                        "name": "00030"
                    }
                ],
                "identifier": [
                    {
                        "value": "372304270065"
                    }
                ],
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0004",
                    "code": "I",
                    "display": "Inpatient"
                },
                "type": [
                    {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/v2-0007",
                                "code": "C",
                                "display": "Elective"
                            }
                        ]
                    },
                    {
                        "coding": [
                            {
                                "code": "0"
                            }
                        ]
                    }
                ],
                "subject": {
                    "reference": "Patient/patient"
                },
                "participant": [
                    {
                        "type": [
                            {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                                        "code": "ADM",
                                        "display": "Admitter"
                                    }
                                ]
                            }
                        ],
                        "individual": {
                            "reference": "#1"
                        }
                    },
                    {
                        "type": [
                            {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                                        "code": "ATND",
                                        "display": "Attender"
                                    }
                                ]
                            }
                        ],
                        "individual": {
                            "reference": "#2"
                        }
                    },
                    {
                        "type": [
                            {
                                "coding": [
                                    {
                                        "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                                        "code": "REF",
                                        "display": "Referrer"
                                    }
                                ]
                            }
                        ],
                        "individual": {
                            "reference": "#3"
                        }
                    }
                ],
                "period": {
                    "start": "2023-05-10T12:33:00+00:00"
                },
                "reasonCode": [
                    {
                        "coding": [
                            {
                                "code": "COA"
                            }
                        ]
                    }
                ],
                "hospitalization": {
                    "admitSource": {
                        "coding": [
                            {
                                "code": "1",
                                "display": "Physician referral"
                            },
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/admit-source",
                                "code": "mp",
                                "display": "Medical Practitioner/physician referral"
                            }
                        ]
                    }
                },
                "location": [
                    {
                        "location": {
                            "reference": "#4"
                        }
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:Condition/d1",
            "resource": {
                "resourceType": "Condition",
                "id": "d1",
                "meta": {
                    "versionId": "1684113170677",
                    "lastUpdated": "2023-05-15T01:12:50.677+00:00"
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Coarctation of aorta</div>"
                },
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "HL70052",
                            "code": "F",
                            "display": "Final"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "I10",
                            "code": "Q25.1",
                            "display": "Coarctation of aorta"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/patient"
                },
                "recordedDate": "2023-05-01T10:18:00+00:00"
            }
        },
        {
            "fullUrl": "urn:uuid:Condition/d2",
            "resource": {
                "resourceType": "Condition",
                "id": "d2",
                "meta": {
                    "versionId": "1684113170680",
                    "lastUpdated": "2023-05-15T01:12:50.680+00:00"
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Hypertensive heart disease without heart failure</div>"
                },
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "HL70052",
                            "code": "A",
                            "display": "Admitting"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "I10",
                            "code": "I11.9",
                            "display": "Hypertensive heart disease without heart failure"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/patient"
                },
                "recordedDate": "2023-05-01T10:18:00+00:00"
            }
        },
        {
            "fullUrl": "urn:uuid:Condition/d3",
            "resource": {
                "resourceType": "Condition",
                "id": "d3",
                "meta": {
                    "versionId": "1684113170681",
                    "lastUpdated": "2023-05-15T01:12:50.681+00:00"
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Pure hypercholesterolemia, unspecified</div>"
                },
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "HL70052",
                            "code": "W",
                            "display": "Working"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "I10",
                            "code": "E78.00",
                            "display": "Pure hypercholesterolemia, unspecified"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/patient"
                },
                "recordedDate": "2023-05-01T10:19:00+00:00"
            }
        },
        {
            "fullUrl": "urn:uuid:Condition/d4",
            "resource": {
                "resourceType": "Condition",
                "id": "d4",
                "meta": {
                    "versionId": "1684113170682",
                    "lastUpdated": "2023-05-15T01:12:50.682+00:00"
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Other specified postprocedural states</div>"
                },
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "HL70052",
                            "code": "W",
                            "display": "Working"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "I10",
                            "code": "Z98.890",
                            "display": "Other specified postprocedural states"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/patient"
                },
                "recordedDate": "2023-05-01T10:20:00+00:00"
            }
        },
        {
            "fullUrl": "urn:uuid:Condition/d5",
            "resource": {
                "resourceType": "Condition",
                "id": "d5",
                "meta": {
                    "versionId": "1684113170683",
                    "lastUpdated": "2023-05-15T01:12:50.683+00:00"
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Personal history of other diseases of the circulatory system</div>"
                },
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "HL70052",
                            "code": "W",
                            "display": "Working"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "I10",
                            "code": "Z86.79",
                            "display": "Personal history of other diseases of the circulatory system"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/patient"
                },
                "recordedDate": "2023-05-01T10:20:00+00:00"
            }
        },
        {
            "fullUrl": "urn:uuid:AllergyIntolerance/allergy1",
            "resource": {
                "resourceType": "AllergyIntolerance",
                "id": "allergy1",
                "meta": {
                    "versionId": "1684113170704",
                    "lastUpdated": "2023-05-15T01:12:50.704+00:00"
                },
                "code": {
                    "coding": [
                        {
                            "system": "HL70100",
                            "code": "1605",
                            "display": "PENICILLIN"
                        }
                    ]
                },
                "patient": {
                    "reference": "Patient"
                },
                "reaction": [
                    {
                        "manifestation": [
                            {
                                "coding": [
                                    {
                                        "display": "Hives and itching after taking penicillin."
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        },
        {
            "resource": {
                "resourceType": "Parameters",
                "id": "hl7",
                "parameter": [
                    {
                        "name": "hl7",
                        "part": [
                            {
                                "name": "name",
                                "valueString": "message_hl7.txt"
                            },
                            {
                                "name": "url",
                                "valueUrl": "https://www.healthgorilla.com/fhir/Binary/1387616479b0872b4b836d6d"
                            },
                            {
                                "name": "contentType",
                                "valueString": "text/plain"
                            },
                            {
                                "name": "size",
                                "valuePositiveInt": 1160
                            },
                            {
                                "name": "checksum",
                                "valueString": "886E1B0A1992426A23B2D5386C9F2364"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Retrieving the Original HL7

ADT messages are sent in HL7 format, and you can retrieve the original HL7 from the FHIR subscription notification payload. Each notification payload contains a Parameters resource in the FHIR Bundle. To retrieve the original HL7, send a GET request to the Binary URL in the Parameters resource. Pass a valid access token in the request headers.

Example Parameters Resource from a FHIR Subscription Notification

 {
            "resource": {
                "resourceType": "Parameters",
                "id": "hl7",
                "parameter": [
                    {
                        "name": "hl7",
                        "part": [
                            {
                                "name": "name",
                                "valueString": "message_hl7.txt"
                            },
                            {
                                "name": "url",
                                "valueUrl": "https://www.healthgorilla.com/fhir/Binary/1387616479b0872b123132"
                            },
                            {
                                "name": "contentType",
                                "valueString": "text/plain"
                            },
                            {
                                "name": "size",
                                "valuePositiveInt": 1160
                            },
                            {
                                "name": "checksum",
                                "valueString": "886E1B0A1992426A23B2D5386C9F2111"
                            }
                        ]
                    }
                ]
            }
        }