CN106294793A - Medicine prison code barcode data maps storage method - Google Patents

Medicine prison code barcode data maps storage method Download PDF

Info

Publication number
CN106294793A
CN106294793A CN201610669853.3A CN201610669853A CN106294793A CN 106294793 A CN106294793 A CN 106294793A CN 201610669853 A CN201610669853 A CN 201610669853A CN 106294793 A CN106294793 A CN 106294793A
Authority
CN
China
Prior art keywords
code
file
data
medicine prison
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.)
Granted
Application number
CN201610669853.3A
Other languages
Chinese (zh)
Other versions
CN106294793B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Medical Preparation Storing Or Oral Administration Devices (AREA)

Abstract

The present invention proposes a kind of medicine prison code barcode data and maps storage method, including: the data structure of medicine prison code is set, wherein, the data structure of medicine prison code includes: flag bit, product coding, coding sequence number and check code, wherein, medicine prison code includes serial number file and checkout code file, wherein, serial number file is used for storing coding sequence number, and coding sequence number includes status indicator file, status indicator file is for mark when the use state of prodrug prison code, and checkout code file is used for storing check code;Import medicine prison code data, form the data structure of medicine prison code according to medicine prison code data;According to the status indicator file in serial number file, in inquiry serial number file, whether corresponding coding sequence number can be used, if available, the most corresponding check code in checkout code file is the most identical with the check code prestored, if it is, back-checking successful result.The present invention can realize, to the real-time inspection gathering data validation, meeting high speed flowline and verifying requirement in real time.

Description

