Load Wiki

From DOC

Jump to: navigation, search


Contents

Overview

This sections outlines steps involved in uploading content into Wiki. Make sure SMW is set-up using Configure Wiki

The following diagram shows high level design of Tolven Upload Process.

Tolven Upload High level design


tolvenWikiUpload.jar

This jar file should be used upload content into TWS. Type the following command under <tolvenWiki project folder>

ant jar-for-upload

tolvenWiki.properties

tolvenWiki.properties file has all properties required for upload process. Update the values in the properties file before proceeding. Make sure tolvenWiki.properties and tolvenWikiUpload.jar file are in the same folder

Set-up Upload Process

Its recommended to upload tolvenWikiUpload.jar and feed files Wiki server to avoid network traffic. Java runtime will be required to start upload process. The following are high level steps in Upload Process.

  1. Create Properties
  2. Create Templates
  3. Load SNOMED
  4. Load RIM
  5. Load DataTypes
  6. Aduit

Follow the order mentioned below to avoid format issues.

Create Properties

Categories and Properties used by the SNOMED are uploaded in this step. Make sure tolvenWikiUpload.jar is in classpath run the following command.

java -jar tolvenWikiUpload.jar uploadSnomedTemplates
java -jar tolvenWikiUpload.jar uploadDataTypeTemplates
java -jar tolvenWikiUpload.jar uploadRIMTemplates


Create Tolven Templates

Certain SMW templates are created to display content.

java -jar tolvenWikiUpload.jar uploadDisplayTrimTemplates

Verification Type Template:ProcedureTrimTemplate in the search box and page content will be broken. If its not broken, then proceed to next step. If broken the Edit and save Template:ProcedureValueset and Template:ProcedureProperty, and it should fix it. Make sure Template:ProcedureTrimTemplate is not broken before proceeding.

IMPORTANT Make sure that All properties and template are created before uploading the SNOMED.

Load Snomed

java -Xmx1024M  -jar tolvenWikiUpload.jar uploadSnomed

Load RIM

java -Xmx1024M -jar tolvenWikiUpload.jar uploadRIM

Load DataTypes

java -Xmx1024M -jar tolvenWikiUpload.jar uploadDataTypes

Audit

The following utility will print missing articles.

java -Xmx1024M  -classpath tolvenWikiUpload.jar org.tolven.wiki.load.WikiUploadAudit <wikiURL> <UID> <password> <Basefolder> <ArticlesPerBatch> <startingIndex> <uploadMissingToWiki-true/false>

<uploadMissingToWiki> - "true" will upload articles while printing. "false" will just print the missing articles
Personal tools