STATEN ISLAND, N.Y. -- A man walked into a hospital with a gunshot wound and left in handcuffs facing weapons and drug-sale charges, according to authorities.

Police arrested Carlos Gomez, 32, as well as six other people at his home on St. Mark’s Place in St. George later on the same day in a Narcotics Borough Staten Island investigation, according to the criminal complaint.

Gomez sought treatment at Richmond University Medical Center in West Brighton a short time after he allegedly shot himself in the left thigh around 3:20 p.m. on Saturday inside his home, police said.

“I shot myself and put the gun in the second floor bathroom ceiling,” Gomez told cops, according to an account in the complaint.

Armed with a search warrant, police went to Gomez’s home and found a .22-caliber revolver loaded with seven bullets, cocaine and buprenorphine inside the ceiling of a second-floor common bathroom at that address around 7:25 p.m., the complaint alleges.

The following people were arrested after the raid at the St. Mark’s Place residence and charged with criminal possession of a controlled substance with intent to sell and criminal possession of a controlled substance: Demetrius Jones, 26, Montgomery Haines, 63, Sherry Christian, 45, Bart Berger, 67, Elizabeth Ferber, 27 and Charles Anderson, 55.

Gomez was hit with those same drug counts, and also charged with criminal possession of a firearm.

Public records indicate that Gomez has a prior drug-sale case against him winding its way through state Supreme Court from an arrest in March.

Gomez pleaded guilty to assault in January, according to the criminal complaint.

A source with knowledge of the investigation said that Gomez has an extensive criminal record with multiple drug arrests.

Bond has been set at $150,000/$100,000 cash for Gomez who is due back in Criminal Court on Thursday, according to public records.