The patient SSN must exist on the Patient File (#2, ^DPT). If the SSN is shorter than 9 digits, it will be left filled with zeros.