In this exploratory subgroup analysis of a randomized trial , the authors hypothesized that providing chronic care management ( CCM ) for substance dependence in a primary care setting would have a beneficial effect among persons with substance dependence and major depressive disorder or posttraumatic stress disorder ( PTSD ) .