CN117238433B - Method for automatically isolating document data based on Libreoffice - Google Patents
Method for automatically isolating document data based on Libreoffice Download PDFInfo
- Publication number
- CN117238433B CN117238433B CN202311495266.3A CN202311495266A CN117238433B CN 117238433 B CN117238433 B CN 117238433B CN 202311495266 A CN202311495266 A CN 202311495266A CN 117238433 B CN117238433 B CN 117238433B
- Authority
- CN
- China
- Prior art keywords
- data
- document
- attribute
- isolation
- json
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000002955 isolation Methods 0.000 claims abstract description 86
- 238000004519 manufacturing process Methods 0.000 claims abstract description 3
- 238000012545 processing Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 5
- 230000008859 change Effects 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a method for automatically isolating document data based on Libreoffice, which comprises the steps of firstly, manufacturing an ODT document template based on Libreoffice, wherein the document attribute of data ID is Json, and adding whether the data isolating attribute is added in the Json; a manager sets a data isolation attribute for a data ID needing data isolation in a document template; the doctor opens the document template with updated data isolation attribute, records the corresponding times of the written document, the application program updates all the data IDs needing data isolation in the document into new data IDs with times, the doctor performs normal document operation in the document, and when the document is saved, all the data needing data isolation are respectively saved in the corresponding new data IDs, so that the data isolation is realized. The manager does not need to use a plurality of document templates, only needs to select the same document template, and does not generate a plurality of documents with the same format and different times on the user interface, so that the method is flexible to use and small in maintenance workload.
Description
Technical Field
The invention belongs to the field of data processing, and particularly relates to a method for automatically isolating document data based on Libreoffice.
Background
The electronic medical record is a future trend, and the derived electronic medical record analysis is an important component of the electronic case. Based on the current requirements for structuring medical records, structured storage of data of documents is required, and one data ID corresponds to one data content, for example, patient name data ID corresponds to patient name, so that one-to-one correspondence can be used for data utilization. However, in the practical application scenario, the same data ID corresponds to different contents, for example, the data is "operation name", if the same patient performs multiple operations, there are multiple operation names, the data ID corresponding to the "operation name" needs to correspond to multiple values, and the system needs to perform data isolation to distinguish the times, so that the system knows the name of which operation when acquiring a certain operation name. It is conventional practice to add a number of times to the data ID, i.e. the data ID of the surgical name becomes the surgical name [ 1 ], which is a number of times in the system. Because the doctor writes according to the preset document template when filling the electronic case, the data IDs of different times are required to be placed in a plurality of documents, namely, the operation name [ 1 ] is in the document [ 1 ], the operation name [ 2 ] is in the document [ 2 ], and the like, and the doctor needs to select the document of the corresponding times for writing on the user interface when writing, so that the stored data can be isolated. In the method, a plurality of document templates are needed, the document templates are the same except for different data IDs, repeated work is more, when the number of times needed by a user exceeds the number of the document templates, the document templates with corresponding times are newly added, and the maintenance workload of the document is large and inflexible.
Disclosure of Invention
The invention aims to provide a method for automatically isolating document data based on Libreoffice, which is flexible in use and small in maintenance workload.
The invention discloses a method for automatically isolating document data based on Libreoffice, which comprises the following steps:
step 1, manufacturing an ODT document template based on LibreOoffice, wherein the document attribute of a data ID is Json, whether a data isolation attribute is added in Json, the attribute value defaults to 0, the data ID does not need data isolation, and the attribute value is 1, the data ID needs data isolation;
step 2, a manager sets a data isolation attribute for a data ID needing data isolation in the document template;
and 3, the doctor opens the document template with the updated data isolation attribute in the step 2, records the corresponding times of writing the document, the application program updates all the data IDs needing to be subjected to data isolation into new data IDs with times, the document can be opened after the update is completed, the doctor performs normal document operation in the document, and when the document is saved, all the data needing to be subjected to data isolation are respectively saved in the corresponding new data IDs, so that the data isolation is realized.
The step 2 is that the manager sets data isolation attribute for the data ID needing data isolation in the document template, specifically: opening a document template needing to be subjected to data isolation, clicking a data ID needing to be subjected to data isolation in the document template, acquiring and displaying a document attribute Json of the clicked data ID by using a GetTextField () function of a Doc object, finding whether the data isolation attribute in the document attribute Json is set to be 1, and synchronously updating the attribute value of the data ID into the document template through a setTextField (document attribute Json) function of the document Doc object after the setting is completed.
The application program updates all the data IDs needing data isolation in the document to be new data IDs with times, and the following steps are executed:
step 3.1, acquiring Doc objects of the document, acquiring all data IDs and corresponding document attributes in the document by using a GetTextFields () function of the Doc objects, and outputting a data ID document attribute Json set;
step 3.2, traversing the data ID document attribute Json set, and analyzing the document attributes of the data IDs one by one;
step 3.3, aiming at the analyzed document attribute of the data ID, taking out whether the data isolation attribute is found, if the attribute is not found, defaulting to the fact that the data ID does not need data isolation, skipping, and returning to the step 3.3 to continuously read the document attribute of the next data ID; if the data isolation attribute is found, acquiring a data isolation attribute value;
step 3.4, when the data isolation attribute value is 0 or empty, if the data isolation is not needed, skipping, and returning to step 3.3 to continuously read the document attribute of the next data ID; when the data isolation attribute value is 1, representing that data isolation is needed, entering step 3.5;
step 3.5, obtaining ID attribute in the data ID document attribute Json and doctor input times;
step 3.6, splicing the data ID and the doctor input times according to a set format to form a new data ID;
step 3.7, changing the data ID of the data ID document attribute Json set into a new data ID, and defining the document attribute Json of the original data ID after the change as the document attribute of the new data ID as the new document attribute Json; using the UpdateTextField function of Doc object of the document, inputting new document attribute Json, updating the data ID in the document template to new data ID; and returning to the step 3.3, and continuing to read the document attribute of the next data ID until all the data IDs in the data ID document attribute Json set are traversed.
The new data ID format is: [ data ID|times ].
An electronic device, comprising:
one or more processors;
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the processing steps of any of the methods for automatically isolating document data based on LibreOffice.
A computer readable medium having stored thereon a computer program which when executed by a processor performs the processing steps of any of the above methods for automatic document data isolation based on library office.
After the technical scheme of the invention is adopted, when a document needing to be subjected to data isolation according to the times exists, a plurality of document templates with the same format and different times are not required to be manufactured, only one document template is required to be manufactured, then the data ID needing to be subjected to data isolation in the document template is marked with the data isolation mark, when the document template is used by a doctor, the corresponding times of writing are firstly recorded, and then the data ID needing to be subjected to data isolation in the document template is automatically added with the times, so that a document with the times capable of carrying out data isolation is formed. Therefore, the invention can dynamically change the data ID which needs to be isolated from the data in the document according to the times required by the user, thereby achieving the purpose of automatic data isolation.
Drawings
FIG. 1 is a timing diagram of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, it being apparent that the described embodiments are only some, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
As shown in fig. 1, a method for automatically isolating document data based on LibreOffice according to an embodiment of the present invention includes the following steps:
step 1, a document template is manufactured, the document attribute of the data ID of the ODT document template based on LibreOffice is Json, whether a data isolation attribute is added in Json, for example, the data isolation attribute is set as an isNumber attribute, the attribute value defaults to 0, namely, data isolation is not needed, and the attribute value is 1, which indicates that the data ID needs data isolation; the attribute value only needs two different values to respectively indicate that data isolation is needed and data isolation is not needed, and 0 or 1 is not needed to be selected;
step 2, the manager sets data isolation attribute for the data ID needing data isolation in the document template
Opening a document template which needs to be subjected to data isolation, and carrying out attribute updating on all data IDs which need to be subjected to data isolation, wherein the method specifically comprises the following steps: clicking a data ID needing data isolation in a document template, acquiring and displaying a document attribute Json of the clicked data ID by using a GetTextField () function of a Doc object, finding an isNumber attribute in the document attribute Json, setting the attribute value to be 1, and synchronously updating the attribute value of the data ID into the document template by using a setTextField (document attribute Json) function of the document Doc object after the setting is completed;
step 3, a doctor opens the document template with updated data isolation attributes in the step 2, records the corresponding times of writing the document (for example, the operation is recorded in the step 3), the application program updates all data IDs needing data isolation in the document into new data IDs with times, the document can be opened after the update is completed, the doctor performs normal document operation in the document, and when the document is saved, all data needing data isolation are respectively saved in the corresponding new data IDs, so that the data isolation is realized;
the application program updates all the data IDs needing data isolation in the document to be new data IDs with times, and the following steps are executed:
step 3.1, acquiring Doc objects of the document, acquiring all data IDs and corresponding document attributes in the document by using a GetTextFields () function of the Doc objects, and outputting a data ID document attribute Json set;
step 3.2, traversing the data ID document attribute Json set, and analyzing the document attributes of the data IDs one by one;
step 3.3, aiming at the analyzed document attribute of the data ID, taking out the isNumber attribute in the document attribute, if the attribute is not found, defaulting to the fact that the data ID does not need data isolation, skipping, and returning to the step 3.3 to continuously read the document attribute of the next data ID; if the isNumber attribute is found, acquiring an isNumber attribute value;
step 3.4, when the isNumber attribute value is 0 or empty, if no data isolation is needed, skipping, and returning to step 3.3 to continuously read the document attribute of the next data ID; when the isNumber attribute value is 1, the data isolation is needed, and the step 3.5 is entered;
step 3.5, obtaining ID attribute in the data ID document attribute Json and doctor input times;
step 3.6, splicing the data ID and the doctor input times according to the set format to form a new data ID, wherein the new data ID format in the embodiment is as follows: [ data ID|times ];
step 3.7, changing the data ID of the data ID document attribute Json set into a new data ID (data ID|times), and defining the document attribute Json of the original data ID after the change as the document attribute of the new data ID as the new document attribute Json; using the UpdateTextField function of Doc object of the document, inputting new document attribute Json, updating the data ID in the document template to new data ID; and returning to the step 3.3, and continuing to read the document attribute of the next data ID until all the data IDs in the data ID document attribute Json set are traversed.
In use, the user operation steps are as follows:
an administrator opens a document template requiring data isolation; the administrator sets whether the data isolation attribute is yes in the document attribute of the data ID needing data isolation in the document; the doctor uses the document template in the step 2 to write medical records, and the doctor inputs the corresponding times of the medical records before opening the document template; and (5) after the doctor writes the medical record, storing the document. After the doctor inputs the corresponding times of the medical record writing in the step 3, the application program updates the data ID needing data isolation in the document into the new data ID with times by combining the input times, the document is opened after the updating is finished, and when the document is stored, all the data needing data isolation are respectively stored into the corresponding new data IDs, so that the data isolation is realized, when the medical record writing is needed next time, only the same document template is needed to be selected, and all the data isolation processes are executed in the application program. The manager does not need to be used as a plurality of document templates, a plurality of documents with the same format and only different times can not appear on the user interface, and doctors do not need to select and find according to the times on the user interface, so that the system is flexible to use and small in maintenance workload.
Example two
The second embodiment of the present invention provides an electronic device, which may be the foregoing terminal device or server, or may be a terminal device or server connected to the foregoing terminal device or server to implement a method of the embodiment of the present invention.
The electronic device may include: a processor (e.g., CPU), a memory, a data acquisition device; the processor is connected with and controls the data acquisition device. The memory may store various instructions for performing the various processing functions and implementing the processing steps described in the methods of the previous embodiments.
Example III
The third embodiment of the present invention also provides a computer-readable storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the processing steps described in the method of the first embodiment.
The present invention includes a computer program, carried on a computer readable medium, containing program code for performing the method shown in the flowcharts. The computer program may be downloaded and installed from a network through a communication part, and/or installed from a removable medium. The processing steps described in the method of the first embodiment described above are performed when the computer program is executed by a Central Processing Unit (CPU).
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 elements and steps are described above generally in terms of functionality in order to clearly illustrate the 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 solution. 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 foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.
Claims (4)
1. The method for automatically isolating the document data based on Libreoffice is characterized by comprising the following steps:
step 1, manufacturing an ODT document template based on LibreOoffice, wherein the document attribute of a data ID is Json, whether a data isolation attribute is added in Json, the attribute value defaults to 0, the data ID does not need data isolation, and the attribute value is 1, the data ID needs data isolation;
step 2, a manager sets a data isolation attribute for a data ID needing data isolation in the document template;
the method comprises the following steps: opening a document template needing to be subjected to data isolation, clicking a data ID needing to be subjected to data isolation in the document template, acquiring and displaying a document attribute Json of the clicked data ID by using a GetTextField () function of a Doc object, finding whether the data isolation attribute in the document attribute Json is a data isolation attribute, setting the attribute value to be 1, and synchronously updating the attribute value of the data ID into the document template through a setTextField () function of an incoming document attribute Json of the document Doc object after the setting is completed;
step 3, a doctor opens the document template with updated data isolation attributes in the step 2, records the corresponding times of writing the document, the application program updates all data IDs needing data isolation in the document into new data IDs with times, the document can be opened after the update is completed, the doctor performs normal document operation in the document, and when the document is saved, all data needing data isolation are respectively saved in the corresponding new data IDs, so that data isolation is realized;
the application program updates all the data IDs needing data isolation in the document to be new data IDs with times, and the method comprises the following steps:
step 3.1, acquiring Doc objects of the document, acquiring all data IDs and corresponding document attributes in the document by using a GetTextFields () function of the Doc objects, and outputting a data ID document attribute Json set;
step 3.2, traversing the data ID document attribute Json set, and analyzing the document attributes of the data IDs one by one;
step 3.3, aiming at the analyzed document attribute of the data ID, taking out whether the data isolation attribute is found, if the attribute is not found, defaulting to the fact that the data ID does not need data isolation, skipping, and returning to the step 3.3 to continuously read the document attribute of the next data ID; if the data isolation attribute is found, acquiring a data isolation attribute value;
step 3.4, when the data isolation attribute value is 0 or empty, if the data isolation is not needed, skipping, and returning to step 3.3 to continuously read the document attribute of the next data ID; when the data isolation attribute value is 1, representing that data isolation is needed, entering step 3.5;
step 3.5, obtaining ID attribute in the data ID document attribute Json and doctor input times;
step 3.6, splicing the data ID and the doctor input times according to a set format to form a new data ID;
step 3.7, changing the data ID of the data ID document attribute Json set into a new data ID, and defining the document attribute Json of the original data ID after the change as the document attribute of the new data ID as the new document attribute Json; using the UpdateTextField () function of Doc object of the document, inputting new document attribute Json, updating the data ID in the document template to new data ID; and returning to the step 3.3, and continuing to read the document attribute of the next data ID until all the data IDs in the data ID document attribute Json set are traversed.
2. The method for automatically isolating document data based on LibreOffice according to claim 1, wherein the new data ID format is: [ data ID|times ].
3. An electronic device, comprising:
one or more processors;
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the processing steps of the method for automatically isolating document data based on LibreOffice according to any one of claims 1 to 2.
4. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor performs the processing steps of the method for automatic document data isolation based on LibreOffice as claimed in any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311495266.3A CN117238433B (en) | 2023-11-10 | 2023-11-10 | Method for automatically isolating document data based on Libreoffice |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311495266.3A CN117238433B (en) | 2023-11-10 | 2023-11-10 | Method for automatically isolating document data based on Libreoffice |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117238433A CN117238433A (en) | 2023-12-15 |
CN117238433B true CN117238433B (en) | 2024-02-06 |
Family
ID=89089679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311495266.3A Active CN117238433B (en) | 2023-11-10 | 2023-11-10 | Method for automatically isolating document data based on Libreoffice |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117238433B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117422059B (en) * | 2023-12-19 | 2024-03-26 | 智业软件股份有限公司 | Content combination replacement method and system based on Libreoffice document |
CN117577259B (en) * | 2024-01-16 | 2024-04-09 | 智业软件股份有限公司 | Method for generating lightweight document suite based on Libreoffice |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203532A (en) * | 2016-03-16 | 2017-09-26 | 阿里巴巴集团控股有限公司 | Construction method, the implementation method of search and the device of directory system |
CN108766513A (en) * | 2018-06-01 | 2018-11-06 | 安徽八千里科技发展股份有限公司 | A kind of wisdom health medical treatment data structured processing system |
CN110990396A (en) * | 2019-10-12 | 2020-04-10 | 贝壳技术有限公司 | Data storage method, device and storage medium |
WO2021231002A1 (en) * | 2020-05-15 | 2021-11-18 | Epsilon Data Management, LLC | Data isolation and security system and method |
CN115481615A (en) * | 2022-08-30 | 2022-12-16 | 中电信数智科技有限公司 | Document generation method and device, electronic equipment and nonvolatile storage medium |
CN115840956A (en) * | 2022-12-16 | 2023-03-24 | 上海派拉软件股份有限公司 | File processing method, device, server and medium |
-
2023
- 2023-11-10 CN CN202311495266.3A patent/CN117238433B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203532A (en) * | 2016-03-16 | 2017-09-26 | 阿里巴巴集团控股有限公司 | Construction method, the implementation method of search and the device of directory system |
CN108766513A (en) * | 2018-06-01 | 2018-11-06 | 安徽八千里科技发展股份有限公司 | A kind of wisdom health medical treatment data structured processing system |
CN110990396A (en) * | 2019-10-12 | 2020-04-10 | 贝壳技术有限公司 | Data storage method, device and storage medium |
WO2021231002A1 (en) * | 2020-05-15 | 2021-11-18 | Epsilon Data Management, LLC | Data isolation and security system and method |
CN115481615A (en) * | 2022-08-30 | 2022-12-16 | 中电信数智科技有限公司 | Document generation method and device, electronic equipment and nonvolatile storage medium |
CN115840956A (en) * | 2022-12-16 | 2023-03-24 | 上海派拉软件股份有限公司 | File processing method, device, server and medium |
Also Published As
Publication number | Publication date |
---|---|
CN117238433A (en) | 2023-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117238433B (en) | Method for automatically isolating document data based on Libreoffice | |
CN108388622B (en) | API interface dynamic generation method and device, computer equipment and storage medium | |
CN108536745B (en) | Shell-based data table extraction method, terminal, equipment and storage medium | |
CN112084270A (en) | Data blood margin processing method and device, storage medium and equipment | |
CN108415998B (en) | Application dependency relationship updating method, terminal, device and storage medium | |
CN111737227A (en) | Data modification method and system | |
CN116244387A (en) | Entity relationship construction method, device, electronic equipment and storage medium | |
CN109960538A (en) | A kind of configuration interface management method, configuration interface managing device and electronic equipment | |
CN108694172B (en) | Information output method and device | |
CN111881136A (en) | Method for realizing incremental data management in medical industry | |
CN109725973B (en) | Data processing method and data processing device | |
CN116560629A (en) | Serialization method, device, medium and equipment for data transmission object | |
CN116483707A (en) | Test method, test device, test apparatus, test program, and test program | |
CN108196921B (en) | Document development method and device, computer equipment and storage medium | |
US11941032B2 (en) | Key name generation method and apparatus and non-transitory computer-readable storage medium | |
CN114168119B (en) | Code file editing method, device, electronic equipment and storage medium | |
CN115543428A (en) | Simulated data generation method and device based on strategy template | |
CN108334621B (en) | Database operation method, device, equipment and computer readable storage medium | |
CN112003837B (en) | Intelligent equipment adaptation method and device based on Modbus protocol and storage medium | |
CN112632266B (en) | Data writing method and device, computer equipment and readable storage medium | |
CN110471708B (en) | Method and device for acquiring configuration items based on reusable components | |
CN107506299B (en) | Code analysis method and terminal equipment | |
US20070156775A1 (en) | Metadata transformation in copy and paste scenarios between heterogeneous applications | |
CN110866005A (en) | Internet of things data acquisition management method and system, storage medium and terminal | |
US20120198373A1 (en) | Focus-Driven User Interface |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |