Given the recovery time for hip surgery is six to eight weeks, with patients being able to resume light activities at three weeks, there is little doubt Philip will attend the Royal Wedding.
"I declare my consent to a contract of matrimony between my most dearly beloved grandson Prince Henry Charles Albert David of Wales and Rachel Meghan Markle, which I consent I am causing to be signified under the Great Seal and to be entered in the books of the Privy Council", the Queen, 91, said in a statement after a meeting at Buckingham Palace on Wednesday, March 14.
The duke stepped down from his public duties last summer, but on occasion does attend events with the Queen.
Prince Philip has spent much of his life in good health, but was treated for a blocked coronary artery in 2011 and a bladder infection a year later. At times blunt to the point of rudeness, Philip is Elizabeth's most important support.
He did not accompany Elizabeth to a church service on Maundy Thursday because of the hip problem, a royal source said last week.
Details about which of the duke's hip joints was replaced have not been released by Buckingham Palace.More news: Arsenal midfielder Henrikh Mkhitaryan: 'No easy teams left in Europa League'
When the couple announced their engagement previous year, there was surely no doubt Prince Philip would attend their wedding, but his current condition has led to much uncertainty.
King Edward VII's Hospital, in Marylebone, was founded in 1899 and has treated other senior members of the royal family, including the Queen, the Prince of Wales and the Duke of Cambridge.
Patients tend to feel back to normal after about three months.
According to the Daily Mail's Richard Kay, Philip accepted medical advice after being told his hip complaint could prevent him from participating in his "beloved" sport of carriage driving.
The late Queen Mother underwent two successful hip operations in the 1990s, the first at the age of 95 and the second when she was 97.