A kind of method of patient name fuzzy semantics inquiry
Technical field
The present invention relates to a kind of method of patient name inquiry, relate in particular to a kind of method to patient name fuzzy semantics inquiry in DICOM image server.
Background technology
For the patient name login before DICOM video generation, common scene has: (1) patient writes and goes out in other words own Chinese Name on paper; (2) Chinese character or the phonetic of hospital's preregistration personnel typing original name; (3) hospital's preregistration personnel are according to input system feedback result, or judgement increases content voluntarily, such as BB (representing baby).All there is certain problem in above scene, scene (1) is due to patient's accent, and typing personnel understand deviation, possible typing mistake; A little less than the Chinese character support function of scene (2) due to image documentation equipment, must do patient name with phonetic, Chinese character may go wrong to the transfer process of phonetic; The content that scene (3) increases can be variant.And in actual medical environment, patient is a lot, require DICOM image server operation personnel within a short period of time, the selective confirmation of close target patient record is found in one query.
The conventional query and search coupling of DICOM3.0 code requirement has: monodrome coupling, unique identifier list match, general coupling, asterisk wildcard coupling, commensurate in scope and sequences match.In the time that the information such as patient, inspection, sequence and image are determined, query manipulation is very easily, and database also can be realized easily with common language sentence.But in the time that above-mentioned information portion is determined, common matching process has two kinds, a kind of method is general coupling, asterisk wildcard coupling and commensurate in scope query composition, the shortcoming of this mode is that calculation operations amount is large, user often needs repeatedly repeatedly, just can obtain the record of needs, poor user experience; The 2nd, the patient name fuzzy semantics under monodrome coupling, the realization of this mode need to shield capital and small letter, position, accent and character code, even voice.Such as, the example that DICOM3.0 specification provides is exactly: inquiry " Swain " need to be returned to " Swayne ", and inquiry " Smith^Mary " need to be returned to " Mary^Smith " or " Mary Smith " or " Smith, Mary ".
In inquiry, retrieval, equipment taskpad, equipment complete services such as checking step, explicitly call for patient name fuzzy semantics matching process is provided.For patient name fuzzy semantics coupling, a lot of image server systems are to realize by the like fuzzy query statement of database structure query language SQL, are the corresponding key words that retrieval comprises in character type field row.But Like statement search efficiency is low, substantially cannot Optimal performance, and also Query Result matching is also bad.
Summary of the invention
The problem that the present invention solves is to provide a kind of method of patient name fuzzy semantics inquiry, and not only inquiry velocity is fast, matching is strong, and can effectively shield the factors such as cacoepy, accent, position and capital and small letter.
In order to address the above problem, the invention provides a kind of method of patient name fuzzy semantics inquiry, comprising:
(1) for phonetic alphabet arrange corresponding integer constant weights;
(2) according to described integer constant weights, calculate respectively patient surname and name phonetic form integer constant weights and;
(3), by described weights and carry out right shift operation, set up the corresponding surname index of described patient and a name index;
(4) patient's to be matched name and described patient's surname index and name index are carried out to matching inquiry, if coupling, poll-final; If do not mate, set up described patient's to be matched surname index and name index, poll-final according to described step (2) and step (3).
Patient name fuzzy semantics querying method described above, wherein, described phonetic alphabet are initial consonant, single vowel and compound vowel.
Patient name fuzzy semantics querying method described above, wherein, the phonetic alphabet of easily makeing mistakes in described phonetic alphabet are set to shaping constant weights identical or that difference is little.
Patient name fuzzy semantics querying method described above, wherein, the integer constant weights of described initial consonant are greater than the integer constant weights of described compound vowel, and the integer constant weights of described compound vowel are greater than the integer constant weights of described single vowel.
Patient name fuzzy semantics querying method described above, wherein, the integer weights of the number of times that described single vowel occurs in Chinese characters in common use and described single vowel are inversely proportional to.
Patient name fuzzy semantics querying method described above, wherein, the integer weights of described phonetic alphabet distribute with the step-by-step of prime number sequence.
Patient name fuzzy semantics querying method described above, wherein, if the character set of described patient name is Chinese, is converted to described patient's name standard phonetic form.
Patient name fuzzy semantics querying method described above, wherein, patient name fuzzy semantics querying method described above, wherein, described right shift operation is configurable.
Compared with prior art, the present invention is taking phonetic alphabet set corresponding to patient's Chinese Name as input value, set up index model, not only algorithm is succinct, realizability is strong for this index model, operand is little, can also effectively shield the factors such as cacoepy, accent, position and capital and small letter.And inquiry velocity is fast, matching strong, user experiences, and can adapt to different dialect environment and operation scenario.
Brief description of the drawings
Figure 1 shows that the schematic flow sheet of embodiment of the present invention patient name fuzzy semantics querying method;
Figure 2 shows that the integer constant weight table of embodiment of the present invention phonetic alphabet.
Embodiment
A lot of details are set forth in the following description so that fully understand the present invention.But the present invention can implement to be much different from alternate manner described here, and those skilled in the art can do similar popularization without prejudice to intension of the present invention in the situation that, and therefore the present invention is not subject to the restriction of following public concrete enforcement.
Secondly, the present invention utilizes schematic diagram to be described in detail, and in the time that the embodiment of the present invention is described in detail in detail, for ease of explanation, described schematic diagram is example, and it should not limit the scope of protection of the invention at this.
Below in conjunction with drawings and Examples, the present invention is described in detail.As shown in Figure 1, first, execution step S1, for phonetic alphabet arrange corresponding integer constant weights to patient name fuzzy semantics querying method of the present invention.Particularly, in the present embodiment, as shown in Figure 2, described phonetic alphabet are initial consonant, single vowel and compound vowel.Be set to integer constant weights identical or that difference is little for the phonetic alphabet of easily makeing mistakes in phonetic alphabet.Such as for initial consonant L and N, ZH and Z, CH and C, SH and H and H and F, because the factors such as dialect are easily made mistakes, their integer constant weights are set to identical.It should be noted that, also can they be set to the integer constant weights that difference is little.Such as, the absolute value of the difference of the integer constant weights of L and N is less than e, and e is positive integer (as e=1).Also the same with initial consonant with compound vowel for single vowel, for what easily make mistakes, integer constant weights identical or that difference is little are set.
In addition, for the phonetic alphabet except the phonetic alphabet of easily makeing mistakes, because the initial consonant probability of makeing mistakes should be less than compound vowel, the compound vowel probability of makeing mistakes should be less than single vowel, therefore, the integer constant weights of described initial consonant are greater than the integer constant weights of compound vowel, and the integer constant weights of described compound vowel are greater than the integer constant weights of single vowel.And single vowel occurrence probability is higher, the probability of makeing mistakes is higher, and therefore, the number of times that single vowel occurs in Chinese characters in common use and its integer constant weights are inversely proportional to, i.e. the higher single vowel of occurrence number, and its shaping constant weights are less.In order to reduce the probability overlapping after weights are added, the integer constant weights of phonetic alphabet distribute with the step-by-step of prime number sequence.In the present embodiment, described prime number sequence is (3,5,7, B...), as shown in Figure 2, for initial consonant, the initial consonant that occurrence probability is higher, its integer constant weights are less, as initial consonant N, G, F and B, the probability that N occurs is higher, its integer constant weights are minimum in these four initial consonants, and initial consonant N, G, F and B distribute according to prime number sequence.It should be noted that, the integer constant weights that are N for length, as long as wherein one distribute according to prime number sequence.For single vowel and compound vowel, also the same with initial consonant, distribute according to prime number sequence.It should be noted that, integer constant weight table can be configured according to actual situation.
Then, execution step S2, according to described integer constant weights, calculate respectively patient surname and name phonetic form integer constant weights and.Wherein, if the character set of described patient name is Chinese, described patient's name is converted to standard phonetic form.Wherein, the patient of described patient for recording in database.Particularly, according to the integer constant weights that in step S1, each phonetic alphabet are corresponding, respectively determine patient name surname and name the corresponding integer constant of phonetic form weights, and calculate respectively patient surname and name weights and.In the present embodiment, calculate be sexadecimal weights and.It should be noted that, according to the actual needs, can be also scale-of-two, scale-of-eight, the decimal system etc.
Then, execution step S3, by described weights and carry out right shift operation, sets up the corresponding surname index of described patient and a name index.Wherein, displacement operation is configurable to the right, if desired exact matching, and the figure place of displacement is to the right just fewer; If desired fuzzy matching, the figure place of displacement is to the right just many.Particularly, in the present embodiment, after the weights and 4 of right shifts of patient's surname that step S2 is obtained and name, be converted to character string forms storage, set up the corresponding surname index of described patient and an index.In the present embodiment, character string is according to the form storage of B tree.It should be noted that, also can be according to the form storage of other optimizations.
Then, execution step S4, carries out matching inquiry by patient's to be matched name and described patient's surname index and name index, if coupling performs step S5, poll-final; If do not mate, perform step S6, according to above-mentioned steps S2 and S3, for described patient to be matched sets up corresponding surname index and a name index, perform step S5, poll-final after setting up index.Particularly, according to patient's to be matched surname, three kinds of modes of first name and last name name surname index or name index matching inquiry respectively, if index is identical, be similar patient, poll-final; If index is not identical, for patient to be matched sets up surname index and name index, thereby be stored in database.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize method and the technology contents of above-mentioned announcement to make possible variation and amendment to technical solution of the present invention; therefore; every content that does not depart from technical solution of the present invention; any simple modification, equivalent variations and the modification above embodiment done according to technical spirit of the present invention, all belong to the protection domain of technical solution of the present invention.