Green’s Dictionary of Slang

dick n.3

[abbr. SE declaration]

[mid–late 19C] an oath, a statement, an affidavit; thus to take one’s dick, to take one’s declaration.

In phrases

up to dick

[late 19C–1910s] up to standard, as required; thus in negative, unwell, sick, wretched.