CN105302789A - Editing method of health information shared document template buffer storage - Google Patents

Editing method of health information shared document template buffer storage Download PDF

Info

Publication number
CN105302789A
CN105302789A CN201510880784.6A CN201510880784A CN105302789A CN 105302789 A CN105302789 A CN 105302789A CN 201510880784 A CN201510880784 A CN 201510880784A CN 105302789 A CN105302789 A CN 105302789A
Authority
CN
China
Prior art keywords
data
template
storage
shared document
locally buffered
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.)
Granted
Application number
CN201510880784.6A
Other languages
Chinese (zh)
Other versions
CN105302789B (en
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.)
WANDA INFORMATION CO Ltd
Original Assignee
WANDA INFORMATION 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 WANDA INFORMATION CO Ltd filed Critical WANDA INFORMATION CO Ltd
Priority to CN201510880784.6A priority Critical patent/CN105302789B/en
Publication of CN105302789A publication Critical patent/CN105302789A/en
Application granted granted Critical
Publication of CN105302789B publication Critical patent/CN105302789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an editing method of health information shared document template buffer storage. The editing method comprises a data model document buffer storage method and a template constraint rule data buffer storage method. The editing method of the health information shared document template buffer storage on the basis of HTML5 LocalStorage is adopted, the situation that template constraint rule data are lost never occurs except that the buffer storage is specially emptied, and a guarantee is provided for establishing a reliable health information shared document development system.

Description

The edit methods that a kind of health information shared document stencil buffers stores
Technical field
The present invention relates to the edit methods that a kind of health information shared document stencil buffers based on HTML5LocalStorage technology stores.
Background technology
Carrying out often to cause network connection interruption because network environment is poor in health information shared document edit model process, thus making the template constraint rule loss of data of shared document template.The reason often causing this kind of situation to occur has two: the first, the data model tree of template needs frequent and service end to carry out service interaction to obtain the son node number certificate of model tree present node when showing; The second, submit to when storing and be in waiting status for a long time because network environment is poor, cause the loss of data of template constraint rule when refresh page.
Summary of the invention
The present invention wants technical solution problem to be: the template constraint rule loss of data avoiding the shared document template caused because network environment is poor.
In order to solve the problems of the technologies described above, technical scheme of the present invention there is provided the edit methods that a kind of health information shared document stencil buffers stores, and comprises data pattern file buffer storage method and template constraint rule data buffering storage means, it is characterized in that,
Data pattern file buffer storage method comprises the following steps:
Step 1, enter the shared document edit model page after check all data types whether having stored template data model in the locally buffered storage of browser XML definition, if buffer-stored, carry out version information comparison, again download XMLSchema file in need if not latest edition; If do not carry out locally buffered storage, download XMLSchema file in need, and record respective version information;
Step 2, use JavaScript script are resolved XMLSchema file, and locally buffered storage is carried out in the XML of all data types definition;
Step 3, required model tree when to build edit model according to these data types in step 2;
Template constraint rule data buffering storage means comprises the following steps:
After completing editing operation at the edit model page, while carrying out preserving, the template constraint rule data corresponding with current template edit page are write in the data queue in locally buffered memory block, then while user carries out other operation, backstage can adopt polling mode, by the template constraint rule data asynchronous upload in locally buffered storage area data queue to service end, upload successfully, the template constraint rule data in locally buffered storage area data queue are removed.
Preferably, in described step 3, when needing to launch the node of described model tree, from locally buffered storage, obtaining the XML definition of data type, define the sub-level node of generation model tree according to XML.
The edit methods that the present invention is stored by the health information shared document stencil buffers adopted based on HTML5LocalStorage, unless specially emptied this buffer-stored from browser, never there is the situation of template constraint rule loss of data, providing guarantee for setting up reliable health information shared document development system.
Embodiment
For making the present invention become apparent, be hereby described in detail below with preferred embodiment.
Health information system first sets up a model, then dynamically generates an edit model page according to this model, and user just can fill in corresponding data on the edit model page.Based on this, the invention provides the edit methods that a kind of health information shared document stencil buffers stores, that includes data pattern file buffer storage method and template constraint rule data buffering storage means.
Data pattern file buffer storage method comprises the following steps:
Step 1, enter the shared document edit model page after check all data types whether having stored template data model in the locally buffered storage of browser XML definition.Simply by the key word obtaining LocalStorage in code " schema.version " judge.
If buffer-stored, carry out version information comparison, again download XMLSchema file in need if not latest edition.
If do not carry out locally buffered storage, download XMLSchema file in need, and record respective version information.
Step 3, use JavaScript script are resolved XMLSchema file, and locally buffered storage is carried out in the XML of all data types definition.
Step 4, required model tree when to build edit model according to these data types in step 3, such as when carrying out Observation entry template editor, from locally buffered storage, obtain Observation compound type, and traversal generates the next stage child node of the type.
When needing to launch the node of model tree, from locally buffered storage, obtaining the XML definition of data type, define the sub-level node of generation model tree according to XML.Such as, when needing to launch the id node of Observation entry, be that II type this node known has two attribute: root and extension from the type of id, so need to insert two row chartings below id node is expert at.
Template constraint rule data buffering storage means comprises the following steps:
Template constraint rule data buffering storage means realizes (employing false code in description) as follows:
Step 1, system are by creating in locally buffered memory block the asynchronous upload process that data queue realizes template data.Because the LocalStorage technology of HTML5 only can store character string type, directly queue cannot be realized.So in shared document template development system product, create a JavaScript class and realize first in first out (FIFO) queue operation, the LocalStorage of HTML5 is encapsulated.
When realizing, use LocalStorage key word " template.queue " to preserve all queue element (QE) identifiers, and store real data with key word " queue element (QE) identifier ".
Step 2, first, after completing editing operation at the edit model page, click " preservations " button, these template constraint rule data write in the data queue in locally buffered memory block by system, then just can continue other and operate.
System background can adopt polling mode, by the template constraint rule data asynchronous upload in locally buffered storage area data queue to service end.If because network reason is uploaded unsuccessful, then can continue trial and upload.When uploading successfully, the template constraint rule data in locally buffered storage area data queue remove by system.

