This "juez", I think, would be the chief registrar (in the UK) or the chief of the Clerk of Courts Office (in the USA).
He/she normally doesn't take the data from the citizens; sometimes they just sign either the birth/marriage/death certificate, or the book where all registry entries are kept.