Facts
The appellant, born in 1974 and without vocational training, carried out various unskilled activities from 2003 to April 2008. Suffering from depressive disorders, she filed a first application for IV benefits on 4 August 2008, which was rejected by decision of 18 March 2010 following a psychiatric assessment by Dr B. that ruled out any work incapacity.
She then worked full-time as a butcher's shop saleswoman from June 2010 to September 2011, and subsequently filed a new application on 16 November 2011. The IV office obtained the opinions of the treating general practitioner C., the treating psychiatrist D., the Centre de soins hospitaliers E., as well as a new assessment by Dr B. (report of 10 September 2012, supplemented on 12 May 2014). The latter found a mild mixed anxious-depressive disorder, a dissociative (conversion) disorder and a persistent somatoform pain disorder, without effect on work capacity (100%). The appellant produced a private expert report from Dr F. (4 March 2013), which diagnosed a severe recurrent depressive disorder with psychotic symptoms and a borderline personality disorder, and found zero work capacity.
By decision of 20 October 2014, the IV office rejected the application once again. By judgment of 24 November 2015, the Cantonal Court of the Canton of Fribourg, Social Insurance Court, dismissed the appeal as well as the request for legal aid.
The appellant filed a public law appeal and requested the award of a full pension from 1 September 2012, as well as legal aid for the cantonal proceedings. The IV office did not submit conclusions and the Federal Social Insurance Office waived its right to respond.
Main question: does the refusal of a pension, based on the absence of a medical substrate and on the influence of psychosocial factors, result from a manifestly incorrect establishment of the facts or from a violation of federal law?
Considerations
The Federal Supreme Court recalls the principles governing public law appeals (Art. 95, 96, 105 and 106 FSCA): it applies the law of its own motion, relies on the facts established by the lower authority unless they were established in a manifestly incorrect manner, and the party seeking to depart from them must demonstrate this in a detailed manner.
As to the free assessment of evidence, the judge must objectively examine all documents, regardless of their origin, and give reasons for choosing between contradictory opinions. Probative value depends on the substantive content of the report (complete examination, consideration of complaints, knowledge of the medical history, reasoning of conclusions). A report cannot be disregarded solely because it emanates from the treating physician or from a party; only particular circumstances justify doubting the impartiality or soundness of an opinion.
As for psychosocial and sociocultural factors, they do not in themselves constitute a disabling health impairment. A relevant medical substrate, distinct from these factors, which autonomously affects work capacity, is required. Regarding depressive-spectrum disorders, their disabling character is only accepted if they resist all medically indicated treatments carried out in accordance with the rules of the art (ATF 140 V 193). An assessment must therefore precisely describe the therapeutic process and evaluate the influence of psychosocial factors.
In this case, the cantonal court gave precedence to the socioeconomic context of the medical history over the medical assessment. It omitted several medical documents favourable to the appellant (supplementary report from Dr F., positions taken by the IV Regional Medical…