STANDARD DATA DICTIONARY #703.9 -- CP CONVERSION FILE                                                             3/24/25    PAGE 1
STORED IN ^MDD(703.9,  *** NO DATA STORED YET ***   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                       (VERSION 1.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This is the CP Conversion File file (#703.9).  This file is used for storing the site parameters needed and used to convert
Medicine reports to CP Text reports.  This file also stores the status of the conversion process for each converted Medicine
report.  


FILE SCREEN (SCR-node) : I +Y=1
              DD ACCESS: @
              RD ACCESS: #
              WR ACCESS: #
             DEL ACCESS: #
           LAYGO ACCESS: #
           AUDIT ACCESS: #

CROSS
REFERENCED BY: NAME(B)



703.9,.01     NAME                   0;1 FREE TEXT (Required)

              INPUT TRANSFORM:  K X
              HELP-PROMPT:      This field is only accessible via the conversion routine. 
              DESCRIPTION:      This field contains the name of the CP conversion.  It is only accessible by the CP conversion
                                routine.  It is exported with one "DEFAULT" entry.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER

              CROSS-REFERENCE:  703.9^B 
                                1)= S ^MDD(703.9,"B",$E(X,1,30),DA)=""
                                2)= K ^MDD(703.9,"B",$E(X,1,30),DA)


703.9,.02     MODE                   0;2 SET

                                '0' FOR TEST; 
                                '1' FOR REAL; 
              LAST EDITED:      SEP 03, 2003 
              HELP-PROMPT:      Enter 0 for Test or 1 for Real mode. 
              DESCRIPTION:
                                This field indicates if the CP conversion is in test or real mode.  


703.9,.03     ADMINISTRATIVE CLOSURE USER 0;3 POINTER TO NEW PERSON FILE (#200)

              LAST EDITED:      SEP 23, 2003 
              HELP-PROMPT:      Enter an Administrative Closure person. 
              DESCRIPTION:      This field points to the New Person file (#200).  It is used to indicate the Administrative Closure
                                person used to close the TIU documents for the CP conversion.  


703.9,.1      SCRATCH HFS DIRECTORY  .1;1 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>50!($L(X)<1) X
              LAST EDITED:      JAN 03, 2003 
              HELP-PROMPT:      Answer must be 1-50 characters in length. 
              DESCRIPTION:      This field stores the scratch HFS directory used for the CP conversion.  The CP conversion program
                                will use this directory to convert the Medicine reports.  


703.9,1       MEDICINE FILE PARAMETERS 1;0 POINTER Multiple #703.91

              DESCRIPTION:
                                This multiple contains the parameter data used for the CP conversion of the Medicine reports.  


703.91,.01      MEDICINE FILE PARAMETERS 0;1 POINTER TO FILE FILE (#1) (Multiply asked)

                INPUT TRANSFORM:  S DINUM=+X
                LAST EDITED:      NOV 07, 2002 
                DESCRIPTION:      This field points to the File file (#1).  It is used to store the Medicine file number that this
                                  parameter is pertaining to.  (Reference IA #4507) 

                NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER

                CROSS-REFERENCE:  703.91^B 
                                  1)= S ^MDD(703.9,DA(1),1,"B",$E(X,1,30),DA)=""
                                  2)= K ^MDD(703.9,DA(1),1,"B",$E(X,1,30),DA)


703.91,.02      CP DEFINITION          0;2 POINTER TO CP DEFINITION FILE (#702.01)

                LAST EDITED:      NOV 07, 2002 
                DESCRIPTION:
                                  This field contains the CP Definition to which the Medicine Report will be mapped.  


703.91,.03      CONVERT Y/N            0;3 SET

                                  '0' FOR No; 
                                  '1' FOR Yes; 
                LAST EDITED:      FEB 03, 2003 
                DESCRIPTION:      This field is used as a flag to mark the Medicine Report. Enter 0 for 'to not convert' or 1 for
                                  'to convert'.  


703.91,.04      CONVERT IF NO STATUS   0;4 SET

                                  '0' FOR No; 
                                  '1' FOR Yes; 
                LAST EDITED:      OCT 03, 2003 
                DESCRIPTION:      This field is used as a flag to indicate whether the Medicine report should be converted or not
                                  be converted, if there is no status for the report.  The field is 0 for 'not to convert' or 1 for
                                  'to convert'.  


703.91,.05      USE TIU NOTE TITLE     0;5 POINTER TO TIU DOCUMENT DEFINITION FILE (#8925.1)

                INPUT TRANSFORM:  S DIC("S")="I $$ISHISTCP^TIUCP(+Y)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
                LAST EDITED:      SEP 15, 2004 
                DESCRIPTION:      This field stores the Historical TIU note title used for the conversion of the Medicine reports
                                  to CP reports. (Reference IA #3377 and 3568) 

                SCREEN:           S DIC("S")="I $$ISHISTCP^TIUCP(+Y)"
                EXPLANATION:      Restricts title to Historical CP documents only.



703.9,2       CONVERSION LOG         2;0 Multiple #703.92

              DESCRIPTION:
                                This multiple is used to store the data for the conversion log.  


703.92,.01      CONVERSION ID          0;1 FREE TEXT (Multiply asked)

                INPUT TRANSFORM:  K:$L(X)>30!($L(X)<1) X
                LAST EDITED:      NOV 07, 2002 
                HELP-PROMPT:      Answer must be 1-30 characters in length. 
                DESCRIPTION:      This field is the Conversion ID.  It is a variable pointer to the Medicine files.  This field
                                  will store an entry for each Medicine file record converted. This field is a variable pointer to
                                  the following files: 
                                   
                                  691   ECHO                                   691.1 CARDIAC CATHETERIZATION                 691.5
                                  ELECTROCARDIOGRAM (EKG)                 691.6 HOLTER                               691.7 EXERCISE
                                  TOLERANCE TEST                 691.8 ELECTROPHYSIOLOGY (EP)                  694   HEMATOLOGY     
                                                        694.5 CARDIAC SURGERY RISK ASSESSMENT         698   GENERATOR IMPLANT       
                                                 698.1 V LEAD IMPLANT                          698.2 A LEAD IMPLANT                 
                                      698.3 PACEMAKER SURVEILLANCE                  699   ENDOSCOPY/CONSULT                       
                                  699.5 GENERALIZED PROCEDURE/CONSULT           700   PULMONARY FUNCTION TESTS                701  
                                  RHEUMATOLOGY           

                CROSS-REFERENCE:  703.92^B 
                                  1)= S ^MDD(703.9,DA(1),2,"B",$E(X,1,30),DA)=""
                                  2)= K ^MDD(703.9,DA(1),2,"B",$E(X,1,30),DA)


703.92,.02      STATUS                 0;2 SET

                                  'CR' FOR Converted Real Mode; 
                                  'CT' FOR Converted Test Mode; 
                                  'E' FOR Error; 
                                  'S' FOR Skipped; 
                                  'R' FOR Ready to Convert; 
                LAST EDITED:      SEP 23, 2003 
                DESCRIPTION:      This is the status field of the conversion log.  There are five set of codes:            CR  
                                  WILL STAND FOR: Converted Real Mode      CT   WILL STAND FOR: Converted Test Mode    
                                   E   WILL STAND FOR: Error               
                                   S   WILL STAND FOR: Skipped              
                                   R   WILL STAND FOR: Ready to Convert 

                CROSS-REFERENCE:  703.92^AS 
                                  1)= S ^MDD(703.9,DA(1),2,"AS",$E(X,1,30),DA)=""
                                  2)= K ^MDD(703.9,DA(1),2,"AS",$E(X,1,30),DA)


703.92,.03      NEW TIU DOCUMENT IEN   0;3 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>15!($L(X)<1) X
                LAST EDITED:      NOV 07, 2002 
                HELP-PROMPT:      Answer must be 1-15 characters in length. 
                DESCRIPTION:      This field contains a pointer to the TIU Document file (#8925).  (Reference IA #4796).  This will
                                  hold the internal entry number of the document of the converted medicine report.  


703.92,.04      LINES                  0;4 NUMBER

                INPUT TRANSFORM:  K:+X'=X!(X>999999999)!(X<0)!(X?.E1"."1N.N) X
                LAST EDITED:      NOV 07, 2002 
                HELP-PROMPT:      Type a Number between 0 and 999999999, 0 Decimal Digits 
                DESCRIPTION:
                                  This field contains the line count of the Medicine report that was converted.  


703.92,.05      BYTES                  0;5 NUMBER

                INPUT TRANSFORM:  K:+X'=X!(X>999999999)!(X<0)!(X?.E1"."1N.N) X
                LAST EDITED:      NOV 07, 2002 
                HELP-PROMPT:      Type a Number between 0 and 999999999, 0 Decimal Digits 
                DESCRIPTION:
                                  This field contains the number of bytes of the Medicine report that was converted.  


703.92,.1       ERROR MSG              .1;1 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>250!($L(X)<1) X
                LAST EDITED:      NOV 07, 2002 
                HELP-PROMPT:      Answer must be 1-250 characters in length. 
                DESCRIPTION:
                                  This field stores the error message during the conversion of the Medicine report.  





      FILES POINTED TO                      FIELDS

CP DEFINITION (#702.01)           MEDICINE FILE PARAMETERS:CP DEFINITION (#.02)

FILE (#1)                         MEDICINE FILE PARAMETERS:MEDICINE FILE PARAMETERS (#.01)

NEW PERSON (#200)                 ADMINISTRATIVE CLOSURE USER (#.03)

TIU DOCUMENT DEFINITION (#8925.1)  MEDICINE FILE PARAMETERS:USE TIU NOTE TITLE (#.05)



INPUT TEMPLATE(S):

PRINT TEMPLATE(S):
MD CONVERSION ERRORS          SEP 19, 2003@13:22  USER #0                                               CP CONVERSION ERROR LISTING
MD CONVERSION SUMMARY         JAN 06, 2005@08:32  USER #0                                               MEDICINE CONVERSION SUMMARY
MD CONVERSION TOTALS          SEP 19, 2003@13:34  USER #0                                                  CP CONVERSION STATISTICS

SORT TEMPLATE(S):
MD CONVERSION ERRORS          SEP 19, 2003@13:21  USER #0    
SORT BY: @NAME// (NAME not null)
  WITHIN NAME, SORT BY: CONVERSION LOG//
  CONVERSION LOG SUB-FIELD: STATUS// (STATUS equals E (Error))
     Displays a listing of reports in error status

MD CONVERSION SUMMARY         SEP 23, 2003@14:46  USER #0    
SORT BY: @NAME// (NAME not null)
  WITHIN NAME, SORT BY: @CONVERSION LOG;S1//
  CONVERSION LOG SUB-FIELD: STATUS// (STATUS not null)

MD CONVERSION TOTALS          SEP 23, 2003@13:56  USER #0    
SORT BY: @NAME// (NAME not null)
  WITHIN NAME, SORT BY: +CONVERSION LOG//
  CONVERSION LOG SUB-FIELD: STATUS// (STATUS from CR (Converted Real Mode) to CT (Converted Test Mode))


FORM(S)/BLOCK(S):
MD MAIN                       FEB 03, 2003@14:13  USER #0
  MD HDR                        DD #703.9
  MD SETTINGS                   DD #703.9
  MD FILES                      DD #703.91
  MD PROCEDURE UPDATE           DD #703.91