A psychiatrist who testified on behalf of Michelle Carter, who encouraged her boyfriend Conrad Roy to kill himself, was ordered by a Massachusetts judge to stop publishing details about the victim’s confidential medical records on his blog.

On Monday, Judge Lawrence Moniz issued the order against psychiatrist Peter Breggin saying that the matter was very concerning, the Boston Herald reported. Moniz also reportedly said that the move was undignified and Breggin should not have used such details as a subject for a blog.

“I am very concerned as to the nature of what Dr. Breggin is doing,” Moniz said after issuing his decision at the Taunton Trial Court. “I think it is undignified, and quite frankly, I have concerns that it is inconsistent with Dr. Breggin’s own assessment of Ms. Carter’s issues that he is going to make this the subject of a blog.”

During the texting suicide case trial, Breggin testified as a state-funded witness for Carter saying she was under the delusion that she could help Roy find his way to heaven. The expert also said she was involuntarily intoxicated on antidepressants and was unaware of what she was doing.

Carter was convicted in June of involuntary manslaughter in the 2014 death of her boyfriend, whom she encouraged to kill himself by sending him text messages. Roy died in the summer of 2014 after inhaling carbon monoxide from a truck’s exhaust system that poisoned him. Prosecutors said in court during the trial that when Roy wanted to back out of his plans to kill himself, Carter insisted that he should stick by his words and complete what he has decided.

On Monday, Carter's texting suicide case returned back to the court two weeks after her split sentence of two and a half years in jail and in probation.

After the sentencing Aug. 3, Carter was allowed to leave with her family pending an appeal. However, Massachusetts Probation Department wanted the sentencing to be brought back to court for clarification.

Roy's family wanted a 20-year imprisonment for Carter but the young girl's father pleaded with the judge for leniency.

"Take away the spotlight she so desperately craves," Roy's aunt, Kim Bozzi, said in a statement before the sentencing. "Twenty years may seem extreme, but it is still twenty more than Conrad will ever have."

In a statement to the judge before the sentencing, Carter's father said: "She will forever live with what she has done and I know will be a better person because of it," adding: "I ask of you to invoke leniency in your decision-making process for my loving child Michelle."

After the conviction in June, Roy's mother said in a statement to Daily Mail: "I would give up everything - I would be homeless, sleep in my car for the rest of my life, if I could just get him back."

"I want a law in place that prevents this happening to any other mother and child. The ultimate goal is to have a law passed. It's not going to bring my son back but I would be honored if it would help other children," she added.