Green’s Dictionary of Slang

Job’s ward n.

also Job’s dock
[the suffering therein]

the venereal disease ward at St Bartholomew’s Hospital in London.

[UK]Mercurius Fumigosus 50 9-16 May 3: But if they stumble, then their riders fall / Into Jobs Ward, or Thomas' Hospitall.
[UK]Grose Classical Dict. of the Vulgar Tongue ms. additions .
[UK]Grose Classical Dict. of the Vulgar Tongue (2nd edn).

In phrases

in Job’s dock

in hospital being treated for a venereal disease; often as laid up in...

[UK]Grose Classical Dict. of the Vulgar Tongue ms. additions n.p.: Job’s Dock, he’s laid up in Job’s Dock, i.e. in a Salivation, the appartments in St Bartholemews Hospital for the foul patients is called Job’s Ward.
[UK]Grose Classical Dict. of the Vulgar Tongue (2nd, 3rd edn) n.p.: He is laid up in Job’s dock; i.e. in a salivation. The apartments for the foul or venereal patients in St. Bartholomew’s hospital, are called Job’s ward.
[UK]Lex. Balatronicum [as cit. 1788].
[UK]Egan Grose’s Classical Dict. of the Vulgar Tongue [as cit. 1788].
[US]Matsell Vocabulum 47: job’s dock An hospital. ‘The poor cove is in Job’s dock,’ the poor fellow is in the hospital.
[[UK]‘Walter’ My Secret Life (1966) VII 1443: That woman’s been laid up with the pox].
[Aus]C. Crowe Aus. Sl. Dict. 40: Job’s Dock, an hospital.