CN112035477B - Sequence number conversion method and device for medical insurance text and computer equipment - Google Patents

Sequence number conversion method and device for medical insurance text and computer equipment Download PDF

Info

Publication number
CN112035477B
CN112035477B CN202010897819.8A CN202010897819A CN112035477B CN 112035477 B CN112035477 B CN 112035477B CN 202010897819 A CN202010897819 A CN 202010897819A CN 112035477 B CN112035477 B CN 112035477B
Authority
CN
China
Prior art keywords
medical insurance
numbers
text
target system
decimal
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
CN202010897819.8A
Other languages
Chinese (zh)
Other versions
CN112035477A (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.)
Shenzhen Ping An Medical Health Technology Service Co Ltd
Original Assignee
Shenzhen Ping An Medical Health Technology Service 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 Shenzhen Ping An Medical Health Technology Service Co Ltd filed Critical Shenzhen Ping An Medical Health Technology Service Co Ltd
Priority to CN202010897819.8A priority Critical patent/CN112035477B/en
Publication of CN112035477A publication Critical patent/CN112035477A/en
Application granted granted Critical
Publication of CN112035477B publication Critical patent/CN112035477B/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The application relates to the technical field of intelligent medical treatment and provides a serial number conversion method, a serial number conversion device, computer equipment and a storage medium of a medical insurance text, wherein the method comprises the steps of obtaining the medical insurance text in the medical treatment field and identifying the serial number stored in the medical insurance text; obtaining a binary number for converting the serial number into a target binary number; wherein the target system number is larger than the serial number system number; searching a corresponding binary value range in ASCII codes according to the binary number of the target system; and carrying out digital system conversion on the serial number according to the system value range to obtain the conversion character of the target system, and obtaining the corresponding unique code. The serial number with large data volume and longer length is converted into the unique code with the specified bit number, so that the repetition of the data is avoided when the data volume is large. The application can be applied to the intelligent medical field to promote the construction of intelligent cities.

Description

Sequence number conversion method and device for medical insurance text and computer equipment
Technical Field
The application relates to the technical field of intelligent medical treatment, in particular to a serial number conversion method and device of medical insurance texts, computer equipment and storage media.
Background
The serial numbers of the medical insurance texts are generated in the MaxCompute (big data computing service) according to the mode of '6-bit overall region coding + time (year, month, day, time, second) +packet number + 8-bit random code', so that the batch processing of millions of data can be met at present, a large number of repeated serial numbers can appear after tens of millions of data, and the supported data volume is small.
Disclosure of Invention
The main purpose of the application is to provide a serial number conversion method, a serial number conversion device, computer equipment and a storage medium of medical insurance texts, which aim to overcome the defect that repeated serial numbers appear when the current data volume is large.
In order to achieve the above purpose, the present application provides a serial number conversion method of medical insurance texts, including the following steps:
acquiring a medical insurance text in the medical field, and identifying a serial number stored in the medical insurance text; wherein the serial number is decimal;
searching a target maximum decimal number closest to the number of the serial number in the maximum decimal number of a database, wherein the target maximum decimal number is larger than the number of the serial number; wherein, the database stores the maximum decimal numbers expressed by characters with specified digits under different decimal systems;
taking a system corresponding to the target maximum decimal number as a target system, and acquiring the system number of the target system; wherein the target system number is larger than the serial number system number;
according to the binary digits of the target system, searching a corresponding binary value range in ASCII codes;
performing digital system conversion on the serial number according to the value range to obtain a conversion character of the target system, and judging whether the bit number of the conversion character of the target system is larger than a designated bit number;
if the bit number of the conversion character of the target system is equal to the specified bit number, the conversion character of the target system is used as a unique code; and if the bit number of the conversion character of the target system is smaller than the specified bit number, adding a digital zero in front of the conversion character of the target system to obtain a unique code of the specified bit number.
Further, before the step of searching the maximum decimal number of the database for the target maximum decimal number closest to the number of the serial number, the method includes:
acquiring the maximum decimal numbers which can be expressed under different decimal numbers in characters with specified digits;
storing the corresponding relation between different decimal numbers and the maximum decimal numbers expressed under the different decimal numbers under the specified digits in a database.
Further, if the number of bits of the converted character of the target system is equal to the specified number of bits, the converted character of the target system is used as a unique code; if the number of bits of the converted character of the target system is smaller than the specified number of bits, adding a digital zero in front of the converted character of the target system to obtain a unique code of the specified number of bits, comprising:
adding a coding field in the medical insurance text, assigning the unique code to the coding field to obtain a medical insurance modification text, and taking the unique code as a file name of the medical insurance modification text;
carrying out hash calculation on the medical insurance modification text to obtain a corresponding hash value;
and storing the medical insurance modification text, the hash value and the unique code in a database, and establishing a mapping relation between the unique code, the hash value and the medical insurance modification text.
Further, before the step of searching the maximum decimal number of the database for the target maximum decimal number closest to the number of the serial number, the method includes:
dividing the sequence number according to a preset rule to obtain three sequence segments, namely a first sequence segment, a second sequence segment and a third sequence segment;
acquiring gender information of a medical insurance user recorded in the medical insurance text, and searching a first number corresponding to the gender information in a database;
acquiring the age of a medical insurance user recorded in the medical insurance text, and acquiring a second number corresponding to the age;
splicing the first number and the second number to obtain spliced numbers, and judging whether the spliced numbers are identical to the first sequence segment or not;
if the spliced number is the same as the first sequence segment, acquiring the total number of characters of the text except the serial number in the medical insurance text, and judging whether the number of the total number of characters is the same as the second sequence segment;
if the number of the total character number is the same as the second sequence segment, searching whether a target sequence number comprising the third sequence segment exists in sequence numbers stored in a database;
if so, judging whether the medical insurance text corresponding to the target sequence number is the same as the medical insurance text corresponding to the third sequence segment;
if the number is the same, judging that the serial number is valid, entering the step of searching a target maximum decimal number closest to the number of the serial number in the maximum decimal number in the database; and if the serial numbers are different, judging that the serial numbers are invalid, and prohibiting the step of searching a target maximum decimal number closest to the number of the serial numbers from the maximum decimal number in the database.
Further, the step of dividing the sequence number according to a preset rule to obtain three sequence segments, which are a first sequence segment, a second sequence segment and a third sequence segment, includes:
acquiring the type of the medical insurance text, and matching corresponding identification numbers in a database according to the type of the medical insurance text; the corresponding relation between the type of each medical insurance text and the identification number is preset in the database;
detecting whether the serial number comprises the identification number or not;
if so, acquiring the number comprising the identification number;
if the number of the identification numbers is two, the two identification numbers are respectively used as the dividing points to divide the serial numbers, so that the three sequence sections are obtained, and none of the three sequence sections comprises the identification numbers.
Further, after the step of obtaining the number including the identification number if the number includes:
if the number of the identification numbers is greater than two, randomly selecting two identification numbers from the identification numbers to be used as dividing points to divide the serial number respectively, so as to obtain three pre-divided sequence segments, wherein each pre-divided sequence segment does not comprise the dividing point;
the lengths of the three pre-segmentation sequence segments are obtained, and the length ratio is calculated;
judging whether the length ratio is a preset ratio or not;
if yes, the three pre-divided sequence segments are used as three sequence segments.
The application also provides a serial number conversion device of medical insurance texts, which comprises:
the first acquisition unit is used for acquiring medical insurance texts in the medical field and identifying serial numbers stored in the medical insurance texts; wherein the serial number is decimal;
the first searching unit is used for searching a target maximum decimal number closest to the number of the serial number in the maximum decimal numbers of the database, wherein the target maximum decimal number is larger than the number of the serial number; wherein, the database stores the maximum decimal numbers expressed by characters with specified digits under different decimal systems;
the second acquisition unit is used for taking a system corresponding to the target maximum decimal number as a target system and acquiring the binary number of the target system; wherein the target system number is larger than the serial number system number;
the second searching unit is used for searching a corresponding binary value range in the ASCII code according to the binary number of the target system;
the conversion unit is used for carrying out digital system conversion on the serial number according to the system value range to obtain a conversion character of the target system, and judging whether the number of bits of the conversion character of the target system is larger than a specified number of bits;
the coding unit is used for taking the conversion character of the target system as a unique code if the bit number of the conversion character of the target system is equal to the designated bit number; and if the bit number of the conversion character of the target system is smaller than the specified bit number, adding a digital zero in front of the conversion character of the target system to obtain a unique code of the specified bit number.
Further, the apparatus further comprises:
a third obtaining unit, configured to obtain a maximum decimal number capable of being expressed in different decimal numbers from among characters with specified digits;
and the storage unit is used for storing the corresponding relation between different decimal numbers and the maximum decimal number expressed under the different decimal numbers under the specified digit number in the database.
The present application also provides a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of any of the methods described above when the computer program is executed.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the above.
The method, the device, the computer equipment and the storage medium for converting the serial numbers of the medical insurance texts comprise the steps of obtaining the medical insurance texts in the medical field and identifying the serial numbers stored in the medical insurance texts; obtaining a binary number for converting the serial number into a target binary number; wherein the target system number is larger than the serial number system number; searching a corresponding binary value range in ASCII codes according to the binary number of the target system; and carrying out digital system conversion on the serial number according to the system value range to obtain the conversion character of the target system, and obtaining the corresponding unique code. The serial number with large data volume and longer length is converted into the unique code with the specified bit number, so that the repetition of the data is avoided when the data volume is large.
Drawings
FIG. 1 is a schematic diagram of a sequence number conversion method of a Chinese medical insurance text according to an embodiment of the present application;
FIG. 2 is a block diagram of a serial number conversion device of a Chinese medical insurance text according to an embodiment of the present application;
fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, in one embodiment of the present application, a serial number conversion method of medical insurance text is provided, including the following steps:
step S1, acquiring a medical insurance text in the medical field, and identifying a serial number stored in the medical insurance text; wherein the serial number is decimal;
step S2, searching a target maximum decimal number closest to the number of the serial number in the maximum decimal number of the database, wherein the target maximum decimal number is larger than the number of the serial number; wherein, the database stores the maximum decimal numbers expressed by characters with specified digits under different decimal systems;
step S3, taking a system corresponding to the target maximum decimal number as a target system, and acquiring the system number of the target system; wherein the target system number is larger than the serial number system number;
step S4, searching a corresponding binary value range in ASCII codes according to the binary number of the target system;
step S5, carrying out digital system conversion on the serial number according to the system value range to obtain a conversion character of the target system, and judging whether the number of bits of the conversion character of the target system is larger than a specified number of bits;
step S6, if the bit number of the conversion character of the target system is equal to the designated bit number, taking the conversion character of the target system as a unique code; and if the bit number of the conversion character of the target system is smaller than the specified bit number, adding a digital zero in front of the conversion character of the target system to obtain a unique code of the specified bit number.
In this embodiment, the method is used to convert the longer decimal serial number in the medical insurance data into a unique code of a specified number of digits in a specified system. For example, a decimal serial number of a twelve-digit number is converted into a twenty-seven unique code of an eight-digit number. So that a shorter unique code is used instead of a longer sequence number, facilitating the expression of a larger sequence number in a limited number of bits. The application can be applied to the intelligent medical field to promote the construction of intelligent cities.
As described above in step S1, in the medical field there are a large number of medical insurance texts, each having a corresponding serial number and generally numbered sequentially. The serial number is decimal number, and the number of digits of the serial number is long (for example, greater than eight digits) due to huge data of the medical insurance text, so that the length (for example, eight digits) of the serial number can be limited when the medical insurance text is stored. Therefore, the serial number needs to be digitally processed to shorten the length of the serial number.
As described in the above steps S2-S3, the target binary unit of the above binary digit finger, for example, the decimal binary digit is 10 and the twenty-seventh binary digit is 27.
In this embodiment, in order to avoid that the sequence number is too large, resulting in that the converted character obtained by performing the subsequent digital system conversion exceeds the specified number of bits, a suitable target system should be selected. When the target system is obtained, the serial number is only compared with the maximum decimal number stored in the database, the maximum decimal number which is larger than the serial number and is closest to the serial number is found out to be used as the target maximum decimal number, and then the corresponding target system is obtained.
In other embodiments, the user may also specify the above-mentioned digits, i.e. the target digits into which the above-mentioned serial number is converted; or may be a binary number assigned according to the length of the serial number. Typically, the specified number is greater than 10, for example, in one embodiment, the specified number is 27.
As described in step S4 above, in the ASCII code, a range of values corresponding to the digits is found, for example, twenty-seven digits are targeted, 27 digits are mapped to a- [, i.e., a represents decimal digit 0, b represents decimal 1, and [ represents decimal 26.
As described in step S5, according to the range of the binary values, the sequence number is subjected to digital binary conversion to obtain a corresponding character of the target binary system, and in order to ensure that the number of bits of the unique code is not greater than a specified number of bits (e.g., eight bits) when the character is used as the unique code, it is necessary to determine whether the number of bits of the converted character of the target binary system is greater than the specified number of bits.
As described in the above step S6, if the number of bits of the converted character of the target system is equal to the specified number of bits, directly using the converted character of the target system as a unique code; if the conversion result shows that the conversion character of the designated system is not less than the designated bit number, zero is added in front of the conversion character. Wherein the unique code is used as a new code of the medical insurance text.
Specifically, when a decimal serial number is 28, it is subjected to digital conversion calculation, and the corresponding output conversion character is: "BB", which is less than eight digits, is zero-padded before "BB" and the unique code obtained is "000000BB".
For another example, for a decimal serial number 9999999999, the decimal serial number is subjected to digital conversion calculation, and then the conversion character corresponding to the output is: "YuxtQCJ" is preceded by zero padding and the resulting unique code is "0YuxtQCJ". In the present embodiment, for a decimal serial number, a decimal expansion process is performed to express a longer actual serial value in a defined number of bits.
In this embodiment, if a suitable target system is not determined as in steps S2-S3, the converted character of the converted target system may be larger than the specified number of bits, which indicates that the serial number is too large and the target system is too small, so that, in order to express the serial number in a limited number of specified bits, the number of the target system may be increased, for example, 27 system may be increased to 28 system. It will be appreciated that the number of increments should not be too large to avoid overcomplicating the calculation, typically only by increasing 1. After increasing the target binary digits, the digital binary conversion is performed again as described in the above steps S4-S6, to obtain the unique code.
In an embodiment, before the step S2 of searching the target maximum decimal number closest to the number of the serial number in the maximum decimal number of the database, the method includes:
step S20, obtaining the maximum decimal numbers which can be expressed under different decimal places in the characters with the designated digits;
step S21, storing the corresponding relation between different decimal numbers and the maximum decimal numbers expressed under the different decimal numbers under the specified digits in a database.
Specifically, the maximum decimal numbers expressed under different decimal numbers are required to be acquired firstly from characters with specified digits; for example, if the number of the designated digits is 4, for decimal, the maximum decimal number expressed is 9999, i.e., the serial number of the decimal maximum representation of a four-digit number is 9999; and for 20, the maximum number expressed by the binary number is 159999, namely the serial number of the 20 maximum expression of the four-digit number is 159999; obviously, the maximum decimal numbers expressed in different bins are different when specifying the number of bits. And pre-calculating decimal numbers expressed in different decimal places under the specified digits, and pre-storing the corresponding relation between the different decimal places and the maximum decimal number expressed in the different decimal places in a database.
In an embodiment, if the number of bits of the converted character of the target system is equal to the specified number of bits, the converted character of the target system is used as a unique code; if the number of bits of the converted character of the target system is smaller than the specified number of bits, adding a digital zero in front of the converted character of the target system to obtain a unique code of the specified number of bits, after step S6, comprising:
step S7, adding a coding field in the medical insurance text, assigning the unique code to the coding field to obtain a medical insurance modification text, and taking the unique code as the file name of the medical insurance modification text;
s8, carrying out hash calculation on the medical insurance modification text to obtain a corresponding hash value;
and step S9, storing the medical insurance modification text, the hash value and the unique code in a database, and establishing a mapping relation between the unique code, the hash value and the medical insurance modification text.
In this embodiment, after the unique code is obtained, the unique code is added to the medical insurance text, and is used as a file name of the medical insurance modification text, when the medical insurance modification text is subsequently called, the corresponding medical insurance modification text can be directly matched according to the unique code, further, whether the unique codes corresponding to the code fields in the matched medical insurance modification text are identical or not can also be compared, if so, the file is called correctly.
And carrying out hash calculation on the medical insurance modification text to obtain a corresponding hash value, and storing the hash value in a database, so that the subsequent comparison of whether the called medical insurance modification text is modified or not is facilitated. Specifically, based on the mapping relation of the medical insurance modification text, the hash value and the unique code stored in the database, calling the medical insurance modification text according to the unique code, calculating the hash value of the called medical insurance modification text, judging whether the hash value is consistent with the hash value stored in the database, and if so, indicating that the called medical insurance modification text is not modified and can be normally used.
In an embodiment, before the step S2 of searching the target maximum decimal number closest to the number of the serial number in the maximum decimal number of the database, the method includes:
step S2a, dividing the sequence number according to a preset rule to obtain three sequence segments, namely a first sequence segment, a second sequence segment and a third sequence segment;
step S2b, acquiring gender information of the medical insurance user recorded in the medical insurance text, and searching a first number corresponding to the gender information in a database;
step S2c, acquiring the age of the medical insurance user recorded in the medical insurance text, and acquiring a second number corresponding to the age;
step S2d, splicing the first number and the second number to obtain a spliced number, and judging whether the spliced number is identical to the first sequence segment;
step S2e, if the spliced number is the same as the first sequence segment, acquiring the total number of characters of the text except the serial number in the medical insurance text, and judging whether the number of the total number of characters is the same as the second sequence segment;
step S2f, if the number of the total character number is the same as the second sequence segment, searching whether a target sequence number comprising the third sequence segment exists in the sequence numbers stored in the database;
step S2g, if so, judging whether the medical insurance text corresponding to the target sequence number is the same as the medical insurance text corresponding to the third sequence segment;
s2h, if the serial numbers are the same, judging that the serial numbers are valid, and entering a step of searching a target maximum decimal number closest to the serial numbers in the maximum decimal numbers in the database; and if the serial numbers are different, judging that the serial numbers are invalid, and prohibiting the step of searching a target maximum decimal number closest to the number of the serial numbers from the maximum decimal number in the database.
In this embodiment, after the serial number in the medical insurance text is obtained, it needs to be verified whether it is a valid serial number. When the serial number is generated, the medical insurance text has a specific generation rule, and can comprise three sequence segments, wherein the first sequence segment and the second sequence segment are generated according to text content in the medical insurance text, and the third sequence segment is a random sequence generated in sequence. Therefore, in order to verify whether the serial number in the medical insurance text is valid, the serial number is only required to be divided according to a corresponding preset rule to obtain three corresponding sequence segments, and then each sequence segment is detected as above to respectively judge whether each sequence segment is correct, so that whether the serial number is valid is judged. When the serial number is valid, entering a subsequent digital system conversion; if the serial number is invalid, digital conversion is not needed.
In an embodiment, the step S2a of dividing the sequence number according to a preset rule to obtain three sequence segments, which are a first sequence segment, a second sequence segment, and a third sequence segment, includes:
step S201, obtaining the type of the medical insurance text, and matching corresponding identification numbers in a database according to the type of the medical insurance text; the corresponding relation between the type of each medical insurance text and the identification number is preset in the database;
step S202, detecting whether the serial number comprises the identification number;
step S203, if so, acquiring the number comprising the identification number;
and step S204, if the number of the identification numbers is two, dividing the serial number by taking the two identification numbers as dividing points to obtain the three sequence sections, wherein the identification numbers are not included in the three sequence sections.
In this embodiment, the correspondence between the identification number and the type of the medical insurance text is stored in the data in advance, and the serial number may be divided into three sequence segments only by identifying the identification number in the serial number.
In an embodiment, after the step S203 of obtaining the number including the identification number if the number includes:
step S205, if the number of the identification numbers is greater than two, randomly selecting two identification numbers from the number as dividing points to divide the serial number, thereby obtaining three pre-divided sequence segments, wherein each pre-divided sequence segment does not include the dividing point;
step S206, the lengths of the three pre-segmentation sequence segments are obtained, and the length ratio is calculated;
step S207, judging whether the length ratio is a preset ratio;
and step S208, if yes, taking the corresponding three pre-segmentation sequence segments as three sequence segments.
In this embodiment, if the number of the identifier is more than two, the identifier must include a number that is not used as an identifier, and since the rule of generating the sequence number is fixed, the lengths of the three sequence segments are also fixed, so that the sequence number can be pre-segmented by using the two randomly selected identifier numbers as segmentation points respectively, to obtain three pre-segmented sequence segments; further, the lengths of the three pre-segmentation sequence segments are obtained, and the length ratio is calculated; judging whether the length ratio is a preset ratio, if so, taking the corresponding three pre-divided sequence segments as three sequence segments.
Referring to fig. 2, in an embodiment of the present application, there is further provided a serial number conversion device for medical insurance text, including:
a first obtaining unit 10, configured to obtain a medical insurance text in a medical field, and identify a serial number stored in the medical insurance text; wherein the serial number is decimal;
a first searching unit 20, configured to search, among the maximum decimal numbers in the database, a target maximum decimal number that is closest to the number of the serial number, where the target maximum decimal number is greater than the number of the serial number; wherein, the database stores the maximum decimal numbers expressed by characters with specified digits under different decimal systems;
a second obtaining unit 30, configured to take a bin corresponding to the target maximum decimal number as a target bin, and obtain a decimal number of the target bin; wherein the target system number is larger than the serial number system number;
a second searching unit 40, configured to search a corresponding binary value range in the ASCII code according to the binary number of the target system;
a conversion unit 50, configured to perform digital system conversion on the serial number according to the range of the binary values, obtain a conversion character of the target system, and determine whether a number of bits of the conversion character of the target system is greater than a specified number of bits;
an encoding unit 60, configured to take the converted character of the target system as a unique code if the number of bits of the converted character of the target system is equal to the specified number of bits; and if the bit number of the conversion character of the target system is smaller than the specified bit number, adding a digital zero in front of the conversion character of the target system to obtain a unique code of the specified bit number.
In an embodiment, the device further comprises:
a third obtaining unit, configured to obtain a maximum decimal number capable of being expressed in different decimal numbers from among characters with specified digits;
and the storage unit is used for storing the corresponding relation between different decimal numbers and the maximum decimal number expressed under the different decimal numbers under the specified digit number in the database.
In this embodiment, for specific implementation of each unit in the above embodiment of the apparatus, please refer to the description in the above embodiment of the method, and no further description is given here.
Referring to fig. 3, a computer device is further provided in the embodiment of the present application, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing medical insurance texts and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a serial number conversion method for medical insurance text.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device to which the present application is applied.
An embodiment of the present application further provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor implements a serial number conversion method for medical insurance text. It is understood that the computer readable storage medium in this embodiment may be a volatile readable storage medium or a nonvolatile readable storage medium.
In summary, the method, the device, the computer equipment and the storage medium for converting the serial number of the medical insurance text provided in the embodiments of the present application include obtaining the medical insurance text in the medical field, and identifying the serial number stored in the medical insurance text; obtaining a binary number for converting the serial number into a target binary number; wherein the target system number is larger than the serial number system number; searching a corresponding binary value range in ASCII codes according to the binary number of the target system; and carrying out digital system conversion on the serial number according to the system value range to obtain the conversion character of the target system, and obtaining the corresponding unique code. The serial number with large data volume and longer length is converted into the unique code with the specified bit number, so that the repetition of the data is avoided when the data volume is large.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (8)

1. The serial number conversion method of the medical insurance text is characterized by comprising the following steps of:
acquiring a medical insurance text in the medical field, and identifying a serial number stored in the medical insurance text; wherein the serial number is decimal;
searching a target maximum decimal number closest to the number of the serial number in the maximum decimal number of a database, wherein the target maximum decimal number is larger than the number of the serial number; wherein, the database stores the maximum decimal numbers expressed by characters with specified digits under different decimal systems;
taking a system corresponding to the target maximum decimal number as a target system, and acquiring the system number of the target system; wherein the target system number is larger than the serial number system number;
according to the binary digits of the target system, searching a corresponding binary value range in ASCII codes;
performing digital system conversion on the serial number according to the value range to obtain a conversion character of the target system, and judging whether the bit number of the conversion character of the target system is larger than a designated bit number;
if the bit number of the conversion character of the target system is equal to the specified bit number, the conversion character of the target system is used as a unique code; if the bit number of the conversion character of the target system is smaller than the specified bit number, adding a digital zero in front of the conversion character of the target system to obtain a unique code of the specified bit number;
the step of searching the target maximum decimal number closest to the number of the serial number in the maximum decimal number of the database comprises the following steps:
acquiring the maximum decimal numbers which can be expressed under different decimal numbers in characters with specified digits;
storing the corresponding relation between different decimal numbers and the maximum decimal numbers expressed under the different decimal numbers under the specified digits in a database.
2. The method for converting a serial number of medical insurance text according to claim 1, wherein if the number of bits of the converted character of the target system is equal to the specified number of bits, the converted character of the target system is used as a unique code; if the number of bits of the converted character of the target system is smaller than the specified number of bits, adding a digital zero in front of the converted character of the target system to obtain a unique code of the specified number of bits, comprising:
adding a coding field in the medical insurance text, assigning the unique code to the coding field to obtain a medical insurance modification text, and taking the unique code as a file name of the medical insurance modification text;
carrying out hash calculation on the medical insurance modification text to obtain a corresponding hash value;
and storing the medical insurance modification text, the hash value and the unique code in a database, and establishing a mapping relation between the unique code, the hash value and the medical insurance modification text.
3. The method for converting a serial number of medical insurance text according to claim 1, wherein said step of searching for a target maximum decimal number closest to the number of said serial number among the maximum decimal numbers in the database includes:
dividing the sequence number according to a preset rule to obtain three sequence segments, namely a first sequence segment, a second sequence segment and a third sequence segment;
acquiring gender information of a medical insurance user recorded in the medical insurance text, and searching a first number corresponding to the gender information in a database;
acquiring the age of a medical insurance user recorded in the medical insurance text, and acquiring a second number corresponding to the age;
splicing the first number and the second number to obtain spliced numbers, and judging whether the spliced numbers are identical to the first sequence segment or not;
if the spliced number is the same as the first sequence segment, acquiring the total number of characters of the text except the serial number in the medical insurance text, and judging whether the number of the total number of characters is the same as the second sequence segment;
if the number of the total character number is the same as the second sequence segment, searching whether a target sequence number comprising the third sequence segment exists in sequence numbers stored in a database;
if so, judging whether the medical insurance text corresponding to the target sequence number is the same as the medical insurance text corresponding to the third sequence segment;
if the number is the same, judging that the serial number is valid, entering the step of searching a target maximum decimal number closest to the number of the serial number in the maximum decimal number in the database; and if the serial numbers are different, judging that the serial numbers are invalid, and prohibiting the step of searching a target maximum decimal number closest to the number of the serial numbers from the maximum decimal number in the database.
4. The method for converting a serial number of a medical insurance text according to claim 3, wherein the step of dividing the serial number according to a preset rule to obtain three sequence segments, namely a first sequence segment, a second sequence segment and a third sequence segment, comprises the steps of:
acquiring the type of the medical insurance text, and matching corresponding identification numbers in a database according to the type of the medical insurance text; the corresponding relation between the type of each medical insurance text and the identification number is preset in the database;
detecting whether the serial number comprises the identification number or not;
if so, acquiring the number comprising the identification number;
if the number of the identification numbers is two, the two identification numbers are respectively used as the dividing points to divide the serial numbers, so that the three sequence sections are obtained, and none of the three sequence sections comprises the identification numbers.
5. The method of claim 4, wherein after the step of obtaining the number including the identification number if included, further comprising:
if the number of the identification numbers is greater than two, randomly selecting two identification numbers from the identification numbers to be used as dividing points to divide the serial number respectively, so as to obtain three pre-divided sequence segments, wherein each pre-divided sequence segment does not comprise the dividing point;
the lengths of the three pre-segmentation sequence segments are obtained, and the length ratio is calculated;
judging whether the length ratio is a preset ratio or not;
if yes, the three pre-divided sequence segments are used as three sequence segments.
6. A serial number conversion device of medical insurance text, comprising:
the first acquisition unit is used for acquiring medical insurance texts in the medical field and identifying serial numbers stored in the medical insurance texts; wherein the serial number is decimal;
the first searching unit is used for searching a target maximum decimal number closest to the number of the serial number in the maximum decimal numbers of the database, wherein the target maximum decimal number is larger than the number of the serial number; wherein, the database stores the maximum decimal numbers expressed by characters with specified digits under different decimal systems;
the second acquisition unit is used for taking a system corresponding to the target maximum decimal number as a target system and acquiring the binary number of the target system; wherein the target system number is larger than the serial number system number;
the second searching unit is used for searching a corresponding binary value range in the ASCII code according to the binary number of the target system;
the conversion unit is used for carrying out digital system conversion on the serial number according to the system value range to obtain a conversion character of the target system, and judging whether the number of bits of the conversion character of the target system is larger than a specified number of bits;
the coding unit is used for taking the conversion character of the target system as a unique code if the bit number of the conversion character of the target system is equal to the designated bit number; if the bit number of the conversion character of the target system is smaller than the specified bit number, adding a digital zero in front of the conversion character of the target system to obtain a unique code of the specified bit number;
a third obtaining unit, configured to obtain a maximum decimal number capable of being expressed in different decimal numbers from among characters with specified digits;
and the storage unit is used for storing the corresponding relation between different decimal numbers and the maximum decimal number expressed under the different decimal numbers under the specified digit number in the database.
7. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN202010897819.8A 2020-08-31 2020-08-31 Sequence number conversion method and device for medical insurance text and computer equipment Active CN112035477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010897819.8A CN112035477B (en) 2020-08-31 2020-08-31 Sequence number conversion method and device for medical insurance text and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010897819.8A CN112035477B (en) 2020-08-31 2020-08-31 Sequence number conversion method and device for medical insurance text and computer equipment

Publications (2)

Publication Number Publication Date
CN112035477A CN112035477A (en) 2020-12-04
CN112035477B true CN112035477B (en) 2024-04-09

Family

ID=73586504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010897819.8A Active CN112035477B (en) 2020-08-31 2020-08-31 Sequence number conversion method and device for medical insurance text and computer equipment

Country Status (1)

Country Link
CN (1) CN112035477B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738717B1 (en) * 2006-06-27 2010-06-15 Verizon Services Corp. Systems and methods for optimizing bit utilization in data encoding
CN104866601A (en) * 2015-06-01 2015-08-26 走遍世界(北京)信息技术有限公司 Serial number generating method and device
CN109445749A (en) * 2018-09-14 2019-03-08 高斯贝尔数码科技股份有限公司 It is a kind of not repeat random sequence number generation method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738717B1 (en) * 2006-06-27 2010-06-15 Verizon Services Corp. Systems and methods for optimizing bit utilization in data encoding
CN104866601A (en) * 2015-06-01 2015-08-26 走遍世界(北京)信息技术有限公司 Serial number generating method and device
CN109445749A (en) * 2018-09-14 2019-03-08 高斯贝尔数码科技股份有限公司 It is a kind of not repeat random sequence number generation method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高进位数制表示对数据存贮空间的压缩;陈方, 曾大军;计算机应用(第04期);第46-47页 *

Also Published As

Publication number Publication date
CN112035477A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN110737818B (en) Network release data processing method, device, computer equipment and storage medium
CN110569341A (en) method and device for configuring chat robot, computer equipment and storage medium
CN112613312B (en) Method, device and equipment for training entity naming recognition model and storage medium
CN116132527B (en) System and method for managing indication board and data processing server
CN104579360A (en) Method and equipment for data processing
CN111797629A (en) Medical text data processing method and device, computer equipment and storage medium
CN112183542A (en) Text image-based recognition method, device, equipment and medium
CN115880826A (en) Park access method and system based on access data
CN112035477B (en) Sequence number conversion method and device for medical insurance text and computer equipment
CN113342927B (en) Sensitive word recognition method, device, equipment and storage medium
CN112257757A (en) Malicious sample detection method and system based on deep learning
CN107977404B (en) User information screening method, server and computer readable storage medium
CN110727743A (en) Data identification method and device, computer equipment and storage medium
CN111191028A (en) Sample labeling method and device, computer equipment and storage medium
CN111126420A (en) Method and device for establishing recognition model
CN112052667B (en) Method, device and equipment for realizing medical coding mapping
CN112364620B (en) Text similarity judging method and device and computer equipment
CN114611501A (en) Rarely-used word detection method, device, equipment and storage medium
CN110895849A (en) Method and device for cutting and positioning crown word number, computer equipment and storage medium
CN114723986A (en) Text image matching method, device, equipment and storage medium
CN114629707A (en) Method and device for detecting messy codes, electronic equipment and storage medium
CN113946615A (en) Data structuring processing method, device, equipment and storage medium
CN112749539A (en) Text matching method and device, computer readable storage medium and computer equipment
CN113127863A (en) Malicious code detection method and device, computer equipment and storage medium
CN112257718A (en) Text recognition method and device for radiology department films

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220520

Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd.

Address before: Room 12G, Block H, 666 Beijing East Road, Huangpu District, Shanghai 200000

Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant