DESCRIPTION | This is an EXTREMELY POWERFUL option for NATIONAL PROGRAMMERS only. Itmay also be used by CUSTOMER SERVICE, AFTER they have consulted with TIUdevelopers. **** Who Should Use this Option ***** If a site has arranged with Customer Service to move Consult Titles from aseparate CLASS to Progress Notes, Customer Service may choose to give thisoption to the person doing the moves. Such persons should NEVER say YESto an Override prompt except for the Missing Fields override, as notedtowards the bottom of this message. If Customer Service has alteredthis option before giving it to someone, they should restore it to itsoriginal condition when the person has finished. In all other cases, Customer Service is requested to use the optionthemselves rather than giving it to a site. Since this is NOT a site option, please do NOT give instructions for itsuse in NOIS, in FORUM group messages, etc. This option is the same as TIUFH EDIT DDEFS MGR except much more powerful. It permits: Changing entries to/from National Standard Moving Titles between CLASSES Changing field OK TO DISTRIBUTE (# .13) If user answers Yes to an override/bypass prompt, it also permits: Editing entries without INACTIVATING them Adding an item that is IN USE Deleting an item that is IN USE Selecting an item of the WRONG TYPE to add to a parent Moving documents to a faulty Title Moving a Title to a FAULTY Document Class Moving a FAULTY Title Moving a Title which will lack Technical Fields under the move It does NOT permit: Most actions on National entries Adding an item you don't OWN to a parent Moving DOCUMENTS between CLASSES Adding ACTIVE items to a parent Deleting ACTIVE items from a parent The above actions which are not permitted can still be done by changingthe offending property. For example, to move documents between classes,first move titles so that the documents are in the same class. WARNING: This tool permits actions under circumstances which are dangerousand may have never been tested. It is up to CUSTOMER SERVICE to consultwith TIU developers to find out what preparatory/followup actions may benecessary IN ADDITION TO THOSE LISTED HERE, and to test all actions beforeusing this option in a live account. Remember that moving entries in thehierarchy can affect inherited Business Rules, Document Parameters, andBasic/Technical/Upload Fields, and possibly hard code, for certainentries. ******* General Instructions for Moving Titles between Classes ********* Moving Titles between Classes should be undertaken only after consultingTIU developers and/or Customer Service, and in close cooperation with IRMat the site. It may require programmer expertise. The option TIUF NATL CS UTILITY takes you into the Edit DocumentDefinitions screen. Use the Copy/Move action: Move Title. You will beable to select Document Classes OUTSIDE the original class. This does NOTrequire answering YES to an override prompt. After you move a title, the program will attempt to update documents usingthe moved title. If a document is being edited while this program isattempting to update it, the screen will write the IFN of the document notupdated, the document IFN will be saved as DA in ^XTMP("TIUFMOVEN"_TITLEDA,DA),and the document will be skipped. The class the Title was moved FROM willbe saved as OLDCLASS in ^XTMP("TIUFMOVEN"_TITLEDA)=OLDCLASS. At the end of the Move Title action, if all documents have been updated,the screen will so state. If not, the user will be asked to update themusing action U, 'Update Documents'. This Update (as well as the Move Titleaction) must be done through this option [TIUF NATL CS UTILITY] in orderto update both Parent Document Type, AND Class cross-references. It may benecessary to Update more than once. The action so states when alldocuments have been successfully updated. The first global, above, is updated with every Update action, andincreases the efficiency of subsequent Updates. The second global is ESSENTIAL to the process of updating after moving atitle between classes, since it stores OLDCLASS, which is required forupdating cross references. These globals will exist for 30 days after the title is moved or updated(or until another national move is done on this title, if that time isshorter than 30 days). So please finish your updating within that timeperiod. ******* Updating Documents, One at a Time ******* This is an ALTERNATIVE to the Update action described above. In somecases, it may be more convenient to update a single document fromprogrammer mode rather than using action Update Documents, which updatesALL documents using the title. After moving the title, print out global ^XTMP("TIUFMOVEN"_TITLEDA, andsave it. It has the form: ^XTMP("TIUFMOVEN"_TITLEDA)=OLDCLASS ^XTMP("TIUFMOVEN"_TITLEDA,DA)="", where TITLEDA is the IFN in 8925.1 of the moved title OLDCLASS is the IFN in 8925.1 of the class the title was moved FROM DA is the IFN in 8925 of the document using the title Then use DDEF options to look up XDCDA = the IFN of the Document Class thetitle was moved TO. Repeat, moved TO. Now, for every document DA in the above ^XTMP global, call MTRPT1^TIUFHA8(TITLEDA,DA,XDCDA,OLDCLASS). When every document has been successfully updated using this call, you aredone. ****** Adding/Deleting Titles which are IN USE ****** If you delete a Title which is IN USE from its parent Document Class, thedocuments using it will not function. However, there have been caseswhere this is the best way to correct a hierarchy which has beenabnormally altered. When deleting such an item, note the CLASS it was in. Then add it to theproper Document Class. Then do Update Parent Document Type for the Title. NOTE: If Parent Document Type is not correct for a document, the documentwill not appear properly in Parent Document Type Cross Reference ADCPT. Atpresent the only known consequence of this is generating/failing togenerate CWAD alerts. However, future changes, national or local, maycreate other consequences, so please update this field. If the Title has changed CLASS under this "move", you will ALSO need tocall the following code: D TLDOCMTS^TIUFHA8(TITLEDA,OLDCLASS), whereTITLEDA is the IEN of the "moved" Title and OLDCLASS is the IEN of the oldClass the title was in. Do this AFTER the title is where you want it inthe hierarchy; it will get its NEW class from its current position in thehierarchy. This code sets the new class nodes for all documents usingTITLEDA, for cross references APTCL, APTCL38, ACLSB, ACLPT, ACLAU, andACLEC. If OLDCLASS is not 0, it first kills the nodes for the old class. (Simply reindexing documents will not kill old nodes, since the old classis unknown to the computer.) If the Title you are adding as an item was never IN A CLASS, follow theabove instructions with OLDCLASS=0. NOTE: If a document was never in a class or if it has changed classeswithout calling the above code, it may not appear under appropriateoptions, e.g., Review Progress Notes. Or it may mistakenly appear undersome other option. ******* Moving Consult Titles to Progress Notes ****** These are steps to be followed when moving consult titles which arealready IN USE from CLASS Consults to a new Consults document class underclass Progress Notes. 1) Inactivate class Consults if you have not already done so. 2) Create a new document class ZZCONSULTS under Progress Notes. (Call it,say, ZZCONSULTS for now so it won't confuse Joel's code which looks for aCL or DC called "CONSULTS.") Leave it INACTIVE. 3) Set up basic fields, upload fields, TIU document parameters, andbusiness rules for ZZCONSULTS so that values inherited by titles under itwill be correct. (Technical fields can be set up later, using option TIUDEFINE CONSULTS.) 4) Check titles presently under Class Consults to make sure you want themall and that they are named correctly. 5) Choose a time when users are not likely to be editing existingconsult documents. Use option TIUF NATL CS UTILITY to move Consulttitles from step 3), one at a time, to DC ZZCONSULTS. If Technical fieldsare missing, answer YES when asked if you want to move the title eventhough it is missing technical fields. You will take care of these fieldslater. The option then updates document class ZZCONSULTS, the moved title,and the documents using the title. Documents using the title are updatedwith the new Parent Document Type (field # .04). Class cross-referencesfor the document are killed and reset. If some document was not available (locked) at the time the move codeattempted to update it, you will see a message to that effect when codehas finished moving the title. If so, use option TIUF NATL CS UTILITY and run action Update documents, under Copy/Move, for its title. You mayhave to run it more than once. 6) Delete Business Rules and TIU Document Parameters for (old) ConsultDocument Classes under (old) Class Consults, and for (old) Class Consultsitself. 7) Delete (old) Consult Document Classes under Class Consults and then(old) Class Consults itself. 8) Change name of document class ZZCONSULTS to CONSULTS. 9) Rerun option TIU DEFINE CONSULTS. This option was included in patchTIU*1*4. It should find the new document class CONSULTS and setappropriate technical fields. Patch TIU*1*4 also includes instructions onbusiness rules and TIU document parameters for CONSULTS. If they have notalready been set up, do this now. If this option has already been run forclass CONSULTS, those technical fields may be manually copied intodocument class CONSULTS as an alternative to rerunning the option. 10) Check existing consult documents. Make sure they display in the CPRSNOTES tab of the CPRS chart. 11) Activate document class CONSULTS and then the titles below it. Makesure you can create a consult note and link it to a consult request fromthe NOTES tab of the CPRS chart. |