I've been looking for Agnes Affleck (on censuses and BMDs)since I found her name on her daughter's death cert a few days ago. The only one that keeps popping back up is this one on the 1861 in Bo'ness. Others are already married or too young/old.
An Agnes Smith Affleck, infant teacher in Bo'ness, aged 26.
By 1871 she is living with her brother in St Cuthbert:
12 Claremont Place, North Side, St Cuthbert
James Ormiston Affleck, unm, 30, MD (Edinburgh), FRCS, b. Midlothian
Agnes Smith Affleck, unm, 36, b. do
...and the same place in 1881 - both down as b. Edinburgh. By 1891 they are at 38 Heriot Row, Edinburgh, James described as Physician (Reg).
In 1851 she appears to be a visitor at 38 Brunswick Street, St Cuthbert in the household of Agnes Cumming. She is aged 16 and described as a Female Teacher, b. Edinburgh.
Going back to the 1841, this looks like the family:
40 Brunswick St., St Cuthbert
John Affleck, 45, Wright, b. Scotland
Agnes, 35
Robert, 10
Agnes, 7
William, 7
James, 10 mths
Agnes, snr, and children born Midlothian
This might well not be her but a story could be developed that Agnes, unmarried teacher in Bo'ness became pregnant and her brother arranged for her to be admittted to the Royal Maternity Hospital for the birth. She then returned to act as housekeeper to her brother and the baby was left to be boarded out.
I can't find much on the Royal Maternity Hospital but I knew of it from when I worked with obstetric records in Aberdeen. It would be worth trying to track down some info on it's history. (
http://www.nationalarchives.gov.uk/hospitalrecords/details.asp?id=867 and
http://canmore.rcahms.gov.uk/en/site/122946/details/edinburgh+lauriston+place+simpson+memorial+maternity+hospital/)
Gadget
Added - birth/bapt 11 June 1834, St Cuthbert parents - John Affleck and Agnes m.s. Smith
https://familysearch.org/pal:/MM9.1.1/XTNX-K61