Medicine prison code barcode data maps storage method
Technical field
The present invention relates to medicine prison code technical field, map storage method particularly to a kind of medicine prison code barcode data.
Background technology
Existing medicine prison code check process is loaded down with trivial details, spends the time long, it is impossible to meet the requirement of high-speed production flowline.
Summary of the invention
The purpose of the present invention is intended at least solve one of described technological deficiency.
To this end, it is an object of the invention to propose a kind of medicine prison code barcode data to map storage method, it is possible to achieve to adopting The real-time inspection of collection data validation, meets high speed flowline and verifies requirement in real time.
2, to achieve these goals, embodiments of the invention provide a kind of medicine prison code barcode data to map storage method, Including
Following steps:
Step S1, arranges the data structure of medicine prison code, and wherein, the data structure of described medicine prison code includes: flag bit, product Coding, coding sequence number and check code, wherein, described medicine prison code includes serial number file and checkout code file, wherein, described sequence number literary composition Part is used for storing coding sequence number, and described coding sequence number includes that status indicator file, described status indicator file are used for identifying currently The use state of medicine prison code, described checkout code file is used for storing check code;
Step S2, imports medicine prison code data, forms the medicine in described step S1 according to described medicine prison code data and supervises the number of code According to structure;
Step S3, according to the status indicator file in described serial number file, coding sequence number corresponding in inquiry serial number file Whether can use, if available, the most corresponding check code in checkout code file is the most identical with the check code prestored, as Fruit is, then back-checking successful result.
Further, described serial number file and described checkout code file generate according to described medicine prison code variance data characteristic.
Further, described flag bit be 1 bit data, described production code member be 6 bit data, described coding serial number 9 figure place According to, described identifying code is 4 bit data.
Further, described status indicator file is 4 bit bit data, for representing with three kinds of states of prescribe medicine prison code: make By, unused and available state.
Further, described flag bit, product coding and coding sequence number are converted to address information, by this geological information and phase The check code answered is bound, and is mapped to check code according to this address information location, and verifies medicine prison code in real time.
Medicine prison code barcode data according to embodiments of the present invention maps storage method, is tied by the data of designer drug prison code Structure, utilizes serial number file location to map checkout code file, it is achieved the real-time verification to medicine prison code, solves product bar code in high fast-growing Producing the data validation real-time inspection problem that line gathers, legacy data storehouse verification mode can not meet high speed flowline and verify in real time Requirement.Use after the present invention, it is possible to achieve to gathering the real-time inspection of data validation, meet high speed flowline and verify in real time and want Ask, and the data check time can complete at about 1ms.
Aspect and advantage that the present invention adds will part be given in the following description, and part will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Accompanying drawing explanation
Above-mentioned and/or the additional aspect of the present invention and advantage are from combining the accompanying drawings below description to embodiment and will become Substantially with easy to understand, wherein:
Fig. 1 is the flow chart that the medicine prison code barcode data according to the embodiment of the present invention maps storage method;
Fig. 2 is the schematic diagram of the data structure of the medicine prison code according to the embodiment of the present invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of embodiment is shown in the drawings, the most identical Or similar label represents same or similar element or has the element of same or like function.Retouch below with reference to accompanying drawing The embodiment stated is exemplary, it is intended to is used for explaining the present invention, and is not considered as limiting the invention.
As it is shown in figure 1, the medicine prison code barcode data of the embodiment of the present invention maps storage method, comprise the steps:
Step S1, arranges the data structure of medicine prison code.
In one embodiment of the invention, the data structure of medicine prison code includes: flag bit, product coding, coding sequence number And check code.
As in figure 2 it is shown, flag bit is 1 bit data, production code member is 6 bit data, coding serial number 9 bit data, identifying code It is 4 bit data.
In yet another embodiment of the present invention, medicine prison code includes serial number file and checkout code file.Specifically, sequence number literary composition Part is used for storing coding sequence number.Checkout code file is used for storing check code.By medicine being supervised the serial number file in code and 4 bit checks Data separately, are set up checkout code file respectively, can be saved the resource of system.
1) serial number file
9 serial number file, heap(ed) capacity is 10^10, totally 999,999,999+1 sequence numbers.If each sequence 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 Biao Shi not use and unused state.But, medicine prison code exists after downloading from the Internet that the third state, i.e. sequence number exist simultaneously can With with unavailable two states, the most each medicine prison code sequence number exists and uses, do not uses (containing down state) and available three kinds of shapes State.But, a bit only can represent two states, and for representing upstate, the present invention needs each sequence number is carried out bit position Extension.Although two bit positions can represent 4 kinds of states, but in view of system upgrade and the convenience of programming after being easy to And serial number file is less, being 4bit by each sequence number Bits Expanding, can there are 16 kinds of states in the most each sequence number.
That is, coding sequence number includes status indicator file, and status indicator file supervises the use state of code for mark when prodrug. Wherein, status indicator file is 4 bit bit data, for representing with three kinds of states of prescribe medicine prison code: use, do not use and can Use state.
Serial number file correspondence byte number is 4* (999,999,999+1)/8=500,000,000byte (about 500MB) storage Space.
Wherein, serial number file data can be expressed as follows table 1:
Table 1
2) checkout code file
Owing to the checking algorithm of medicine prison code is not disclosed, therefore 4 bit check codes can only be preserved, set up check code literary composition Part.Wherein, Word is 2byte data, can represent that maximum integer is that 0000-FFFF adds up to 65536 data.4 bit check codes A word can be used to represent, then adding up to has 999,999,999+1 check codes, and each check code accounts for 2byte storage sky 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, serial number file and checkout code file are raw according to medicine prison code variance data characteristic Become.
The data file total that each product coding is corresponding takies 2.5GB memory space, and currently a popular hard-disk capacity is 300G-500G, the most at least can preserve the verification file data information of 100 kinds.
Step S2, imports medicine prison code data, according to the data structure of the medicine prison code in medicine prison code data forming step S1.
Specifically, medicine prison code data are imported from data base or file, by serial number file correspondence sequence number position 4bit Data Identification For upstate, and the check code of corresponding sequence number position is saved in checkout code file.
Step S3, according to the status indicator file in serial number file, whether coding sequence number corresponding in inquiry serial number file Available, if available, the most corresponding check code in checkout code file is the most identical with the check code prestored, if it is, Then back-checking successful result.
Specifically, flag bit, product coding and coding sequence number are converted to address information, by this geological information with corresponding Check code is bound, and is mapped to check code according to this address information location, it is judged that the corresponding check code in checkout code file The most identical with the check code prestored, if it is, back-checking successful result, complete the real-time verification to medicine prison code.
Further, while in inquiry serial number file, whether corresponding coding sequence number can be used, it is possible to by sequence number from verification Code file obtains whether checkout code file can be used.
Medicine prison code barcode data according to embodiments of the present invention maps storage method, is tied by the data of designer drug prison code Structure, utilizes serial number file location to map checkout code file, it is achieved the real-time verification to medicine prison code, solves product bar code in high fast-growing Producing the data validation real-time inspection problem that line gathers, legacy data storehouse verification mode can not meet high speed flowline and verify in real time Requirement.Use after the present invention, it is possible to achieve to gathering the real-time inspection of data validation, meet high speed flowline and verify in real time and want Ask, and the data check time can complete at about 1ms.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " specifically show Example " or the description of " some examples " etc. means to combine this embodiment or example describes specific features, structure, material or spy Point is contained at least one embodiment or the example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.And, the specific features of description, structure, material or feature can be any One or more embodiments or example in combine in an appropriate manner.
Although above it has been shown and described that embodiments of the invention, it is to be understood that above-described embodiment is example Property, it is impossible to be interpreted as limitation of the present invention, those of ordinary skill in the art is without departing from the principle of the present invention and objective In the case of above-described embodiment can be changed within the scope of the invention, revise, replace and modification.The scope of the present invention Limited by claims and equivalent thereof.

