That scenario was mentioned in another topic (Can a hospital admission be defined as after-care?).
The s117 duty doesn’t end upon every type of admission to hospital – only those listed in s117(1), which are s3, s37, s45A, s47, and s48. I’d put CTO recall in the same category as s2/informal, and CTO revocation in the same category as s3.