Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Document types are identified by a template identifier expressed as an OID. In our system, we store one instance of a document that contains header information but no body information. The document body is added by the user when a new instance of the document is created. If the user wants different header content, he/she will generate the document and substitute different header content.

  1. Create a new file containing the new document instance using OxygenXML or other similar tool. It shall contain legal header content. Add text here about what needs to be specified in the body's header.
  2. Name the document according to with its proper "Document Content Module Template Name".
  3. Place the document in the "CDAHeaders" folder in the run directory.
  4. Update the "CDA-Documents-Sections.xlsx" spreadsheet found in the "Excel" folder in the run directory.:
  5. In the "Documents" sheet, add the document to the list.  Provide Provide the "Document Content Module Template Name" and the "Document Content Module Keyname" fields in .
  6. In the "Documents|Sections" sheet, add entries for each of the document's corresponding sections.  Provide the "Document Content Module Template Name", "Section Template Name", "Section Content Module Template ID", and "Required" fields.
  7. Delete the "cda_doc_store" database and restart the server to update the database.

...

Adding a New Section Type

  1. Create a new folder in the "CDASections" folder in the run directory.
  2. Name the folder with the section's proper "Section Template Name". 
  3. Inside the folder, create a new file containing the section's Template ID.

...

  1. Name the file "TemplateID".
  2. Update the "CDA-Documents-Sections.xlsx" spreadsheet found in the "Excel" folder in the run directory:
  3. In the "Documents|Sections" sheet, add entries for every document that contains the new section.  Provide the "Document Content Module Template Name", "Section Template Name", "Section Content Module Template ID", and "Required" fields.
  4. Delete the "cda_doc_store" database and restart the server to update the database.

Adding An Instance of an Existing Section

Describe the procedure to add a second or third copy of a section.

...

  1. Create a new file containing the section's code.
  2. Name the file with the information found in the instance's <text> element located beneath the <title> element.  This will be used to distinguish between different section instances.
  3. Place the file in the folder with the proper section name found in the "CDASections" folder in the run directory.
  4. Delete the "cda_doc_store" database and restart the server to update the database.