To guide the more reasonable and fair allocation of medical resources, to solve the problem of fee prices negotiated by various subjects in the medical and health system and patient payment, and to solve the problem of how to ensure the privacy, accuracy, consistency and traceability of data in the process of collecting patient information in each hospital, according to the operation process of a remote consultation service, a decentralized remote intelligent consultation blockchain model is proposed. The model uses the improved ant colony algorithm under a smart contract and studies the practicality of the improved ant colony algorithm on the multi-node remote consultation service simulation platform. According to the experimental analysis results, the improved ant colony algorithm can automatically execute and effectively match the target population under the smart contract.