Their injuries are not thought to be life-threatening.
A Police Scotland spokesperson said: "Officers were called to assist the Scottish Fire and Rescue Service at a fire at a tenement building on McNeill Terrace, Loanhead, at around 3.35am on Sunday, October 25.
"22 residents were evacuated and a number of people received medical treatment as a precaution. A 13 year-old girl and a 37 year-old woman were taken to hospital for treatment. Their injuries are not believed to be life-threatening.
"The fire was extinguished by the Scottish Fire and Rescue Service and an investigation will be carried out to establish the cause. Officers currently remain at the scene and enquiries are ongoing."
Within hours of the incident, friends of the family had created two fundraising pages to raise money to support the family during this time.
The first crowdfunding page created by Jamie Campbell has raised £4,240 of a £5,000 target. Mr Campbell wrote on the page: “My friend Colin and his partner Michelle and there (sic) kids Skye,
Erin, Kaiden, Carly-Rose and Flynn have fallen victim to a house fire and have lost everything they own including there (sic) home.
"Every penny we can raise to help them out would go a very long way.”
Set up by Maria Knox, the second Go Fund Me page is sitting at £1,945. Ms Knox wrote: “Looking to help one of my best friends whose family home has just been destroyed in a
“From what we know Colin has been an absolute hero and has saved every single one of the children from the top floor and also his partner.
"We are heartbroken and just want to try and bring them some help at such a difficult time.
“Any amount will be appreciated more than you can imagine.”
According to the fundraising pages dad, Colin, jumped out of the window of the three-story building to save his partner and children.