CN108228487A - A kind of general-purpose interface method for calling business rule - Google Patents

A kind of general-purpose interface method for calling business rule Download PDF

Info

Publication number
CN108228487A
CN108228487A CN201711478920.4A CN201711478920A CN108228487A CN 108228487 A CN108228487 A CN 108228487A CN 201711478920 A CN201711478920 A CN 201711478920A CN 108228487 A CN108228487 A CN 108228487A
Authority
CN
China
Prior art keywords
rule
parameter
definition
general
purpose interface
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.)
Pending
Application number
CN201711478920.4A
Other languages
Chinese (zh)
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.)
Anhui Fangzheng Medical Information Technology Co Ltd
Original Assignee
Anhui Fangzheng Medical Information 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 Anhui Fangzheng Medical Information Technology Co Ltd filed Critical Anhui Fangzheng Medical Information Technology Co Ltd
Priority to CN201711478920.4A priority Critical patent/CN108228487A/en
Publication of CN108228487A publication Critical patent/CN108228487A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention discloses a kind of general-purpose interface methods for calling business rule, are as follows:User defines the protocol data form of description interactive interfacing, and the required parameter of definition rule, parameter type, parameter acquiring mode by interface;According to the requirement of service logic, the decision logic of specific rules is defined:For the required parameter received, the parameter list of definition carries out dissection process respectively, forms the required complete parameter of calling rule, and pass to rule invocation processing subsystem;Rule invocation processing:Using the parameter list parsed, specified rule in call request parameter performs specifically regular judgement or logical operation process, and the processing procedure responded according to the result execution defined in rule definition;Rules results encode:According to the data structure of the response results of definition, the result of generation is encoded and returns to caller.The present invention has many advantages, such as that response cycle is short, delivery efficiency is high.

Description

