The invention provides a
drug tracing information automatic acquisition method based on two-dimensional code recognition, and the method comprises the steps: obtaining
drug batch information and a subpackage
record, and generating a dynamic tracing
label which comprises a
batch number, subpackage time and a subpackage number; extracting a medication cycle and a
medicine validity period from the patient-level
traceability identifier, identifying a matching degree of non-uniform validity period distribution and time window overlapping according to the medication cycle and the
medicine validity period, and determining a medication cycle distribution scheme of the subpackaged
medicine; according to the medication cycle distribution scheme, the medication demand and the medicine flow data of the patient are recognized, a dynamic flow
record containing the identity of the patient, the subpackage
time deviation and the medication time is generated, and medicine flow tracking information after information
granularity is reduced is obtained; and according to the adverse reaction
traceability report, updating the dynamic
traceability label in the block chain, and generating optimized traceability data with reduced information
granularity.