Set the length of the number according to the number of patients discharged from the hospital every year, such as designing a six-digit number in an ordinary secondary hospital.
There can be eight or more tertiary hospitals.
According to the order of patients' admission, they are assigned by number by HIS.
Repeated hospitalization can be given according to the previous hospitalization number.