A kind of general-purpose interface method for calling business rule
Technical field
The present invention relates to software systems general-purpose interface field, a kind of specifically general-purpose interface side for calling business rule Method.
Background technology
There is the scene that external rules is largely needed to judge in clinical system, these required parameters of rule and rule The result returned after judgement is all possibly different from, and defines different interfaces respectively if it is each business rule, in business system The interface of these rules is called in system must also be handled respectively, cause any change that modification code is required for correspond to, this Kind mode is obviously unable to reach the response time of user's requirement, is all very unfavorable to the delivery efficiency and delivery cost of product , therefore there are problems that response cycle is long, delivery cost is high, delivery efficiency is low etc., it needs effectively to be improved.
Invention content
The defects of response cycle present in the prior art is long, delivery cost is high, delivery efficiency is low is directed to, one kind is provided Call the general-purpose interface method of business rule.
To achieve the above object, the technical solution adopted by the present invention is:A kind of general-purpose interface method for calling business rule, It is as follows:
(1), interface defines:
User defines the protocol data form of description interactive interfacing, and the required ginseng of definition rule by interface Number, parameter type, parameter acquiring mode;
(2), rule definition:
According to the requirement of service logic, the decision logic of specific rules is defined, operation is carried out according to the parameter of input and is patrolled It collects and judges, generation exports or trigger new processing procedure accordingly;
(3), parameter of regularity parses:
For the required parameter received, the parameter list defined according to step (1) carries out dissection process respectively, is formed and adjusted With the required complete parameter of rule, and pass to rule invocation processing subsystem;
(4), rule invocation is handled:
The parameter list parsed using step (3), specified rule in call request parameter perform specific rule Judgement or logical operation process, and the processing procedure responded according to the result execution defined in rule definition;
(5), rules results encode:
According to the data structure of the response results defined in step (1), the result generated in step (4) is encoded simultaneously Return to caller.
Preferably, in the step (1), the communications protocol includes SOAP OVER HTTP or RAWHTTP, number It is xml or json according to form.
Preferably, in the step (2), it is micro- including transmission mail, transmission short message, transmission to trigger new processing procedure The data of letter or modification external storage.
The present invention has the following advantages compared with prior art:
(1), service interface form defined in the present invention is unrelated with specific service content, and called side can be with flexible assembling The different rule service of data call is without changing code;
(2), service interface design parameter defined in the present invention is flexibly configurable;
(3), the data defined in the present invention needed for rule service can be from outside according to the data that called side is transmitted The other associated datas read in repository;
(4), the handling result of rule service defined in the present invention is more than returning to called side, can also pass through communication Interface is sent on miscellaneous equipment.
Description of the drawings
Fig. 1 is the flow chart of the embodiment of the present invention 1;
Fig. 2 is the flow chart of the embodiment of the present invention 2;
Fig. 3 is the flow chart of the embodiment of the present invention 3.
Specific embodiment
The effect of to make to structure feature of the invention and being reached, has a better understanding and awareness, to preferable Embodiment and attached drawing cooperation detailed description, are described as follows:
Embodiment 1
The regular interface of a malicious anaesthetic dose monitoring is defined, using SOAP transport protocols, inputoutput data uses JSON is encoded, and is needed in input data:Patient ID, medicine coding, nomenclature of drug, drug accumulated dose, drug time dosage, export number According to whether suitable for current drug use;
The specific rules of the malicious anaesthetic dose monitoring of definition set secondary dosage SC service ceiling, the dosage limitation of each malicious anaesthetic Number of days, and judgement is compared using input data and setting value, provide respectively do not allow to open, secondary dosage is exceeded, dosage surpasses It crosses limitation number of days, allow to open etc. as a result, such as:For drug " morphine ", secondary dosage is limited to less than 10mg, and each prescription limit is opened Primary amount;
For the input data in the request that receives:{"patientId":"325344","drugCode":" 200045","drugName":" morphine ", " totalDose ":"12mg","singleDose":" 12mg " }, parse patient The total amount of 325344 use morphines is 12mg, and each dosage is 12mg;
Using the parameter parsed above, the good malicious anaesthetic dosage Monitoring Rules of call definition obtain the secondary of the secondary medication The exceeded result of dosage;
According to the definition of interface, the JSON of generation output result:{"result":"0","reason":" secondary dosage surpasses It marks " }, and returns to called side.
Embodiment 2
The rule service of an abnormal body temperature monitoring is defined, using the transport protocol of RAW HTTP, data are compiled using JSON Code, input data need:Patient ID, body temperature, supervisor doctor, output result for patient whether suspected infection;
The specific rules of abnormal body temperature monitoring are defined, set output of the body temperature more than 39 degrees Celsius as suspected infection, and It needs for result to be pushed to supervisor doctor in the form of short message;
For the request data received:{"patientId":"325344","temperature":39.3," doctor":" 01523 " } parse patient 325344 body temperature be 39.3 degrees Celsius;
Using the parameter parsed above, abnormal body temperature Monitoring Rules are called, judge patient temperature exception, are doubtful sense Patient is contaminated, meanwhile, by rules results by short massage notice to supervisor doctor 01523;
According to the definition of interface, the JSON of generation output result:{"result":"1","reason":" body temperature is more than 39 Degree Celsius, suspected infection patient " }, and return to called side.
Embodiment 3
The rule service that a diabetes patient examines project to open suggestion is defined, using the transport protocol of RAW HTTP, number It is encoded according to using JSON, input data needs:Patient ID, the inspection bulleted list that output result needs to open for patient;
The specific rules that diabetes patient examines project to open suggestion are defined, set the inspection defined in treatment of diabetes guide Project (such as glycosylated hemoglobin, T-CHOL, triglycerides, low density lipoprotein cholesterol, high-density lipoprotein cholesterol, Serum creatinine etc.) and its Check-Out Time the term of validity;
For the request data received:{"patientId":" 325344 " } Patient identification is parsed as 325344, and And inspection project and its inspection that the patient did nearest half a year are inquired from data center's repository according to Patient identification Time list;
Using the Patient identification parsed above and the inspection table data obtained from data center, diabetes patient's inspection is called The project of testing opens suggestion rule, and it is serum creatinine to judge the inspection project for needing to open;
According to the definition of interface, the JSON of generation output result:{"result":[" serum creatinine "] }, and return to calling Side.
Basic principle, main feature and the advantages of the present invention of the present invention has been shown and described above.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and what is described in the above embodiment and the description is only the present invention Principle, various changes and improvements may be made to the invention without departing from the spirit and scope of the present invention, these variation and Improvement is both fallen in the range of claimed invention.The present invention claims protection domain by appended claims and its Equivalent defines.

