Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for writing a genetic resource declaration, so as to improve reliability of filling contents of the genetic resource declaration.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a method of genetic resource declaration, comprising:
extracting a target field in the historical declaration by a preset mode, and storing the target field in a declaration database;
obtaining support materials uploaded by a user and involved in declaration, capturing a target field from the support materials, obtaining history declaration information with the highest similarity to the target field from a declaration database, and automatically writing declaration information based on the history declaration information and the target field;
performing logic check on each field of the automatically written declaration information based on preset logic in a logic check library;
and filling declaration information verified by the declaration logic verification module in a preset template.
Optionally, in the genetic resource declaration method, the extracting, in a preset manner, a target field in the history declaration includes:
and extracting a target field in the history declaration in an ETL mode.
Optionally, the genetic resource declaration method further includes:
and acquiring the supplementary logic input by the user, and loading the supplementary logic into the logic checking library to be used as preset logic.
Optionally, in the genetic resource declaration method, when obtaining the historical declaration information with the highest pair similar to the target field from the declaration database, the method specifically includes:
acquiring a declaration type input by a user, acquiring historical declaration information matched with the declaration type as candidate information, and acquiring the historical declaration information with the highest similarity to the target field from the candidate information.
Optionally, the above method for genetic resource declaration further comprises:
and displaying the logic checking result of each field through a display interface.
A genetic resource declaration apparatus comprising:
the declaration analysis module is used for extracting a target field in the historical declaration book in a preset mode and storing the target field in a declaration database;
the declaration writing module is used for acquiring support materials uploaded by a user and involved in declaration, capturing a target field from the support materials, acquiring historical declaration information with the highest similarity to the target field from the declaration database, and automatically writing the declaration information based on the historical declaration information and the target field;
the declaration logic checking module is used for logically checking each field of declaration information obtained by automatic writing based on preset logic in the logic checking library;
and the report generation module fills the declaration information checked by the declaration logic checking module in a preset template.
Optionally, in the genetic resource declaration apparatus, the extracting, in a preset manner, a target field in the history declaration book includes:
and extracting a target field in the history declaration in an ETL mode.
Optionally, in the genetic resource declaration apparatus, the declaration logic checking module is further configured to check the declaration logic; and acquiring the supplementary logic input by the user, and loading the supplementary logic into the logic checking library to be used as preset logic.
Optionally, in the above genetic resource declaration apparatus, when obtaining the historical declaration information similar to the target field and having the highest pair from the declaration database, the declaration writing module is specifically configured to:
acquiring a declaration type input by a user, acquiring historical declaration information matched with the declaration type as candidate information, and acquiring the historical declaration information with the highest similarity to the target field from the candidate information.
Optionally, in the genetic resource declaration apparatus, the declaration logic checking module is further configured to:
and displaying the logic checking result of each field through a display interface.
Based on the technical scheme, in the scheme provided by the embodiment of the invention, when the user needs to perform the genetic resource declaration, the user sends the support material to the system applying the method, the system grabs the target field from the support material, then obtaining the history declaration information with the similar pair and the highest pair with the target field from the declaration database, the automatic writing of the declaration information based on the history declaration information and the target field is completed, logic check is carried out on each field of the declaration information obtained by automatic writing based on preset logic in a logic check library, and after the declaration information is checked to be correct, the declaration information checked by the declaration logic checking module is filled in the preset template to obtain a declaration report, so that the automatic writing of the declaration file is realized, the reliability of the filling content is ensured, and the declaration efficiency is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to improve the accuracy of the genetic resource declaration information and improve the completion efficiency of the genetic resource declaration information, the present scheme discloses a genetic resource declaration method, and with reference to fig. 1, the method includes:
step S101: extracting a target field in the historical declaration by a preset mode, and storing the target field in a declaration database;
in this step, the specific contents of the declaration in the PDF format or word format that have been written in the past are extracted in a preset manner and stored in a declaration database, where the preset manner may be an ETL manner or other manners capable of extracting data, and if the declaration is structured data, data format conversion (if necessary) is performed through the ETL, and the conversion result is stored in the declaration database.
Step S102: obtaining support materials uploaded by a user and related to declaration;
in the scheme, a user can upload support materials of the current declaration design to a system applying the method in a file uploading mode, wherein the support materials can refer to data sources of declaration forms, such as clinical test schemes, cooperation protocols, informed consent, ethical batch pieces and the like;
step S103: grabbing target fields from the support material;
in the step, data analysis is carried out on the support material related to the current declaration by a target field capturing mode, and partial fields related to a preset declaration form are found out, wherein the fields can comprise basic information of the current declaration, such as declaration type, test name and ID, test stage and the like;
step S104: acquiring historical declaration information with similar pairs and highest pairs with the target fields from the declaration database;
in the scheme, after the target field is obtained, similar declaration searching is carried out in a declaration database according to the content information of the target field, and historical declaration information similar to the target field and having the highest pair is obtained;
step S105: automatically writing declaration information based on the historical declaration information and the target field;
after the historical declaration information with the highest pair similar to the target field is obtained, the declaration is automatically written by combining the filling formats of the current declaration information and the past historical declaration information.
For example, the automatic composition of data is based on the form shown in FIG. 2.
Step S106: performing logic check on each field of the automatically written declaration information based on preset logic in a logic check library;
in the scheme, after the automatic writing is finished, the written contents are logically checked one by one according to declaration fields, and the logical check comprises three aspects: firstly, currently, performing internal logic check on a filed in declaration, and if the test ending date cannot be ahead of the starting date, actually screening the number of the subjects in the group to be tested cannot exceed the planned group entering amount; planning that the sample volume of the outbound sample cannot exceed the total application volume, the attribution of the missed filling research result and the like; the second aspect is that logic check is carried out after comparison with the past declaration content, if the change declaration is written, the quantity of a certain sample single case is consistent with the first time but the total quantity is inconsistent or the size of the same subject is the same, and in the similar medicines, the quantity variance of the current declaration sample is larger than a preset threshold value and the like; and in the third aspect, the past internal and external appraisal opinions are inquired, and the potential logic errors are prompted, and if the same type of errors in the past appraisal opinion database occur for multiple times within a specified time period, the logic verification prompt can be directly performed.
Step S107: filling declaration information verified by the declaration logic verification module in a preset template;
and when the logic verification is passed, generating a declaration report shown in fig. 3 according to the verified declaration information and the specified content template and the style template, for example, generating a declaration in a pdf or word format according to the international cooperation application template and the style library.
In the scheme, when a user needs to make a genetic resource declaration, the user sends a supporting material to a system applying the method, the system grabs a target field from the supporting material, then obtains the historical declaration information similar to the target field and having the highest pair from the declaration database, automatically writes the declaration information based on the historical declaration information and the target field, after the automatic writing is completed, logically checks each field of the declaration information obtained by automatic writing based on preset logic in a logic checking database, and fills the declaration information checked by a declaration logic checking module in a preset template to obtain a declaration report after the checking is correct, so that the automatic writing of the declaration document is realized, the reliability of the filling content is ensured, and the declaration efficiency is improved.
In the technical solution disclosed in another embodiment of the present application, it is considered that in order to perfect the checking logic, the preset logic needs to be modified, supplemented, or deleted occasionally, and therefore, in this solution, the preset logic may be modified, supplemented, or deleted based on a user operation instruction obtained by a call, for example, the preset logic may be supplemented based on a user demand, and at this time, a supplementary logic entered by a user is obtained, and the supplementary logic is loaded into the logic checking library to be used as the preset logic.
In another embodiment of the present invention, in consideration of the huge amount of history declaration information in the declaration database, when obtaining the history declaration information similar to the target field and having the highest pair from the candidate information, the requirement on the data processing capability of the system is high, and thus, in this embodiment, the history declaration information in the declaration database may be classified first, and when obtaining the history declaration information similar to the target field and having the highest pair from the declaration database, the declaration type entered by the user may be obtained first, the history declaration information matching the declaration type may be obtained as the candidate information, and then the history declaration information similar to the target field and having the highest pair from the candidate information may be obtained. At this time, the requirement on the data processing capacity of the system is low, and the determination speed of the similar pair of the highest history declaration information is improved.
In a technical solution disclosed in another embodiment of the present application, as shown in fig. 4, a logic check result may be presented to a user through a display device, so that the user may find a place where the logic check is incorrect in time, and further, the actual situation under consideration is varied, in this scheme, an existing check logic may not be applicable to check of a certain item of data or multiple items of data, when the logic check result considers that the data is incorrect, the user may represent that the data does not need to be modified by typing in a command for representing continuation of "no modification", and when the system acquires the command, the logic check result of the item of data is changed to "check pass".
Corresponding to the above method, the present embodiment discloses a genetic resource reporting apparatus, and the specific working contents of each unit in the apparatus refer to the contents of the above method embodiments, and the following describes the genetic resource reporting apparatus provided in the embodiments of the present invention, and the genetic resource reporting apparatus described below and the genetic resource reporting method described above may be referred to correspondingly.
Referring to fig. 5, the genetic resource declaration apparatus may include:
the declaration analysis module 1 is used for extracting a target field in the historical declaration book in a preset mode and storing the target field in a declaration database;
the declaration writing module 2 is used for acquiring support materials uploaded by a user and related to declaration, capturing a target field from the support materials, acquiring history declaration information similar to the target field and having the highest pair from the declaration database, and automatically writing the declaration information based on the history declaration information and the target field;
the declaration logic checking module 3 is used for performing logic checking on each field of declaration information obtained by automatic writing based on preset logic in the logic checking library;
and the report generation module 4 fills the declaration information checked by the declaration logic checking module in a preset template.
Corresponding to the method, the extracting the target field in the history declaration by a preset mode comprises the following steps:
and extracting a target field in the history declaration in an ETL mode.
Corresponding to the method, the reporting logic checking module is also used for reporting the logic checking module; and acquiring the supplementary logic input by the user, and loading the supplementary logic into the logic checking library to be used as preset logic.
Corresponding to the above method, when obtaining the history declaration information similar to the target field and having the highest pair from the declaration database, the declaration writing module is specifically configured to:
acquiring a declaration type input by a user, acquiring historical declaration information matched with the declaration type as candidate information, and acquiring the historical declaration information with the highest similarity to the target field from the candidate information.
Corresponding to the method, the reporting logic checking module is further configured to:
and displaying the logic checking result of each field through a display interface.
In response to the above method, the present application further discloses a storage medium, wherein the storage medium stores a plurality of instructions, the instructions are suitable for being loaded by a processor,
to carry out the steps of: extracting a target field in the historical declaration by a preset mode, and storing the target field in a declaration database;
obtaining support materials uploaded by a user and involved in declaration, capturing a target field from the support materials, obtaining history declaration information with the highest similarity to the target field from a declaration database, and automatically writing declaration information based on the history declaration information and the target field;
performing logic check on each field of the automatically written declaration information based on preset logic in a logic check library;
and filling declaration information verified by the declaration logic verification module in a preset template.
A central device, comprising: a memory and a processor; the memory stores a program adapted for execution by the processor, the program for:
searching broadcast information of peripheral equipment, and judging whether the peripheral equipment exists in a preset distance range;
if the peripheral equipment exists in the preset distance range, selecting a Bluetooth link with the lowest security level to be connected with the peripheral equipment in a matching way;
communicating information with the peripheral device.
Fig. 6 is a hardware structure diagram of a server according to an embodiment of the present invention, which is shown in fig. 3 and includes: the method can comprise the following steps: at least one processor 100, at least one communication interface 300, at least one memory 200, and at least one communication bus 400;
in the embodiment of the present invention, the number of the processor 100, the communication interface 300, the memory 200, and the communication bus 400 is at least one, and the processor 100, the communication interface 300, and the memory 200 complete the communication with each other through the communication bus 400; it is clear that the communication connections shown by the processor 100, the communication interface 300, the memory 200 and the communication bus 400 shown in fig. 6 are merely optional;
optionally, the communication interface 300 may be an interface of a communication module, such as an interface of a GSM module;
the processor 100 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
Memory 200 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Wherein, the processor 100 is specifically configured to:
extracting a target field in the historical declaration by a preset mode, and storing the target field in a declaration database;
obtaining support materials uploaded by a user and involved in declaration, capturing a target field from the support materials, obtaining history declaration information with the highest similarity to the target field from a declaration database, and automatically writing declaration information based on the history declaration information and the target field;
performing logic check on each field of the automatically written declaration information based on preset logic in a logic check library;
and filling declaration information verified by the declaration logic verification module in a preset template.
For convenience of description, the above system is described with the functions divided into various modules, which are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.