Most kids are dry by 5 years and most Drs would treat at about age 7 and above.
Please be aware that up to 5% of adults wet the bed. This is called nocturnal enuresis.
The bell and pad that you describe is considered to be the most effective intervention.
Her problem will not be related to her hip surgery - but it can run in families.