A GP has told the Central Criminal Court that Patrick Quirke was hurt and upset after his affair with Mary Lowry ended.
Dr Ivor Hanrahan was giving evidence in the trial of Mr Quirke of Breanshamore, Co Tipperary who is accused of murdering Bobby Ryan, a part time DJ known as Mr Moonlight.
Mr Quirke has pleaded not guilty to the murder of Mr Ryan at an unknown location on a date between 3 June, 2011 and 30 April, 2013.
Mr Ryan's body was discovered by Mr Quirke on a farm at Fawnagowan, Co Tipperary.
He said Mr Quirke attended his surgery in September 2010 and mentioned a number of work and finance related stresses, which led to him having difficulty sleeping.
He was referred for counselling but later the GP prescribed antidepressants to help with his sleep problems after receiving a phone call from the counsellor.
Dr Hanrahan said towards the end of 2010 and January 2011 he had a series of phone calls with Mr Quirke. He was deriving minimal benefit from the medication and remained upset and distressed.
He said there were a number of issues bothering him, which he did not want to elaborate on.
Dr Hanrahan suggested a face-to-face meeting, which Mr Quirke attended and revealed he had been having an affair with Ms Lowry.
"This was a source of distress and upset and he asked me not to document it on his file," Dr Hanrahan said.
"We discussed the issue at some length and by the that time he was not taking medication anymore, he had stopped.
"I don't think it had helped him too much and we just discussed the impact it had on mental health and well being.
"He said the affair was with Mary Lowry, who was his wife Imelda's sister-in-law. At that point I believe the relationship had come to an end.
"He mentioned she had become involved in a relationship with another man. He was quite hurt an upset about it."
Asked if he was aware if Mr Quirke still had feelings for Ms Lowry, Dr Hanrahan replied: "I think he did, he was quite hurt and upset at the fact that she had become involved with someone else."
During cross-examination, Dr Hanrahan agreed that Mr Quirke told him he felt guilty and remorseful. He confirmed that he referred him to a counsellor and not a psychiatrist.
He said he believed Mr Quirke was suffering from an adjustment disorder, which resulted from stress and can include depressive symptoms.
"Whether or not he met the criteria for depression is debatable," he said.
He agreed with defence counsel that it was fair to say he was not diagnosed with depression and that the primary purpose for prescribing sedative antidepressants was for sleep disturbance.
Sean Dillon told the court he had worked on an off on Patrick Quirke's farm for many years and was 14-years-old in June 2011.
He could not remember if it was 3 June when he was at Mr Quirke's farm but he knew it was the day after his school holidays began. He remembered moving bales for Mr Quirke and borrowing his tractor to move bales on his own farm.
He said the only thing he had a definite memory of doing was moving bales but it was also possible he had helped with milking. He said it would not be unusual for Pat Quirke to ask him to finish the milking.
He said milking usually finished around 9.30am but this time could vary as sometimes you would get held up on different jobs.
Two years later he remembered hearing in school that Bobby Ryan's body had been found in a run-off tank at Fawnagowan.
He was frightened when he heard it because he had been so close to the area just the previous week.
He said he and his mother went to the Quirkes' house that night and there was a general conversation about what might have happened to Bobby Ryan.
He said he had known of the existence of the concrete slabs but was unsure if he knew there was a tank beneath them.
He had previously fenced off the tank and remembered Pat Quirke telling him that a calf had once got its leg trapped in the concrete slabs and that Mary Lowry had helped him to released it.
Artificial insemination technician Breda O'Dwyer said she had been visiting Pat Quirke's farm for 15 years and would normally arrive after he had finished milking.
He would leave a note for her about which cows were to be inseminated and she would not always see him.
Asked if she had any specific recollection about 3 June 2011 - the day Bobby Ryan went missing - she said Mr Quirke was still in the pit in the milking parlour when she arrived and she assumed he was still milking cows.
She said she had no idea what time she arrived but said "it would have been 9.30am anyway".
She said she was asked by gardaí about phone records and knew that Pat Quirke had sent her a text that morning. She said he would not usually text her in the morning unless it was to tell her not to come.
However, she later checked a diary and discovered she had called that morning so he must have been texting for another reason. She said she would be there every other morning during the busy season and there would be no text from him.
During cross-examination she said her diary had not been preserved. When asked where it had gone she said she assumed it was "in the fire".
She was only obliged to keep a diary for one or two years in case of disease break out.
She agreed that when the gardaí first interviewed her in May 2013 she could not find her diary but a month later she found it.
It was another six months later when the gardaí asked for the diary but by then it was gone, she said. She would not agree that she was mistaken about being there on 3 June.
She said she did not recall seeing Sean Dillon there that day but said that did not mean he was not there.
She agreed there was no set time for her to visit Pat Quirke's farm but said it did not vary much.