ADCs function by integrating with the facility's electronic health records (EHR) system. When a medication order is placed, it is sent to the ADC, which then allows authorized users to access the required medication. The system tracks who accessed the medication, when it was accessed, and the quantity taken, ensuring accountability and traceability.