The attached query was developed to track medication refill encounters in emergency departments in ESSENCE during evacuations or extended mass gathering events. The query was initially developed for use with the chief complaint, triage note, and discharge diagnosis code (ICD-10 CM).