A kind of method of patient name fuzzy semantics inquiry
Technical field
The present invention relates to patients in a kind of method of patient name inquiry more particularly to a kind of image server to DICOM
The method of name fuzzy semantics inquiry.
Background technology
Patient name before DICOM video generations is logged in, common scene has:(1) patient write on paper or
Say oneself Chinese Name;(2) Chinese character or phonetic of hospital's preregistration personnel typing original name;(3) hospital is pre-
About registration of personnel is according to input system feedback result, or voluntarily judges to increase content, such as BB (indicating baby).The above scene
All there is a problem of certain, for scene (1) due to patient's accent, typing personnel understand deviation, possible typing mistake;Scene (2) by
Support function weak in the Chinese character of image documentation equipment, it is necessary to do patient name, the transfer process of Chinese character to phonetic with phonetic
It is possible that mistake;Scene (3) increased content can be variant.And in practical medical environment, there are many patient, it is desirable that
DICOM image servers operating personnel within a short period of time, find similar intended patient and record selective confirmation by one query.
The common query and search of DICOM3.0 code requirements is matched with:It is monodrome matching, unique identifier list match, general
Matching, asterisk wildcard matching, commensurate in scope and sequences match.When the information such as patient, inspection, sequence and image determine, inquiry behaviour
Work is very easy, and database also can easily be realized with general sentence.But when above- mentioned information portion determines, usually
Matching process there are two types of, a kind of method is general matching, asterisk wildcard matching and commensurate in scope query composition, and this mode lacks
Point is that calculating operand is big, and user generally requires repeatedly repeatedly, the record that can be just needed, poor user experience;Second is that monodrome
Patient name fuzzy semantics under matching, the realization of this mode need to shield capital and small letter, position, accent and character code, very
To voice.For example, the example that DICOM3.0 specifications provide is exactly:Inquiry " Swain " needs to return to " Swayne ", inquires " Smith
^Mary " needs to return to " Mary^Smith " or " Mary Smith " or " Smith, Mary ".
In inquiry, retrieval, equipment taskpad, equipment complete the services such as checking step, it is distinctly claimed and patient's surname is provided
The fuzzy semantic matching method of name.Patient name fuzzy semantics are matched, many image server systems are by database knot
The like fuzzy query sentences of structure query language SQL are realized, are to retrieve pair for being included in a character type field arranges
Answer keyword.But Like sentence search efficiencies are low, can not optimize performance substantially, and query result matching is also bad.
Invention content
Problems solved by the invention is to provide a kind of method of patient name fuzzy semantics inquiry, not only inquiry velocity it is fast,
Matching is strong, and can effectively shield the factors such as cacoepy, accent, position and capital and small letter.
To solve the above-mentioned problems, the present invention provides a kind of methods of patient name fuzzy semantics inquiry, including:
(1) it is that corresponding integer constant weights are arranged in phonetic alphabet;
(2) according to the integer constant weights, the integer constant weights of the surname of patient and the PINYIN form of name are calculated separately
With;
(3) by the weights and progress right shift operation, the corresponding surname index of the patient and name index are established;
(4) name of patient to be matched and the surname of patient index and name index are subjected to matching inquiry, if matching,
Poll-final;If mismatching, the surname index and name rope of the patient to be matched are established according to the step (2) and step (3)
Draw, poll-final.
Patient name fuzzy semantics querying method described above, wherein the phonetic alphabet are initial consonant, single vowel and answer
Simple or compound vowel of a Chinese syllable.
Patient name fuzzy semantics querying method described above, wherein by phonetic error-prone in the phonetic alphabet
Letter is set as shaping constant weights identical or that difference is small.
Patient name fuzzy semantics querying method described above, wherein the integer constant weights of the initial consonant are more than institute
The integer constant weights of compound vowel are stated, the integer constant weights of the compound vowel are more than the integer constant weights of the single vowel.
Patient name fuzzy semantics querying method described above, wherein what the single vowel occurred in Chinese characters in common use
The integer weights of number and the single vowel are inversely proportional.
Patient name fuzzy semantics querying method described above, wherein the integer weights of the phonetic alphabet are with prime number
Sequence presses bit distribution.
Patient name fuzzy semantics querying method described above, wherein if the character set of the patient name is Chinese,
The name of the patient is then converted into standard PINYIN form.
Patient name fuzzy semantics querying method described above, wherein patient name fuzzy semantics described above are looked into
Inquiry method, wherein the right shift operation is configurable.
Compared with prior art, the present invention is combined into input value with the corresponding phonetic alphabet collection of patient's Chinese Name, establishes rope
Draw model, not only algorithm is succinct, realizability is strong for the index model, operand is small, moreover it is possible to effectively shield cacoepy, mouth
The factors such as sound, position and capital and small letter.And inquiry velocity is fast, matching is strong, user experience is good, is adapted to different dialect rings
Border and operation scenario.
Description of the drawings
Fig. 1 show the flow diagram of patient name fuzzy semantics querying method of the embodiment of the present invention;
Fig. 2 show the integer constant weight table of phonetic alphabet of the embodiment of the present invention.
Specific implementation mode
Many details are elaborated in the following description in order to fully understand the present invention.But the present invention can be with
Much implement different from other manner described here, those skilled in the art can be without prejudice to intension of the present invention the case where
Under do similar popularization, therefore the present invention is not limited to the specific embodiments disclosed below.
Secondly, the present invention is described in detail using schematic diagram, when describing the embodiments of the present invention, for purposes of illustration only, institute
It is example to state schematic diagram, should not limit the scope of protection of the invention herein.
The present invention is described in detail with reference to the accompanying drawings and examples.Patient name fuzzy semantics inquiry of the present invention
Method is as shown in Figure 1, first, execute step S1, for the corresponding integer constant weights of phonetic alphabet setting.Specifically, in this reality
It applies in example, as shown in Fig. 2, the phonetic alphabet are initial consonant, single vowel and compound vowel.For phonetic error-prone in phonetic alphabet
Letter is set as integer constant weights identical or that difference is small.Such as initial consonant L and N, ZH and Z, CH and C, SH and H and
Their integer constant weights are then set as identical by H and F since the factors such as dialect are easy error.It should be noted that
It can set them to the small integer constant weights of difference.For example, the absolute value of the difference of the integer constant weights of L and N is small
In e, e is positive integer (such as e=1).For single vowel and compound vowel also as initial consonant, for error-prone, setting is identical
Or the integer constant weights that difference is small.
In addition, for the phonetic alphabet in addition to error-prone phonetic alphabet, it is multiple since initial consonant error probability should be less than compound vowel
Simple or compound vowel of a Chinese syllable error probability should be less than single vowel, and therefore, the integer constant weights of the initial consonant are more than the integer constant weights of compound vowel,
The integer constant weights of the compound vowel are more than the integer constant weights of single vowel.Moreover, single vowel occurrence probability is higher, error
Probability is higher, and therefore, the number and its integer constant weights that single vowel occurs in Chinese characters in common use are inversely proportional, i.e., occurrence number is got over
High single vowel, shaping constant weights are smaller.In order to reduce the probability overlapped after weights are added, the integer constant of phonetic alphabet
Weights press bit distribution with prime number sequence.In the present embodiment, the prime number sequence is (3,5,7, B...), as shown in Fig. 2, for
Initial consonant, the higher initial consonant of occurrence probability, integer constant weights are smaller, and such as initial consonant N, G, F and B, the probability that N occurs is relatively high,
Its integer constant weights is minimum in this four initial consonants, moreover, initial consonant N, G, F and B are distributed according to prime number sequence.It needs to illustrate
It is, for the integer constant weights that length is N, as long as wherein one is distributed according to prime number sequence.For single vowel and again
Simple or compound vowel of a Chinese syllable is distributed also as initial consonant according to prime number sequence.It should be noted that integer constant weight table can be according to reality
The case where border, is configured.
Then, step S2 is executed, according to the integer constant weights, calculates separately the surname of patient and the PINYIN form of name
Integer constant weights and.Wherein, if the character set of the patient name is Chinese, the name of the patient is converted into mark
Quasi- PINYIN form.Wherein, the patient is the patient recorded in database.Specifically, according to each phonetic alphabet in step S1
Corresponding integer constant weights determine the integer constant weights corresponding to the surname of patient name and the PINYIN form of name respectively, and
Calculate separately patient surname and name weights and.In the present embodiment, calculated be hexadecimal weights and.It needs to illustrate
It can also be binary system, octal system, decimal system etc. according to the actual needs to be.
Then, step S3 is executed, by the weights and right shift operation is carried out, establishes the corresponding surname Suo of the patient
Draw and is indexed with name.Wherein, displacement operation is configurable to the right, if desired accurate matching, then the digit of displacement to the right just compares
It is few;If desired fuzzy matching, then the digit of displacement to the right is just relatively more.Specifically, in the present embodiment, step S2 is obtained
After the weights and right shift 4 of patient's surname and name, character string forms storage is converted to, that is, it is corresponding to establish the patient
Surname indexes and name index.In the present embodiment, character string is stored according to the form of B-tree.It should be noted that can also be according to it
The form storage that he optimizes.
Then, step S4 is executed, the name of patient to be matched and the surname of patient index and name index are matched
Inquiry, if matching, thens follow the steps S5, poll-final;If mismatching, S6 is thened follow the steps, according to above-mentioned steps S2 and S3, is
The patient to be matched establishes corresponding surname index and name index, and S5, poll-final are thened follow the steps after establishing index.Specifically
Ground distinguishes surname index according to three kinds of surname of patient to be matched, first name and last name name modes or name indexes matching inquiry, if index is identical,
It is then similar patient, poll-final;If index differs, surname index and name index are established for patient to be matched, to store
In the database.
Although the invention has been described by way of example and in terms of the preferred embodiments, but it is not for limiting the present invention, any this field
Technical staff without departing from the spirit and scope of the present invention, may be by the methods and technical content of the disclosure above to this hair
Bright technical solution makes possible variation and modification, therefore, every content without departing from technical solution of the present invention, and according to the present invention
Technical spirit to any simple modifications, equivalents, and modifications made by above example, belong to technical solution of the present invention
Protection domain.