trg integration for patient data