Claims (5)

1. a medicine prison code barcode data maps storage method, it is characterised in that comprise the steps:
Step S1, arranges the data structure of medicine prison code, and wherein, the data structure of described medicine prison code includes: flag bit, product are compiled Code, coding sequence number and check code, wherein, described medicine prison code includes serial number file and checkout code file, wherein, described serial number file For storing coding sequence number, described coding sequence number includes status indicator file, and described status indicator file works as prodrug for mark The use state of prison code, described checkout code file is used for storing check code;
Step S2, imports medicine prison code data, and the data forming the medicine prison code in described step S1 according to described medicine prison code data are tied Structure;
Step S3, according to the status indicator file in described serial number file, whether coding sequence number corresponding in inquiry serial number file Available, if available, the most corresponding check code in checkout code file is the most identical with the check code prestored, if it is, Then back-checking successful result.
2. medicine prison code barcode data as claimed in claim 1 maps storage method, it is characterised in that described serial number file and institute State checkout code file to generate according to described medicine prison code variance data characteristic.
3. medicine prison code barcode data as claimed in claim 1 maps storage method, it is characterised in that described flag bit is 1 Data, described production code member are 6 bit data, described coding serial number 9 bit data, and described identifying code is 4 bit data.
4. medicine prison code barcode data as claimed in claim 3 maps storage method, it is characterised in that described status indicator file It is 4 bit bit data, for representing with three kinds of states of prescribe medicine prison code: use, unused and available state.
5. the medicine prison code barcode data stated such as claim 1 maps storage method, it is characterised in that by described flag bit, product Coding and coding sequence number are converted to address information, are bound with corresponding check code by this geological information, believe according to this address Breath location is mapped to check code, and verifies medicine prison code in real time.
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 true CN106294793A (en) 2017-01-04
CN106294793B 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030234718A1 (en) * 2002-06-24 2003-12-25 Hiromichi Fujisawa Method and system for identifying and managing RF-ID attached objects
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030234718A1 (en) * 2002-06-24 2003-12-25 Hiromichi Fujisawa Method and system for identifying and managing RF-ID attached objects
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的药品库存实时管理系统的设计与实现", 《现代电子技术》 *

Also Published As

Publication number Publication date
CN106294793B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN105760184B (en) A kind of method and apparatus of charging assembly
CN104934062B (en) Nonvolatile memory and wiring method
WO2018161760A8 (en) Blockchain data storage system and method
WO2010031698A3 (en) Method for storing data, computer programme product, id token and computer system
CN103428080B (en) A kind of data unpack and organize bag method
WO2010045331A3 (en) Method and apparatus for gathering and organizing information pertaining to an entity
WO2008065265A3 (en) Method and device for customising a portable electronic entity
WO2004061673A3 (en) Method and apparatus for block oriented memory management provided in smart card controllers
CN106547572A (en) A kind of program file control methods and device
CN103425632A (en) Serializing method, device and processor
CN110113393A (en) A kind of information push method, device, electronic equipment and medium
CN104205089A (en) Stream recognition and filtering
CN103563255A (en) Method for compression and real-time decompression of executable code
CN103440198A (en) Method for calibrating form
WO2008026133A3 (en) Method and device for binding a non-volatile storage device with a consumer product
CN105897689A (en) Embedded system and method thereof
CN103377251B (en) File comparison method and device for HDFS (Hadoop Distributed File System)
CN106294793A (en) Medicine prison code barcode data maps storage method
CN104077374B (en) A kind of method and device for realizing the storage of IP disk files
CN106663050A (en) Differential Data Creating System, Data Updating System, And Differential Data Creating Method
CN104572812B (en) A kind of history data store and indexing means
US20080304330A1 (en) Systems, methods, and apparatuses for transmitting data mask bits to a memory device
CN107392745B (en) Reconciliation data fragmentation processing method
CN108241705A (en) A kind of data insertion method and device
CN103177218B (en) A kind of compression encryption method of the Flow Record based on electronic cash register

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