Immediately upon the restraint by the Sanity Board of any person apparently mentally ill, the Sanity Board shall in writing notify the judge of the district court of such restraint.