The alleged perpetrator of the Copenhagen shooting is committed to a closed psychiatric ward for 24 days.
The Danish media reported unanimously from the hearing of the suspect on Monday.
Thus, the suspect had to spend the pre-trial detention in the psychiatric ward.
The police said on Monday morning that it was not an act of terrorism.
According to the police, three people were shot dead in a shopping center in Copenhagen on Sunday evening.
The victims are a 17-year-old teenager and a male teenager of the same age from Denmark.
A 47-year-old Russian citizen living in Denmark also died.
Many injured and three dead
In addition, four people were seriously injured.
Including a 19-year-old and a 40-year-old from Denmark and a 50-year-old and a 16-year-old from Sweden.
Three of them are no longer in mortal danger, said chief physician Kasper Claudius from the Copenhagen hospital Rigshospitalet.
In all, at least 27 people were injured.
In addition to the four seriously injured, three other people were treated for possible grazing shots, the Copenhagen police said on Monday.
20 people also suffered minor injuries when fleeing the mall.
This includes a broken leg or a broken arm, a spokesman for the Danish capital region told the DR television station.
The police arrested a 22-year-old Dane in the shopping center.
A rifle and a knife were found on him.
The man also had access to a pistol, said Copenhagen police chief Thomassen.
The suspect apparently possessed the gun illegally.
Thomassen gave no information about his motive.
The man had sought help in a psychiatric ward in the past.
He was known to the police, but they didn't know him "particularly well," the police had previously said.
The crime scene, Field's shopping mall, is located in the relatively new Ørestad district in the south of Copenhagen, between the city center and the airport.
The police were alerted around 5:30 p.m.
Foreign Minister Annalena Baerbock (Greens) wrote on Twitter that the attack filled her with "deep sadness".
Her thoughts are with the families and friends.
"Our thoughts are with the families of the victims, we wish the many injured a speedy and comprehensive recovery," said government spokesman Steffen Hebestreit on Monday in Berlin.