It late, but I think you got it wrong:
0x1822 will become 00001822-0000-1000-8000-00805f9b34fb
So to convert whatever service UUID, you just need to replace the string after 0000 and keep the rest:
input:
- Hex UUID: 0x<any_number>
output:
- UUID: 0000<any_number>-0000-1000-8000-00805f9b34fb