We propose a modular approach to develop an ontology of psychiatry, ONTOPSYCHIA, based on Patient Discharges Summaries (PDS) and divided into three modules (i.e. social, mental disorders and treatments). We decided to take into account the social aspects of the patient life described in PDS to consider information such as family history, social environment or education.