I suggest local government to connect the citizen data from other offices (population and civil registration office) to the medical record. This will improve the problem of justification of patient ID in insurance office. This also will improve the service at front office of hospital to the community.
Integration of data around hospital will also make everything become easier. This approach already exists in developed countries but is still growing in developing countries.
Connection between primary health care and secondary health care also improve referral of patients in two ways. Each party can monitor the referrals from primary health care to hospital and vice versa.
With connection between hospital and patients, the hospital can monitor the adherence of treatment given. The patients also can ask something to health care provider easily after returning from outpatient or inpatient treatment.