Why was Officer X hospitalized two months before his death?

The motive behind the officer's crime was 'professional pride,' according to N12, as opposed to previous estimations of money, treason or grudge being his motive.

An Israeli soldier walks next to a military vehicle at a mobile artillery unit location on the Israeli side by the Israel border with Gaza (photo credit: BAZ RATNER/REUTERS)
An Israeli soldier walks next to a military vehicle at a mobile artillery unit location on the Israeli side by the Israel border with Gaza
(photo credit: BAZ RATNER/REUTERS)
Officer X, the IDF intelligence officer who died in military prison last month, was hospitalized two months before his death for a medical emergency, Maariv revealed on Friday. 
This detail was revealed to his family only after his death. Furthermore, he didn't share his hospitalization with anyone. 
About two months before he died, Officer X, whose identity remains under a gag order, was admitted to the emergency room at the Rambam Health Care Campus in Haifa. 
He was released without being transferred to another unit, and the reason he was admitted remains unclear. 
The investigators on the case are expected to look into whether this hospitalization may have been related to his death two months later. 
Media reports said that the autopsy carried out after his death found traces of antidepressants and antipsychotic medication in his blood, prescribed by his psychiatrist. 
The intelligence officer was in military prison for alleged offenses that caused "severe damage to national security," according to the IDF. 
"The officer cooperated in his interrogation and confessed to many of the acts attributed to him,” the IDF said on Monday, adding that the investigation found he had “acted independently for personal motives and not for ideological, nationalist or economic motives.”
According to an N12 report on Friday, the motive behind the officer's death was "professional pride," as opposed to previous estimations of money, treason or grudge being his motive.  
Meanwhile, the parents of Officer X wrote a letter to IDF Chief of Staff Aviv Kohavi in which they expressed their sadness over the entire affair, and demanded an end to the "defamation campaign" against their late son. 
In the letter, the parents demanded "not to bury the truth, not to whitewash and not to hide it," as well as to clarify the circumstances surrounding their son's death. 
"This week, during your speech at an IDC conference in Herzliya, you spoke about 'your soldier, about a soldier of us all, an officer, who died in prison. This soldier is our youngest son," the parents said in the letter. 
"We did not dream that our son, who devoted five years of his life to the IDF, with great appreciation from his commanders, would end his life in such a tragic and painful way, under unclear and vague circumstances," the parents mentioned.
"Unfortunately, until this moment we have not found the time to mourn him. We are in a terrible demonic dance, in chaos, where every website has a picture of his face, and now we are trying to understand how we lost our son, why, who did not monitor him?"