At the conclusion of a paternity action filed pursuant to this chapter in which paternity is established, the court shall also order the mother and father to supply their social security numbers to the registrar of vital records, in accordance with N.H. Rev. Stat. § 5-C:25, and to the department of health and human services.