Claims (2)

1. an edit methods for health information shared document stencil buffers storage, comprises data pattern file buffer storage method and template constraint rule data buffering storage means, it is characterized in that,
Data pattern file buffer storage method comprises the following steps:
Step 1, enter the shared document edit model page after check all data types whether having stored template data model in the locally buffered storage of browser XML definition, if buffer-stored, carry out version information comparison, again download XMLSchema file in need if not latest edition; If do not carry out locally buffered storage, download XMLSchema file in need, and record respective version information;
Step 2, use JavaScript script are resolved XMLSchema file, and locally buffered storage is carried out in the XML of all data types definition;
Step 3, required model tree when to build edit model according to these data types in step 2;
Template constraint rule data buffering storage means comprises the following steps:
After completing editing operation at the edit model page, while carrying out preserving, the template constraint rule data corresponding with current template edit page are write in the data queue in locally buffered memory block, then while user carries out other operation, backstage can adopt polling mode, by the template constraint rule data asynchronous upload in locally buffered storage area data queue to service end, upload successfully, the template constraint rule data in locally buffered storage area data queue are removed.
2. the edit methods of a kind of health information shared document stencil buffers storage as claimed in claim 1, it is characterized in that, in described step 3, when needing to launch the node of described model tree, from locally buffered storage, obtain the XML definition of data type, define the sub-level node of generation model tree according to XML.
CN201510880784.6A 2015-12-03 2015-12-03 A kind of edit methods of health information shared document stencil buffers storage Active CN105302789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510880784.6A CN105302789B (en) 2015-12-03 2015-12-03 A kind of edit methods of health information shared document stencil buffers storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510880784.6A CN105302789B (en) 2015-12-03 2015-12-03 A kind of edit methods of health information shared document stencil buffers storage

Publications (2)

Publication Number Publication Date
CN105302789A true CN105302789A (en) 2016-02-03
CN105302789B CN105302789B (en) 2018-06-26

Family

ID=55200068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510880784.6A Active CN105302789B (en) 2015-12-03 2015-12-03 A kind of edit methods of health information shared document stencil buffers storage

Country Status (1)

Country Link
CN (1) CN105302789B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108519964A (en) * 2018-03-09 2018-09-11 中国工程物理研究院计算机应用研究所 The method that XML Schema documents are converted into Java code
CN108762697A (en) * 2018-05-25 2018-11-06 苏宁易购集团股份有限公司 A kind of Method of printing and device based on browser end
CN109815428A (en) * 2018-12-28 2019-05-28 陈德芹 A kind of online table caching method and device
CN113283226A (en) * 2021-05-25 2021-08-20 山东浪潮通软信息科技有限公司 Method, device, equipment and medium for editing online document template

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1366431A2 (en) * 2000-06-06 2003-12-03 Groove Networks, Inc. Method and apparatus for efficient management of xml documents
US20080140705A1 (en) * 2003-10-01 2008-06-12 Wenqiang Luo Method of Updating a Data Source from Transformed Data
CN101944162A (en) * 2010-09-02 2011-01-12 江苏大学 Electronic medical record template system based on XML file and manufacturing method of electronic medical record template
CN101957936A (en) * 2009-07-15 2011-01-26 深圳市艾派应用系统有限公司 Method and system for implementing workflow form
CN102646039A (en) * 2012-02-29 2012-08-22 河海大学 Software interface generating system and method based on extensible markup language (XML) Schema
CN103294796A (en) * 2013-05-24 2013-09-11 上海申腾信息技术有限公司 XML (extensive markup language) parsing method and implementation method of custom XML structural forms in medical records

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1366431A2 (en) * 2000-06-06 2003-12-03 Groove Networks, Inc. Method and apparatus for efficient management of xml documents
US20080140705A1 (en) * 2003-10-01 2008-06-12 Wenqiang Luo Method of Updating a Data Source from Transformed Data
CN101957936A (en) * 2009-07-15 2011-01-26 深圳市艾派应用系统有限公司 Method and system for implementing workflow form
CN101944162A (en) * 2010-09-02 2011-01-12 江苏大学 Electronic medical record template system based on XML file and manufacturing method of electronic medical record template
CN102646039A (en) * 2012-02-29 2012-08-22 河海大学 Software interface generating system and method based on extensible markup language (XML) Schema
CN103294796A (en) * 2013-05-24 2013-09-11 上海申腾信息技术有限公司 XML (extensive markup language) parsing method and implementation method of custom XML structural forms in medical records

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ROBERT H. DOLIN等: "HL7 Clinical Document Architecture, Release 2", 《JOURNAL OF THE AMERICAN MEDICAL INFORMATICS ASSOCIATION》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108519964A (en) * 2018-03-09 2018-09-11 中国工程物理研究院计算机应用研究所 The method that XML Schema documents are converted into Java code
CN108519964B (en) * 2018-03-09 2022-03-04 中国工程物理研究院计算机应用研究所 Method for converting XML Schema document into Java code
CN108762697A (en) * 2018-05-25 2018-11-06 苏宁易购集团股份有限公司 A kind of Method of printing and device based on browser end
CN108762697B (en) * 2018-05-25 2023-06-23 苏宁易购集团股份有限公司 Printing method and device based on browser end
CN109815428A (en) * 2018-12-28 2019-05-28 陈德芹 A kind of online table caching method and device
CN109815428B (en) * 2018-12-28 2021-04-20 陈德芹 Online table caching method and device
CN113283226A (en) * 2021-05-25 2021-08-20 山东浪潮通软信息科技有限公司 Method, device, equipment and medium for editing online document template
CN113283226B (en) * 2021-05-25 2023-09-22 浪潮通用软件有限公司 Editing method, device, equipment and medium of online document template

Also Published As

Publication number Publication date
CN105302789B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
WO2019000630A1 (en) Multi-task scheduling method and system, application server and computer-readable storage medium
US10430164B2 (en) Automation of canonical model usage in application development processes
CN106599104A (en) Mass data association method based on redis cluster
CN105302789A (en) Editing method of health information shared document template buffer storage
CN109448100B (en) Three-dimensional model format conversion method, system, computer device and storage medium
CN111324577B (en) Yml file reading and writing method and device
CN105224361B (en) A kind of method and system upgraded to sqlite3 type embedded databases
CN109814884A (en) A kind of method and system carrying out resource management according to game resource type
CN104517181B (en) Enterprise content management system and method for nuclear power station
JP2006146927A5 (en)
WO2016082547A1 (en) Upgrade file manufacturing method and apparatus and upgrade file acquiring method and apparatus
CN108469953A (en) A kind of generation method of page table list, server and storage medium
CN103761095B (en) Method for generating universal upgrade file head data information
CN110597821B (en) Method and device for changing database table structure
CN103927777A (en) Organization and control method of three-dimensional animation process based on Mealy finite state automatas
CN105824944A (en) XML (X Extensible Markup Language) configuration data maintenance method and system based on scripting language
CN105094906A (en) Hot update method, device and system for game server
CN105592130B (en) A kind of service arrangement method, service management and device
CN103646015B (en) Transmission, the method and system for receiving and transmitting XML message
CN107885582B (en) Heterogeneous container cluster migration method and controller
CN103176801B (en) A kind of generation method and device of table entry operation-interface function
CN108984757A (en) A kind of data lead-in method and equipment
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN111309424A (en) Page restoration method and related equipment
CN103986765A (en) Method for synchronizing multiple languages of android through network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant