CN106294793B - Medicine supervises code barcode data mapping storage method - Google Patents

Medicine supervises code barcode data mapping storage method Download PDF

Info

Publication number
CN106294793B
CN106294793B CN201610669853.3A CN201610669853A CN106294793B CN 106294793 B CN106294793 B CN 106294793B CN 201610669853 A CN201610669853 A CN 201610669853A CN 106294793 B CN106294793 B CN 106294793B
Authority
CN
China
Prior art keywords
code
medicine
file
data
serial number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610669853.3A
Other languages
Chinese (zh)
Other versions
CN106294793A (en
Inventor
鲍卫国
步飞跃
李勃
戴振锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING RUIDE CHENGZHANG SCIENCE AND TECHNOLOGY Co Ltd
Original Assignee
BEIJING RUIDE CHENGZHANG SCIENCE AND TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING RUIDE CHENGZHANG SCIENCE AND TECHNOLOGY Co Ltd filed Critical BEIJING RUIDE CHENGZHANG SCIENCE AND TECHNOLOGY Co Ltd
Priority to CN201610669853.3A priority Critical patent/CN106294793B/en
Publication of CN106294793A publication Critical patent/CN106294793A/en
Application granted granted Critical
Publication of CN106294793B publication Critical patent/CN106294793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Abstract

The invention proposes a kind of medicines to supervise code barcode data mapping storage method, it include: the data structure that medicine is set and supervises code, wherein, the data structure of medicine prison code includes: flag bit, product coding, encodes serial number and check code, wherein, it includes serial number file and checkout code file that medicine, which supervises code, wherein, for serial number file for storing coding serial number, coding serial number includes status indicator file, status indicator file is used to identify the use state when prodrug prison code, and checkout code file is for storing check code;It imports medicine and supervises code data, the data structure that code data form medicine prison code is supervised according to medicine;According to the status indicator file in serial number file, inquire whether corresponding coding serial number in serial number file can be used, whether the check code if available in further corresponding checkout code file and the check code prestored are identical, if it is, back-checking successful result.The present invention may be implemented to meet high speed flowline to the real-time inspection of acquisition data validation and verify requirement in real time.

Description

Medicine supervises code barcode data mapping storage method
Technical field
The present invention relates to medicines to supervise code technical field, in particular to a kind of medicine supervises code barcode data mapping storage method.
Background technique
Existing medicine prison code check process is cumbersome, spends the time long, is not able to satisfy the requirement of high-speed production flowline.
Summary of the invention
The purpose of the present invention aims to solve at least one of described technological deficiency.
For this purpose, it is an object of the invention to propose a kind of medicine prison code barcode data mapping storage method, may be implemented to adopting The real-time inspection for collecting data validation, meets high speed flowline and verifies requirement in real time.
To achieve the goals above, the embodiment of the present invention provides a kind of medicine prison code barcode data mapping storage method, packet It includes
Following steps:
Step S1, setting medicine supervise the data structure of code, wherein the data structure of the medicine prison code includes: flag bit, product Coding, coding serial number and check code, wherein the medicine prison code includes status indicator file and checkout code file, wherein the shape State mark file is used to identify the use state when prodrug prison code, and the checkout code file is for storing check code;
Step S2 imports medicine and supervises code data, supervises the number that code data form the prison code of the medicine in the step S1 according to the medicine According to structure;The flag bit, product coding and coding serial number are converted into address information, by the address information and corresponding verification Code is bound, and is mapped to check code according to address information positioning, and verified in real time to medicine prison code;
Step S3 is inquired corresponding in status indicator file according to the status indicator file in the status indicator file Whether coding serial number can be used, if available further the check code in corresponding checkout code file and the check code that prestores whether It is identical, if it is, back-checking successful result.
Further, the status indicator file and the checkout code file are raw according to medicine prison code variance data characteristic At.
Further, the flag bit is 1 data, the product coding is 6 data, 9 digit of coding serial number According to identifying code is 4 data.
Further, the status indicator file is 4 bit bit data, for indicating with three kinds of states of prison code of putting in poison: making With, unused and available state.
Medicine according to an embodiment of the present invention supervises code barcode data mapping storage method, and the data knot of code is supervised by designer drug Structure realizes the real-time verification to medicine prison code, solves product bar code and asks in the data validation real-time inspection that high-speed production lines acquire Topic, legacy data library verification mode are not able to satisfy high velocity stream journey line and verify requirement in real time.After applying the present invention, it may be implemented to adopting The real-time inspection for collecting data validation meets high speed flowline and verifies requirement in real time, and the data check time can be on the left side 1ms Right completion.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart that code barcode data mapping storage method is supervised according to the medicine of the embodiment of the present invention;
Fig. 2 is the schematic diagram that the data structure of code is supervised according to the medicine of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical from beginning to end Or similar label indicates same or similar element or element with the same or similar functions.It is retouched below with reference to attached drawing The embodiment stated is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
As shown in Figure 1, the medicine of the embodiment of the present invention supervises code barcode data mapping storage method, include the following steps:
Step S1, setting medicine supervise the data structure of code.
In one embodiment of the invention, the data structure of medicine prison code includes: flag bit, product coding, coding serial number And check code.
As shown in Fig. 2, flag bit is 1 data, product coding is 6 data, coding 9 data of serial number, identifying code For 4 data.
In yet another embodiment of the present invention, medicine prison code includes status indicator file and checkout code file.Specifically, shape State identifies file for storing coding serial number.Checkout code file is for storing check code.By the way that medicine to be supervised to the status indicator in code File and 4 bit check data separate, and establish checkout code file respectively, can save the resource of system.
1) status indicator file
9 coding serial numbers, maximum capacity 10^10, totally 999,999,999+1 serial numbers.If each serial number accounts for 1bit Position then needs (999,999,999+1)/8=125,000,000byte memory space.Each bit has 0,1 two states, can divide It Biao Shi not use and unused state.But medicine prison code download from the Internet after there are the third state, i.e., exist simultaneously can for serial number With with unavailable two states, then each medicine prison code serial number, which exists, uses, is not used and (contains down state) tri- kinds of shapes of Ji Keyong State.However, a bit can only indicate two states, to indicate available mode, the present invention needs to carry out bit to each serial number Extension.Although two bit can indicate 4 kinds of states, in view of the convenience convenient for later system upgrade and programming And status indicator file is smaller, is 4bit by each serial number Bits Expanding, then each serial number may exist 16 kinds of states.
That is, coding serial number includes status indicator file, status indicator file is used to identify the use state when prodrug prison code. Wherein, status indicator file be 4 bit bit data, for indicate with put in poison prison code three kinds of states: use, be not used and can Use state.
It is 4* (999,999,999+1)/8=500,000,000byte (about 500MB) that status indicator file, which corresponds to byte number, Memory space.
Wherein, status indicator file data can be expressed as follows table 1:
Table 1
2) checkout code file
Since the checking algorithm of medicine prison code is undisclosed, 4 bit check codes can only be saved, establish check code text Part.Wherein, Word is 2byte data, can indicate that maximum integer is that 0000- FFFF adds up to 65536 data.4 bit check codes A word can be used to indicate, then adding up to there are 999,999,999+1 check codes, and it is empty that each check code accounts for 2byte storage Between then need 2* (999,999,999+1)=2,000,000,000byte (about 2GB) memory space.
Wherein, checkout code file can be expressed as follows table 2:
Table 2
In one embodiment of the invention, status indicator file and checkout code file are according to medicine prison code variance data characteristic It generates.
The corresponding data file of each product coding is total to occupy 2.5GB memory space, and currently a popular hard-disk capacity is 300G-500G then can at least save the verification file data information of 100 kinds.
Step S2 imports medicine and supervises code data, and the data structure of the medicine prison code in code data forming step S1 is supervised according to medicine.
Specifically, medicine being imported from database or file and supervising code data, status indicator file is corresponded into serial number position 4bit data It is identified as available mode, and the check code of corresponding serial number position is saved in checkout code file.
Step S3 inquires corresponding coding in status indicator file according to the status indicator file in status indicator file Whether serial number can be used, if available further the check code in corresponding checkout code file and the check code that prestores whether phase Together, if it is, back-checking successful result.
Specifically, by flag bit, product coding and coding serial number be converted to address information, by the geological information with it is corresponding Check code is bound, and is mapped to check code according to address information positioning, is judged the check code in corresponding checkout code file It is whether identical as the check code that prestores, if it is, back-checking successful result, completes the real-time verification to medicine prison code.
Further, inquire whether corresponding coding serial number in status indicator file can be used.
Medicine according to an embodiment of the present invention supervises code barcode data mapping storage method, and the data knot of code is supervised by designer drug Structure realizes the real-time verification to medicine prison code, solves product bar code and asks in the data validation real-time inspection that high-speed production lines acquire Topic, legacy data library verification mode are not able to satisfy high velocity stream journey line and verify requirement in real time.After applying the present invention, it may be implemented to adopting The real-time inspection for collecting data validation meets high speed flowline and verifies requirement in real time, and the data check time can be on the left side 1ms Right completion.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art are not departing from the principle of the present invention and objective In the case where can make changes, modifications, alterations, and variations to the above described embodiments within the scope of the invention.The scope of the present invention By appended claims and its equivalent limit.

Claims (4)

1. a kind of medicine supervises code barcode data mapping storage method, which comprises the steps of:
Step S1, setting medicine supervise the data structure of code, wherein the data structure of the medicine prison code includes: flag bit, product volume Code, coding serial number and check code, wherein the medicine prison code includes status indicator file and checkout code file, wherein the state Mark file is used to identify the use state when prodrug prison code, and the checkout code file is for storing check code;
Step S2 imports medicine and supervises code data, supervises the data knot that code data form the prison code of the medicine in the step S1 according to the medicine Structure;The flag bit, product coding and coding serial number are converted into address information, by the address information and corresponding check code into Row binding is mapped to check code according to address information positioning, and is verified in real time to medicine prison code;
Step S3 inquires corresponding coding serial number in status indicator file according to the status indicator in the status indicator file Whether can be used, further judge if available check code in corresponding checkout code file and the check code that prestores whether phase Together, if it is, back-checking successful result.
2. medicine as described in claim 1 supervises code barcode data mapping storage method, which is characterized in that the status indicator file Code variance data characteristic is supervised according to the medicine with the checkout code file to generate.
3. medicine as described in claim 1 supervises code barcode data mapping storage method, which is characterized in that the flag bit is 1 Data, the product coding are 6 data, described 9 data of coding serial number, and the check code is 4 data.
4. medicine as claimed in claim 3 supervises code barcode data mapping storage method, which is characterized in that the status indicator is 4 Bit data, for indicating with three kinds of states of prison code of putting in poison: using, unused and available state.
CN201610669853.3A 2016-08-15 2016-08-15 Medicine supervises code barcode data mapping storage method Active CN106294793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610669853.3A CN106294793B (en) 2016-08-15 2016-08-15 Medicine supervises code barcode data mapping storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610669853.3A CN106294793B (en) 2016-08-15 2016-08-15 Medicine supervises code barcode data mapping storage method

Publications (2)

Publication Number Publication Date
CN106294793A CN106294793A (en) 2017-01-04
CN106294793B true CN106294793B (en) 2019-09-17

Family

ID=57670452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610669853.3A Active CN106294793B (en) 2016-08-15 2016-08-15 Medicine supervises code barcode data mapping storage method

Country Status (1)

Country Link
CN (1) CN106294793B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204586121U (en) * 2015-05-05 2015-08-26 许泽人 Endowed equipment
CN204614008U (en) * 2015-02-16 2015-09-02 浙江康恩贝制药股份有限公司 Integrated information reviews the composite label management system with medication guide

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4062985B2 (en) * 2002-06-24 2008-03-19 株式会社日立製作所 Electronic tag unique number management method and management server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204614008U (en) * 2015-02-16 2015-09-02 浙江康恩贝制药股份有限公司 Integrated information reviews the composite label management system with medication guide
CN204586121U (en) * 2015-05-05 2015-08-26 许泽人 Endowed equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于ZigBee的药品库存实时管理系统的设计与实现;刘纪红等;《现代电子技术》;20120815;第35卷(第16期);全文
药品电子监管赋码平台的研究与应用;侯可勃;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140815(第8期);全文

Also Published As

Publication number Publication date
CN106294793A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN103473272B (en) Data processing method, apparatus and system
CN105095237B (en) Method and apparatus for the pattern for generating non-relational database
US20130185484A1 (en) File programming method and associated device for nand flash
CN105843819B (en) Data export method and device
WO2008042283A3 (en) Write-in-place within a write-anywhere filesystem
US8868793B2 (en) SAS expander system and method for dynamically allocating SAS addresses to SAS expander devices
CN106547572A (en) A kind of program file control methods and device
CN103927305B (en) It is a kind of that the method and apparatus being controlled is overflowed to internal memory
CN109901888B (en) Design method of automatic configuration file generation tool
CN103714004A (en) JVM online memory leak analysis method and system
CN106020837A (en) Method and system for loading set top box drive
JP2012074026A5 (en)
CN109388614A (en) A kind of method, system and the equipment of catalogue file number quota
CN106294793B (en) Medicine supervises code barcode data mapping storage method
CN104077374B (en) A kind of method and device for realizing the storage of IP disk files
CN104375871B (en) A kind of method and apparatus based on the start of eMMC acceleration systems
CN103685471B (en) Method and system for updating software client sides in monopoly mode
CN105139890B (en) A kind of information processing method and solid state hard disk
CN106776388A (en) Server system and read method
CN102411575A (en) Method and system for displaying webpage, and server
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN104461959B (en) Method and device for distinguishing NOR Flash from NAND Flash
CN105939218A (en) Statistical method and device for network traffic
CN109710187A (en) Read command accelerated method, device, computer equipment and the storage medium of NVMe SSD main control chip
CN110187872A (en) A kind of BIOS development approach, system and electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant