Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PXRMTXIH

PXRMTXIH.m

Go to the documentation of this file.
  1. PXRMTXIH ;SLC/PKR - Taxonomy import help. ;04/21/2014
  1. ;;2.0;CLINICAL REMINDERS;**26**;Feb 04, 2005;Build 404
  1. ;==========================================
  1. HELP ;Extended help for import.
  1. N DDS,DIR0,DONE,IND,TEXT
  1. ;DBIA #5746 covers kill and set of DDS. DDS needs to be set or the
  1. ;Browser will kill some ScreenMan variables.
  1. S DDS=1,DONE=0
  1. F IND=1:1 Q:DONE D
  1. . S TEXT(IND)=$P($T(HTEXT+IND),";",3,99)
  1. . I TEXT(IND)="**End Text**" K TEXT(IND) S DONE=1 Q
  1. D BROWSE^DDBR("TEXT","NR","Taxonomy Import Help")
  1. S VALMBCK="R"
  1. Q
  1. ;
  1. ;==========================================
  1. HTEXT ;Import help text.
  1. ;;Codes can be imported from a CSV (comma-separated value) file or from one
  1. ;;taxonomy into another.
  1. ;;
  1. ;; HF - use this action when the CSV file has been saved as a host file.
  1. ;; PA - use this action to paste in the CSV file.
  1. ;; TAX - use this action to select another taxonomy to import codes from. Once
  1. ;; selected, you can import all the codes or selected sets of codes.
  1. ;; WEB - use this action to import a CSV file from a web site. You will need
  1. ;; the full url of the CSV file.
  1. ;;
  1. ;;Creating a CSV file
  1. ;;Each row of the CSV file should have the following format:
  1. ;;Column 1 - term/code
  1. ;;Column 2 - three-character coding system abbreviation
  1. ;;
  1. ;;The list of codes for the term/code and coding system combination starts at
  1. ;;column 3. There can be as many subsequent columns as necessary. For example,
  1. ;;if there were four codes for the term/code coding system combination, then:
  1. ;;
  1. ;;Column 3 - first code
  1. ;;Column 4 - second code
  1. ;;Column 5 - third code
  1. ;;Column 6 - fourth code
  1. ;;
  1. ;;An easy way to create a CSV file s to first create a spreadsheet where the
  1. ;;columns are as described above. When the spreadsheet is complete, use SAVE AS
  1. ;;to save it to a CSV file. You can also create a CSV file directly using a text
  1. ;;editor.
  1. ;;
  1. ;;Host File
  1. ;;Once you have created the CSV file, you will probably need help from IRM to
  1. ;;move the file to a VistA-accessible directory. The format of this will
  1. ;;depend on the type of operating system on the server. The path includes the
  1. ;;device and directory. Your IRM person should be able to give you this. Once
  1. ;;you have entered the path, all files with a .CSV extension will be listed.
  1. ;;Type in the name of the file you want to import and press <Enter>.
  1. ;;
  1. ;;Pasting
  1. ;;Open the CSV file on your computer as a text file, using a text editor such as
  1. ;;Notepad. Do not open it as a spreadsheet. Highlight all the rows you want to
  1. ;;import and copy them. Go to your VistA session and select the PA action. At the
  1. ;;prompt "Paste the CSV file now, press <ENTER> to finish.", paste what has been
  1. ;;copied within 10 seconds. The import will complete; you will then need to save
  1. ;;the imported codes.
  1. ;;
  1. ;;Web
  1. ;;This action will import a CSV file from a web site. You must know the exact
  1. ;;url. NOTE: The only protocol currently supported is http; https will not work.
  1. ;;Enter the url at the prompt and then press <Enter>.
  1. ;;
  1. ;;TAX
  1. ;;This option is used to import codes from an existing taxonomy into another
  1. ;;existing taxonomy. The receiving taxonomy may already have codes or may be a
  1. ;;shell of a taxonomy (contains no codes). After selecting the TAX action, you
  1. ;;will see the prompt "Select a taxonomy or taxonomies to import from." a
  1. ;;List Manager display will then open, listing all the taxonomies on your system.
  1. ;;You can select one or more taxonomies to import from by typing in a
  1. ;;comma-separated list or a range. Once the selection has been made, choose the
  1. ;;Done (Quit) action. You will then be prompted to choose either ALL or
  1. ;;SEL(ected) codes. If you choose SEL, each Term/Code Coding system pair in the
  1. ;;taxonomies being imported from will be displayed and you can choose whether or
  1. ;;not to import that set of codes.
  1. ;;
  1. ;;**End Text**
  1. Q
  1. ;