Claims (3)

  1. A kind of 1. general-purpose interface method for calling business rule, it is characterised in that:It is as follows:
    (1), interface defines:
    User by interface define description interactive interfacing protocol data form, and the required parameter of definition rule, Parameter type, parameter acquiring mode;
    (2), rule definition:
    According to the requirement of service logic, the decision logic of specific rules is defined, operation is carried out according to the parameter of input and logic is sentenced Disconnected, generation exports or triggers new processing procedure accordingly;
    (3), parameter of regularity parses:
    For the required parameter received, the parameter list defined according to step (1) carries out dissection process respectively, is formed and calls rule Then required complete parameter, and pass to rule invocation processing subsystem;
    (4), rule invocation is handled:
    The parameter list parsed using step (3), specified rule in call request parameter are performed specific rule and judged Or logical operation process, and the processing procedure responded according to the result execution defined in rule definition;
    (5), rules results encode:
    According to the data structure of the response results defined in step (1), the result generated in step (4) is encoded and returned To caller.
  2. 2. a kind of general-purpose interface method for calling business rule according to claim 1, it is characterised in that:The step (1) in, the communications protocol includes SOAP OVER HTTP or RAW HTTP, and data format is xml or json.
  3. 3. a kind of general-purpose interface method for calling business rule according to claim 1, it is characterised in that:The step (2) it in, triggers new processing procedure and includes sending mail, sends short message, sends wechat or change the data of external storage.
CN201711478920.4A 2017-12-29 2017-12-29 A kind of general-purpose interface method for calling business rule Pending CN108228487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711478920.4A CN108228487A (en) 2017-12-29 2017-12-29 A kind of general-purpose interface method for calling business rule

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711478920.4A CN108228487A (en) 2017-12-29 2017-12-29 A kind of general-purpose interface method for calling business rule

Publications (1)

Publication Number Publication Date
CN108228487A true CN108228487A (en) 2018-06-29

Family

ID=62646042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711478920.4A Pending CN108228487A (en) 2017-12-29 2017-12-29 A kind of general-purpose interface method for calling business rule

Country Status (1)

Country Link
CN (1) CN108228487A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542382A (en) * 2010-12-14 2012-07-04 中国移动通信集团贵州有限公司 Method and device for managing business rule
CN103186579A (en) * 2011-12-29 2013-07-03 北京亿阳信通科技有限公司 Database function-based rule implementation and application method and device
CN103532808A (en) * 2013-10-30 2014-01-22 江苏万全科技有限公司 Enterprise service bus for integrating rule engine
CN106485378A (en) * 2015-08-26 2017-03-08 平安科技(深圳)有限公司 The transmission method of business datum, system server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542382A (en) * 2010-12-14 2012-07-04 中国移动通信集团贵州有限公司 Method and device for managing business rule
CN103186579A (en) * 2011-12-29 2013-07-03 北京亿阳信通科技有限公司 Database function-based rule implementation and application method and device
CN103532808A (en) * 2013-10-30 2014-01-22 江苏万全科技有限公司 Enterprise service bus for integrating rule engine
CN106485378A (en) * 2015-08-26 2017-03-08 平安科技(深圳)有限公司 The transmission method of business datum, system server

Similar Documents

Publication Publication Date Title
CN110347560A (en) Abnormal prompt method, apparatus, system, equipment and the medium of big data product
CN106373063A (en) Automatic triage treatment control method based on interactive communication and system
CN109871229A (en) Management method, device, storage medium and the terminal device of code text
CN107895589A (en) A kind of clinical research accessory system and method
CN106776226A (en) The monitoring method and device of self-aided terminal
CN108008992A (en) One kind input operation processing method, processing unit and computer-readable recording medium
CN110504037A (en) The operating room digital operation station interconnected based on 5G technical information
CN103606026A (en) Internet of things-based endoscope disinfection tracing management system
CN108228487A (en) A kind of general-purpose interface method for calling business rule
CN107908537A (en) A kind of system and method based on the processing of kernel module exception information
CN106845067A (en) Business insurance is directly paid for and directly pay passage intelligence conversion system and method
CN109300541A (en) A kind of medical quality managent platform
CN109036504A (en) A kind of generation method, storage medium and the terminal device of ultrasound report
US20220189616A1 (en) Safeguarding Mechanism for the Operation of Medical Apparatuses Using Disposables in a Dialysis Environment
CN109889471A (en) Structured query sentence SQL injection detection method and system
CN107679373A (en) Method for acquiring authorized information, device and electronic equipment
CN106844078A (en) A kind for the treatment of method and apparatus of PCIE failures
US11228554B2 (en) Method and system for handling messages in a healthcare communication network
Chalmeta et al. A computer architecture based on disruptive information technologies for drug management in hospitals
CN112151178A (en) Intelligent health cloud platform based on Java language development
CN107977304A (en) A kind of system debug method and apparatus
CN106529113A (en) Reminding information sending method and server
US20200273568A1 (en) Method For Operating At Least One Respirator In A Communication Network
CN110706819A (en) Outpatient service analysis method, outpatient service analysis device, server and storage medium
CN114995215A (en) Control system based on auxiliary medicine dispensing cart

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629