digital traditional chinese medicine (tcm) uses machines to collect patients' medical data and then transmit the data to a computer. based on experts’ consensus and clinical guidelines, the computer helps doctors to diagnose a patient and give advice for treatment and prescriptions. after determining the treatment plan, the related system will produce tcm formula granules automatically. at the same time, the system will also provide a health management plan for the patients.