- BARPT175 ; IHS/SD/LSL - Post init for V1.7 Patch 5 ;
- ;;1.8;IHS ACCOUNTS RECEIVABLE;;OCT 26, 2005
- ;
- Q
- ; *********************************************************************
- ;
- EN ; EP - Driver
- D PRVPATCH ; Check to see if previous patches installed
- ; Post init for V1.7 Patch 5
- I '($$INSTALLD^BAREV17("BAR*1.7*5")) D PATCH5
- Q
- ; *********************************************************************
- ;
- PRVPATCH ;
- ; Check previous patch post inits
- N BARP1,BARP2,BARP3
- S BARP5=$$INSTALLD^BAREV17("BAR*1.7*5")
- S BARP4=$$INSTALLD^BAREV17("BAR*1.7*4")
- S BARP3=$$INSTALLD^BAREV17("BAR*1.7*3")
- S BARP2=$$INSTALLD^BAREV17("BAR*1.7*2")
- S BARP1=$$INSTALLD^BAREV17("BAR*1.7*1")
- I BARP5 Q ; This patch already installed
- I 'BARP4 D EN^BARPT174 Q ; Patch 4 (or 3,2,1) not installed
- I 'BARP3 D EN^BARPT173 Q ; Patch 3 ( or 2,1) not installed
- I 'BARP2 D EN^BARPT172 Q ; Patch 2 (or 1) not installed
- I 'BARP1 D EN^BARPT171 Q ; Patch 1 not installed
- Q
- ; ********************************************************************
- PATCH5 ;
- ; Patch 5 post init
- D PRCRTN ; Change processing rtn for Remark Code
- D NCPDPTBL ; Add NCPDP Rej/Pay Codes to table
- D TRNSPT ; Update Transport with posting element
- D TRNLQ ; Modify LQ02 of HIPAA transport
- D VPTRN ; Add entry to Variable Processing Mult
- D VPNCPDP ; Add entry to Variable Processing Mult
- D TRNTYP ; Create Rem Cd, NCPDP Transaction Types
- D MAIL ; Send Patch 5 MailMan message to users
- Q
- ; ********************************************************************
- ; ********************************************************************
- ;
- PRCRTN ;
- ; In the A/R EDI TABLES File, change the processing routine for
- ; Remittance Remark Code entry (IEN 34)
- W !!,"Updating Remittance Remark Code A/R EDI TABLES entry... "
- K DIE,DA,DR
- S DIE="^BARETBL("
- S DA=34
- S DR=".03///D HRMKCD|BAREDP02"
- D ^DIE
- K DIE,DA,DR
- W ?73,"DONE"
- Q
- ; ********************************************************************
- ; ********************************************************************
- ;
- NCPDPTBL ;
- ; In the A/R EDI TABLES File, add entry for NCPDP Reject/Payment
- ; Codes (IEN 41)
- W !!,"Creating NCPDP Reject/Payment Codes A/R EDI TABLES entry... "
- K DIC,DIE,DA,DR,DINUM,X
- S DIC="^BARETBL("
- S DIC(0)="ZXEL"
- S DLAYGO=90056
- S DINUM=41
- S X="NCPDP Reject/Payment Codes"
- S DIC("DR")=".03///D LQCD|BAREDP02"
- K DD,DO
- D FILE^DICN
- K DIE,DA,DR
- W ?73,"DONE"
- Q
- ; ********************************************************************
- ; ********************************************************************
- ;
- TRNSPT ;
- ; Update Remark Code elements of HIPAA transport with VRMKCD posting
- ; element
- W !!,"Updating HIPAA transport with Remark Code posting element..."
- ; First, look up HIPAA 835 v4010 Transport
- K DIC,DA,DR,X,Y
- S DIC="^BAREDI(""1T"","
- S DIC(0)="ZX"
- S X="HIPAA 835 v4010"
- K DD,DO
- D ^DIC
- I Y<1 D Q
- . W !!,$$EN^BARVDF("RVN")
- . W "An exact match for the HIPAA 835 v4010 transport in the A/R EDI TRANSPORT File"
- . W !,"WAS NOT FOUND! Remark code variables have not been added to the transport."
- . W !,"When the patch install has completed, resolve the above situation"
- . W !,"AND run TRNSPT^BARPT175 to populate Remark Code variables in Transport"
- . W $$EN^BARVDF("RVF")
- S BARTP=+Y ; IEN to A/R EDI TRANSPORT file
- ; Now find MIA and MOA Segments
- F I="3-033-MIA","3-035-MOA" D TRNSEG
- W ?73,"DONE"
- Q
- ; ********************************************************************
- ;
- TRNSEG ;
- ; Find MIA and MOA segments of HIPAA transport
- K DIC,DA,DR,X,Y
- S DA(1)=BARTP
- S DIC="^BAREDI(""1T"","_DA(1)_",10,"
- S DIC(0)="ZX"
- S X=I
- K DD,DO
- D ^DIC
- I Y<1 Q
- S BARSEG=+Y ; Segment IEN
- I I="3-033-MIA" F J="MIA05","MIA20","MIA21","MIA22","MIA23" D TRNELM
- I I="3-035-MOA" F J="MOA03","MOA04","MOA05","MOA06","MOA07" D TRNELM
- Q
- ; ********************************************************************
- ;
- TRNELM ;
- ; Find Remark Code elements of MIA and MOA segments and
- ; edit posting element field (.08)
- K DIC,DA,DR,X,Y
- S DA(2)=BARTP
- S DA(1)=BARSEG
- S DIC="^BAREDI(""1T"","_DA(2)_",10,"_DA(1)_",10,"
- S DIC(0)="ZX"
- S X=J
- K DD,DO
- D ^DIC
- I Y<1 Q
- S BARELM=+Y
- S DIE=DIC
- S DA=+Y
- S DR=".08///VRMKCD"
- D ^DIE
- Q
- ; ********************************************************************
- ; ********************************************************************
- ;
- TRNLQ ;
- ; Update LQ02 element of HIPAA transport for processing
- ;
- W !!,"Updating HIPAA transport with LQ Remark Code/NCPDP Reject/Payment"
- W !,"data fields necessary for ERA processing..."
- ; First, look up HIPAA 835 v4010 Transport
- K DIC,DA,DR,X,Y
- S DIC="^BAREDI(""1T"","
- S DIC(0)="ZX"
- S X="HIPAA 835 v4010"
- K DD,DO
- D ^DIC
- I Y<1 D Q
- . W !!,$$EN^BARVDF("RVN")
- . W "An exact match for the HIPAA 835 v4010 transport in the A/R EDI TRANSPORT File"
- . W !,"WAS NOT FOUND! Remark code variables have not been added to the transport."
- . W !,"When the patch install has completed, resolve the above situation"
- . W !,"AND run TRNLQ^BARPT175 to populate LQ Segment variables in Transport"
- . W $$EN^BARVDF("RVF")
- S BARTP=+Y ; IEN to A/R EDI TRANSPORT file
- ;
- ; Now find LQ Segment
- K DIC,DA,DR,X,Y
- S DA(1)=BARTP
- S DIC="^BAREDI(""1T"","_DA(1)_",10,"
- S DIC(0)="ZX"
- S X="3-130-LQ"
- K DD,DO
- D ^DIC
- I Y<1 Q
- S BARSEG=+Y ; Segment IEN
- ;
- ; Now find LQ02 element and edit
- K DIC,DA,DR,X,Y
- S DA(2)=BARTP
- S DA(1)=BARSEG
- S DIC="^BAREDI(""1T"","_DA(2)_",10,"_DA(1)_",10,"
- S DIC(0)="ZX"
- S X="LQ02"
- K DD,DO
- D ^DIC
- I Y<1 Q
- S BARELM=+Y
- S DIE=DIC
- S DA=+Y
- S DR=".04///ID"
- S DR=DR_";.08///VLQCD"
- S DR=DR_";.09////41"
- D ^DIE
- W ?73,"DONE"
- Q
- ; ********************************************************************
- ;
- VPTRN ;
- ; Create VRMKCD in Variable Processing Multiple for HIPAA 835 v4010
- ; Transport (node 70). The routine populated here for VRMKCD is what
- ; is used to populate the REMARK CODE multiple in the CLAIM multiple
- ; in the A/R EDI IMPORT file.
- W !!,"Updating Variable Processing mult for Remark Code of HIPAA transport... "
- K DIC,DA,DR,X,Y
- Q:'+$G(BARTP)
- Q:$D(^BAREDI("1T",BARTP,70,"VRMKCD"))
- S DA(1)=BARTP
- S DIC="^BAREDI(""1T"","_DA(1)_",70,"
- S DIC(0)="ZXLE"
- S DLAYGO=90056
- S DIC("P")=$P($G(^DD(90056.01,70,0)),U,2)
- S DIC("DR")=".02///RMKCD|BAREDPA1"
- S X="VRMKCD"
- K DD,DO
- D ^DIC
- W ?73,"DONE"
- Q
- ; ********************************************************************
- ;
- VPNCPDP ;
- ; Create VLQCD in Variable Processing Multiple for HIPAA 835 v4010
- ; Transport (node 70). The routine populated here for VLQCD is what
- ; is used to populate the REMARK CODE multiple OR NCPDP REJ/PAY
- ; multiple in the CLAIM multiple of the A/R EDI IMPORT file dependent on
- ; the value of LQ01.
- W !!,"Updating Variable Processing mult for NCPDP Reject/Payment Code"
- W !,"of HIPAA transport... "
- K DIC,DA,DR,X,Y
- Q:'+$G(BARTP)
- Q:$D(^BAREDI("1T",BARTP,70,"VLQCD"))
- S DA(1)=BARTP
- S DIC="^BAREDI(""1T"","_DA(1)_",70,"
- S DIC(0)="ZXLE"
- S DLAYGO=90056
- S DIC("P")=$P($G(^DD(90056.01,70,0)),U,2)
- S DIC("DR")=".02///LQ|BAREDPA1"
- S X="VLQCD"
- K DD,DO
- D ^DIC
- W ?73,"DONE"
- Q
- ; ********************************************************************
- ; ********************************************************************
- ;
- TRNTYP ;
- ; Create New transaction type called Remark Code
- W !!,"Creating REMARK CODE and NCPDP REJ/PAY Transaction Types... "
- ; REMARK CODE
- K DIC,DA,DR,X,Y
- S DIC="^BARTBL("
- S DIC(0)="LZX"
- S DINUM=505
- S X="REMARK CODE"
- S DLAYGO=90052
- S DIC("DR")="2////7" ; Transaction type
- S DIC("DR")=DIC("DR")_";6///RMKCD" ; Synonym
- K DD,DO
- D ^DIC
- ; NCPDP REJ/PAY
- K DIC,DA,DR,X,Y
- S DIC="^BARTBL("
- S DIC(0)="LZX"
- S DINUM=506
- S X="NCPDP REJ/PAY"
- S DLAYGO=90052
- S DIC("DR")="2////7" ; Transaction type
- S DIC("DR")=DIC("DR")_";6///NCPDP" ; Synonym
- K DD,DO
- D ^DIC
- W ?73,"DONE"
- Q
- ; ********************************************************************
- ; ********************************************************************
- ;
- MAIL ;
- ; Send a mail message to all holders of the BARZMENU key that a patch
- ; has been installed on the system.
- ;
- W !!,"Sending MailMan message to users..."
- D MAILSET
- D MAILTXT
- D MAILMSG
- W " DONE"
- Q
- ; *********************************************************************
- ;
- MAILSET ;
- ; Set Mailman Variables
- K XMY
- S XMSUB="Accounts Receivable V1.7 Patch 5"
- S XMDUZ="Accounts Receivable Software Engineer"
- D MAILIST ; Get list of recipients
- Q
- ; *********************************************************************
- ;
- MAILIST ;
- ; Find users who hold the BARZMENU key
- ;S XMY("STAR,GLEN R")=""
- S J=0
- F S J=$O(^XUSEC("BARZMENU",J)) Q:'J D
- . S BARNAME=$P($G(^VA(200,J,0)),U)
- . Q:BARNAME=""
- . S XMY(BARNAME)=""
- Q
- ; *********************************************************************
- ;
- MAILTXT ;
- ; Determine body of e-mail
- S K=0
- F D Q:BARTXT="END"
- . S K=K+1
- . S BARTXT=$P($T(@1+K),";;",2)
- . I BARTXT="END" Q
- . S BARMSG(K)=BARTXT
- Q
- ; *********************************************************************
- ;
- MAILMSG ;
- S XMTEXT="BARMSG("
- S %H=$H
- D YX^%DTC
- N DIFROM
- D ^XMD
- K BARMSG
- Q
- ; *********************************************************************
- ;
- 1 ;;
- ;;Accounts Receivable V1.7 Patch 5 has been installed on your
- ;;computer. You have received this message because you hold the BARZMENU
- ;;key that allows access to the Accounts Receivable Master Menu.
- ;;
- ;;Accounts Receivable V1.7 Patch 5 is inclusive of patches 1 thru 4. It
- ;;also contains the following:
- ;;
- ;;1. Incorporation of HIPAA compliant Remittance Advice Remark Codes to
- ;; RPMS Accounts Receivable. This includes the following changes:
- ;;
- ;; a. Creation and population of new A/R EDI REMARK CODES File.
- ;; This file reflects Remark Codes as of February 2004 Code List
- ;; Updates as published by wpc-edi.com.
- ;; b. Creation of new Transaction Type called "REMARK CODE"
- ;; c. Recognize Remittance Advice Remark Codes in 835 remittance
- ;; files.
- ;; d. Post Remark Codes during ERA Post Claims process.
- ;; e. New Posting option called Post Remark Codes allowing user to
- ;; manually post remark codes if desired.
- ;; f. New Posting option called Remittance Advice Remark Code Inquiry
- ;; allowing user to inquire individual remark codes.
- ;; g. Display REMARK CODE transactions on Bill Posted Summary.
- ;;
- ;;2. Incorporation of HIPAA compliant NCPDP Reject/Payment Codes to
- ;; RPMS Accounts Receivable. This includes the following changes:
- ;;
- ;; a. Creation of new Transaction Type called "NCPDP REJ/PAY"
- ;; b. Recognize NCPDP Reject/Payment Codes in 835 remittance
- ;; files.
- ;; c. Post NCPDP Reject/Payment Codes during ERA Post Claims process.
- ;; d. New Posting option called Post NCPDP Reject/Payment Codes
- ;; allowing user to manually post NCPDP Reject/Payment Codes if
- ;; desired.
- ;; e. Display NCPDP REJ/PAY transactions on Bill Posted Summary.
- ;; f. The NCPDP Reject/Payment Code table is distributed with the
- ;; Pharmacy POS software. If it is not installed on you system,
- ;; you will not be able to post NCPDP Reject/Payment codes
- ;; manually and NCPDP reject codes on the ERA will come up
- ;; "NOT MATCHED"
- ;;
- ;;3. Allow ERA posting process to obtain Date of Service from the line
- ;; item level if Date of Service not available at the claim level.
- ;;
- ;;4. New Posting Menu option called Standard Adjustment Reason Code
- ;; Inquiry.
- ;;
- ;;5. Reworded all references of "check" to "chk/EFT #" in regards to
- ;; ERA Posting and Collection Batch Items.
- ;;
- ;;6. Modified ERA Posting option Review Postable Claims allowing
- ;; check/EFT # to be reviewed more than once.
- ;;
- ;;7. Seven Support Center calls that have been resolved:
- ;;
- ;; a. Resolved undefined error when loading an ERA file and the
- ;; user must pick the correct bill if more than one bill in
- ;; RPMS matches the bill on the ERA (835).
- ;; b. Resolved undefined error when loading an ERA file that is
- ;; all one line and has a carriage return/line feed at the end.
- ;; c. Modified Post ERA Claims option to stop display of negative
- ;; balance on bill if posting bill's single transaction brings
- ;; the bill's balance to zero in A/R.
- ;; d. Modified Collection Batch totals to not include items with a
- ;; status of "rolled up".
- ;; e. Modified Load New Import option for AHCCCS Transport
- ;; (proprietary format) to allow mapping of AHCCCS denial codes
- ;; to RPMS categories and reasons.
- ;; f. Modified Flag Patients Accounts for Statements to allow marking
- ;; of patient registered at satellite when user is logged into
- ;; parent.
- ;; g. Resolved undefined error when Posting Refunds.
- ;;END
- BARPT175 ; IHS/SD/LSL - Post init for V1.7 Patch 5 ;
- +1 ;;1.8;IHS ACCOUNTS RECEIVABLE;;OCT 26, 2005
- +2 ;
- +3 QUIT
- +4 ; *********************************************************************
- +5 ;
- EN ; EP - Driver
- +1 ; Check to see if previous patches installed
- DO PRVPATCH
- +2 ; Post init for V1.7 Patch 5
- +3 IF '($$INSTALLD^BAREV17("BAR*1.7*5"))
- DO PATCH5
- +4 QUIT
- +5 ; *********************************************************************
- +6 ;
- PRVPATCH ;
- +1 ; Check previous patch post inits
- +2 NEW BARP1,BARP2,BARP3
- +3 SET BARP5=$$INSTALLD^BAREV17("BAR*1.7*5")
- +4 SET BARP4=$$INSTALLD^BAREV17("BAR*1.7*4")
- +5 SET BARP3=$$INSTALLD^BAREV17("BAR*1.7*3")
- +6 SET BARP2=$$INSTALLD^BAREV17("BAR*1.7*2")
- +7 SET BARP1=$$INSTALLD^BAREV17("BAR*1.7*1")
- +8 ; This patch already installed
- IF BARP5
- QUIT
- +9 ; Patch 4 (or 3,2,1) not installed
- IF 'BARP4
- DO EN^BARPT174
- QUIT
- +10 ; Patch 3 ( or 2,1) not installed
- IF 'BARP3
- DO EN^BARPT173
- QUIT
- +11 ; Patch 2 (or 1) not installed
- IF 'BARP2
- DO EN^BARPT172
- QUIT
- +12 ; Patch 1 not installed
- IF 'BARP1
- DO EN^BARPT171
- QUIT
- +13 QUIT
- +14 ; ********************************************************************
- PATCH5 ;
- +1 ; Patch 5 post init
- +2 ; Change processing rtn for Remark Code
- DO PRCRTN
- +3 ; Add NCPDP Rej/Pay Codes to table
- DO NCPDPTBL
- +4 ; Update Transport with posting element
- DO TRNSPT
- +5 ; Modify LQ02 of HIPAA transport
- DO TRNLQ
- +6 ; Add entry to Variable Processing Mult
- DO VPTRN
- +7 ; Add entry to Variable Processing Mult
- DO VPNCPDP
- +8 ; Create Rem Cd, NCPDP Transaction Types
- DO TRNTYP
- +9 ; Send Patch 5 MailMan message to users
- DO MAIL
- +10 QUIT
- +11 ; ********************************************************************
- +12 ; ********************************************************************
- +13 ;
- PRCRTN ;
- +1 ; In the A/R EDI TABLES File, change the processing routine for
- +2 ; Remittance Remark Code entry (IEN 34)
- +3 WRITE !!,"Updating Remittance Remark Code A/R EDI TABLES entry... "
- +4 KILL DIE,DA,DR
- +5 SET DIE="^BARETBL("
- +6 SET DA=34
- +7 SET DR=".03///D HRMKCD|BAREDP02"
- +8 DO ^DIE
- +9 KILL DIE,DA,DR
- +10 WRITE ?73,"DONE"
- +11 QUIT
- +12 ; ********************************************************************
- +13 ; ********************************************************************
- +14 ;
- NCPDPTBL ;
- +1 ; In the A/R EDI TABLES File, add entry for NCPDP Reject/Payment
- +2 ; Codes (IEN 41)
- +3 WRITE !!,"Creating NCPDP Reject/Payment Codes A/R EDI TABLES entry... "
- +4 KILL DIC,DIE,DA,DR,DINUM,X
- +5 SET DIC="^BARETBL("
- +6 SET DIC(0)="ZXEL"
- +7 SET DLAYGO=90056
- +8 SET DINUM=41
- +9 SET X="NCPDP Reject/Payment Codes"
- +10 SET DIC("DR")=".03///D LQCD|BAREDP02"
- +11 KILL DD,DO
- +12 DO FILE^DICN
- +13 KILL DIE,DA,DR
- +14 WRITE ?73,"DONE"
- +15 QUIT
- +16 ; ********************************************************************
- +17 ; ********************************************************************
- +18 ;
- TRNSPT ;
- +1 ; Update Remark Code elements of HIPAA transport with VRMKCD posting
- +2 ; element
- +3 WRITE !!,"Updating HIPAA transport with Remark Code posting element..."
- +4 ; First, look up HIPAA 835 v4010 Transport
- +5 KILL DIC,DA,DR,X,Y
- +6 SET DIC="^BAREDI(""1T"","
- +7 SET DIC(0)="ZX"
- +8 SET X="HIPAA 835 v4010"
- +9 KILL DD,DO
- +10 DO ^DIC
- +11 IF Y<1
- Begin DoDot:1
- +12 WRITE !!,$$EN^BARVDF("RVN")
- +13 WRITE "An exact match for the HIPAA 835 v4010 transport in the A/R EDI TRANSPORT File"
- +14 WRITE !,"WAS NOT FOUND! Remark code variables have not been added to the transport."
- +15 WRITE !,"When the patch install has completed, resolve the above situation"
- +16 WRITE !,"AND run TRNSPT^BARPT175 to populate Remark Code variables in Transport"
- +17 WRITE $$EN^BARVDF("RVF")
- End DoDot:1
- QUIT
- +18 ; IEN to A/R EDI TRANSPORT file
- SET BARTP=+Y
- +19 ; Now find MIA and MOA Segments
- +20 FOR I="3-033-MIA","3-035-MOA"
- DO TRNSEG
- +21 WRITE ?73,"DONE"
- +22 QUIT
- +23 ; ********************************************************************
- +24 ;
- TRNSEG ;
- +1 ; Find MIA and MOA segments of HIPAA transport
- +2 KILL DIC,DA,DR,X,Y
- +3 SET DA(1)=BARTP
- +4 SET DIC="^BAREDI(""1T"","_DA(1)_",10,"
- +5 SET DIC(0)="ZX"
- +6 SET X=I
- +7 KILL DD,DO
- +8 DO ^DIC
- +9 IF Y<1
- QUIT
- +10 ; Segment IEN
- SET BARSEG=+Y
- +11 IF I="3-033-MIA"
- FOR J="MIA05","MIA20","MIA21","MIA22","MIA23"
- DO TRNELM
- +12 IF I="3-035-MOA"
- FOR J="MOA03","MOA04","MOA05","MOA06","MOA07"
- DO TRNELM
- +13 QUIT
- +14 ; ********************************************************************
- +15 ;
- TRNELM ;
- +1 ; Find Remark Code elements of MIA and MOA segments and
- +2 ; edit posting element field (.08)
- +3 KILL DIC,DA,DR,X,Y
- +4 SET DA(2)=BARTP
- +5 SET DA(1)=BARSEG
- +6 SET DIC="^BAREDI(""1T"","_DA(2)_",10,"_DA(1)_",10,"
- +7 SET DIC(0)="ZX"
- +8 SET X=J
- +9 KILL DD,DO
- +10 DO ^DIC
- +11 IF Y<1
- QUIT
- +12 SET BARELM=+Y
- +13 SET DIE=DIC
- +14 SET DA=+Y
- +15 SET DR=".08///VRMKCD"
- +16 DO ^DIE
- +17 QUIT
- +18 ; ********************************************************************
- +19 ; ********************************************************************
- +20 ;
- TRNLQ ;
- +1 ; Update LQ02 element of HIPAA transport for processing
- +2 ;
- +3 WRITE !!,"Updating HIPAA transport with LQ Remark Code/NCPDP Reject/Payment"
- +4 WRITE !,"data fields necessary for ERA processing..."
- +5 ; First, look up HIPAA 835 v4010 Transport
- +6 KILL DIC,DA,DR,X,Y
- +7 SET DIC="^BAREDI(""1T"","
- +8 SET DIC(0)="ZX"
- +9 SET X="HIPAA 835 v4010"
- +10 KILL DD,DO
- +11 DO ^DIC
- +12 IF Y<1
- Begin DoDot:1
- +13 WRITE !!,$$EN^BARVDF("RVN")
- +14 WRITE "An exact match for the HIPAA 835 v4010 transport in the A/R EDI TRANSPORT File"
- +15 WRITE !,"WAS NOT FOUND! Remark code variables have not been added to the transport."
- +16 WRITE !,"When the patch install has completed, resolve the above situation"
- +17 WRITE !,"AND run TRNLQ^BARPT175 to populate LQ Segment variables in Transport"
- +18 WRITE $$EN^BARVDF("RVF")
- End DoDot:1
- QUIT
- +19 ; IEN to A/R EDI TRANSPORT file
- SET BARTP=+Y
- +20 ;
- +21 ; Now find LQ Segment
- +22 KILL DIC,DA,DR,X,Y
- +23 SET DA(1)=BARTP
- +24 SET DIC="^BAREDI(""1T"","_DA(1)_",10,"
- +25 SET DIC(0)="ZX"
- +26 SET X="3-130-LQ"
- +27 KILL DD,DO
- +28 DO ^DIC
- +29 IF Y<1
- QUIT
- +30 ; Segment IEN
- SET BARSEG=+Y
- +31 ;
- +32 ; Now find LQ02 element and edit
- +33 KILL DIC,DA,DR,X,Y
- +34 SET DA(2)=BARTP
- +35 SET DA(1)=BARSEG
- +36 SET DIC="^BAREDI(""1T"","_DA(2)_",10,"_DA(1)_",10,"
- +37 SET DIC(0)="ZX"
- +38 SET X="LQ02"
- +39 KILL DD,DO
- +40 DO ^DIC
- +41 IF Y<1
- QUIT
- +42 SET BARELM=+Y
- +43 SET DIE=DIC
- +44 SET DA=+Y
- +45 SET DR=".04///ID"
- +46 SET DR=DR_";.08///VLQCD"
- +47 SET DR=DR_";.09////41"
- +48 DO ^DIE
- +49 WRITE ?73,"DONE"
- +50 QUIT
- +51 ; ********************************************************************
- +52 ;
- VPTRN ;
- +1 ; Create VRMKCD in Variable Processing Multiple for HIPAA 835 v4010
- +2 ; Transport (node 70). The routine populated here for VRMKCD is what
- +3 ; is used to populate the REMARK CODE multiple in the CLAIM multiple
- +4 ; in the A/R EDI IMPORT file.
- +5 WRITE !!,"Updating Variable Processing mult for Remark Code of HIPAA transport... "
- +6 KILL DIC,DA,DR,X,Y
- +7 IF '+$GET(BARTP)
- QUIT
- +8 IF $DATA(^BAREDI("1T",BARTP,70,"VRMKCD"))
- QUIT
- +9 SET DA(1)=BARTP
- +10 SET DIC="^BAREDI(""1T"","_DA(1)_",70,"
- +11 SET DIC(0)="ZXLE"
- +12 SET DLAYGO=90056
- +13 SET DIC("P")=$PIECE($GET(^DD(90056.01,70,0)),U,2)
- +14 SET DIC("DR")=".02///RMKCD|BAREDPA1"
- +15 SET X="VRMKCD"
- +16 KILL DD,DO
- +17 DO ^DIC
- +18 WRITE ?73,"DONE"
- +19 QUIT
- +20 ; ********************************************************************
- +21 ;
- VPNCPDP ;
- +1 ; Create VLQCD in Variable Processing Multiple for HIPAA 835 v4010
- +2 ; Transport (node 70). The routine populated here for VLQCD is what
- +3 ; is used to populate the REMARK CODE multiple OR NCPDP REJ/PAY
- +4 ; multiple in the CLAIM multiple of the A/R EDI IMPORT file dependent on
- +5 ; the value of LQ01.
- +6 WRITE !!,"Updating Variable Processing mult for NCPDP Reject/Payment Code"
- +7 WRITE !,"of HIPAA transport... "
- +8 KILL DIC,DA,DR,X,Y
- +9 IF '+$GET(BARTP)
- QUIT
- +10 IF $DATA(^BAREDI("1T",BARTP,70,"VLQCD"))
- QUIT
- +11 SET DA(1)=BARTP
- +12 SET DIC="^BAREDI(""1T"","_DA(1)_",70,"
- +13 SET DIC(0)="ZXLE"
- +14 SET DLAYGO=90056
- +15 SET DIC("P")=$PIECE($GET(^DD(90056.01,70,0)),U,2)
- +16 SET DIC("DR")=".02///LQ|BAREDPA1"
- +17 SET X="VLQCD"
- +18 KILL DD,DO
- +19 DO ^DIC
- +20 WRITE ?73,"DONE"
- +21 QUIT
- +22 ; ********************************************************************
- +23 ; ********************************************************************
- +24 ;
- TRNTYP ;
- +1 ; Create New transaction type called Remark Code
- +2 WRITE !!,"Creating REMARK CODE and NCPDP REJ/PAY Transaction Types... "
- +3 ; REMARK CODE
- +4 KILL DIC,DA,DR,X,Y
- +5 SET DIC="^BARTBL("
- +6 SET DIC(0)="LZX"
- +7 SET DINUM=505
- +8 SET X="REMARK CODE"
- +9 SET DLAYGO=90052
- +10 ; Transaction type
- SET DIC("DR")="2////7"
- +11 ; Synonym
- SET DIC("DR")=DIC("DR")_";6///RMKCD"
- +12 KILL DD,DO
- +13 DO ^DIC
- +14 ; NCPDP REJ/PAY
- +15 KILL DIC,DA,DR,X,Y
- +16 SET DIC="^BARTBL("
- +17 SET DIC(0)="LZX"
- +18 SET DINUM=506
- +19 SET X="NCPDP REJ/PAY"
- +20 SET DLAYGO=90052
- +21 ; Transaction type
- SET DIC("DR")="2////7"
- +22 ; Synonym
- SET DIC("DR")=DIC("DR")_";6///NCPDP"
- +23 KILL DD,DO
- +24 DO ^DIC
- +25 WRITE ?73,"DONE"
- +26 QUIT
- +27 ; ********************************************************************
- +28 ; ********************************************************************
- +29 ;
- MAIL ;
- +1 ; Send a mail message to all holders of the BARZMENU key that a patch
- +2 ; has been installed on the system.
- +3 ;
- +4 WRITE !!,"Sending MailMan message to users..."
- +5 DO MAILSET
- +6 DO MAILTXT
- +7 DO MAILMSG
- +8 WRITE " DONE"
- +9 QUIT
- +10 ; *********************************************************************
- +11 ;
- MAILSET ;
- +1 ; Set Mailman Variables
- +2 KILL XMY
- +3 SET XMSUB="Accounts Receivable V1.7 Patch 5"
- +4 SET XMDUZ="Accounts Receivable Software Engineer"
- +5 ; Get list of recipients
- DO MAILIST
- +6 QUIT
- +7 ; *********************************************************************
- +8 ;
- MAILIST ;
- +1 ; Find users who hold the BARZMENU key
- +2 ;S XMY("STAR,GLEN R")=""
- +3 SET J=0
- +4 FOR
- SET J=$ORDER(^XUSEC("BARZMENU",J))
- IF 'J
- QUIT
- Begin DoDot:1
- +5 SET BARNAME=$PIECE($GET(^VA(200,J,0)),U)
- +6 IF BARNAME=""
- QUIT
- +7 SET XMY(BARNAME)=""
- End DoDot:1
- +8 QUIT
- +9 ; *********************************************************************
- +10 ;
- MAILTXT ;
- +1 ; Determine body of e-mail
- +2 SET K=0
- +3 FOR
- Begin DoDot:1
- +4 SET K=K+1
- +5 SET BARTXT=$PIECE($TEXT(@1+K),";;",2)
- +6 IF BARTXT="END"
- QUIT
- +7 SET BARMSG(K)=BARTXT
- End DoDot:1
- IF BARTXT="END"
- QUIT
- +8 QUIT
- +9 ; *********************************************************************
- +10 ;
- MAILMSG ;
- +1 SET XMTEXT="BARMSG("
- +2 SET %H=$HOROLOG
- +3 DO YX^%DTC
- +4 NEW DIFROM
- +5 DO ^XMD
- +6 KILL BARMSG
- +7 QUIT
- +8 ; *********************************************************************
- +9 ;
- 1 ;;
- +1 ;;Accounts Receivable V1.7 Patch 5 has been installed on your
- +2 ;;computer. You have received this message because you hold the BARZMENU
- +3 ;;key that allows access to the Accounts Receivable Master Menu.
- +4 ;;
- +5 ;;Accounts Receivable V1.7 Patch 5 is inclusive of patches 1 thru 4. It
- +6 ;;also contains the following:
- +7 ;;
- +8 ;;1. Incorporation of HIPAA compliant Remittance Advice Remark Codes to
- +9 ;; RPMS Accounts Receivable. This includes the following changes:
- +10 ;;
- +11 ;; a. Creation and population of new A/R EDI REMARK CODES File.
- +12 ;; This file reflects Remark Codes as of February 2004 Code List
- +13 ;; Updates as published by wpc-edi.com.
- +14 ;; b. Creation of new Transaction Type called "REMARK CODE"
- +15 ;; c. Recognize Remittance Advice Remark Codes in 835 remittance
- +16 ;; files.
- +17 ;; d. Post Remark Codes during ERA Post Claims process.
- +18 ;; e. New Posting option called Post Remark Codes allowing user to
- +19 ;; manually post remark codes if desired.
- +20 ;; f. New Posting option called Remittance Advice Remark Code Inquiry
- +21 ;; allowing user to inquire individual remark codes.
- +22 ;; g. Display REMARK CODE transactions on Bill Posted Summary.
- +23 ;;
- +24 ;;2. Incorporation of HIPAA compliant NCPDP Reject/Payment Codes to
- +25 ;; RPMS Accounts Receivable. This includes the following changes:
- +26 ;;
- +27 ;; a. Creation of new Transaction Type called "NCPDP REJ/PAY"
- +28 ;; b. Recognize NCPDP Reject/Payment Codes in 835 remittance
- +29 ;; files.
- +30 ;; c. Post NCPDP Reject/Payment Codes during ERA Post Claims process.
- +31 ;; d. New Posting option called Post NCPDP Reject/Payment Codes
- +32 ;; allowing user to manually post NCPDP Reject/Payment Codes if
- +33 ;; desired.
- +34 ;; e. Display NCPDP REJ/PAY transactions on Bill Posted Summary.
- +35 ;; f. The NCPDP Reject/Payment Code table is distributed with the
- +36 ;; Pharmacy POS software. If it is not installed on you system,
- +37 ;; you will not be able to post NCPDP Reject/Payment codes
- +38 ;; manually and NCPDP reject codes on the ERA will come up
- +39 ;; "NOT MATCHED"
- +40 ;;
- +41 ;;3. Allow ERA posting process to obtain Date of Service from the line
- +42 ;; item level if Date of Service not available at the claim level.
- +43 ;;
- +44 ;;4. New Posting Menu option called Standard Adjustment Reason Code
- +45 ;; Inquiry.
- +46 ;;
- +47 ;;5. Reworded all references of "check" to "chk/EFT #" in regards to
- +48 ;; ERA Posting and Collection Batch Items.
- +49 ;;
- +50 ;;6. Modified ERA Posting option Review Postable Claims allowing
- +51 ;; check/EFT # to be reviewed more than once.
- +52 ;;
- +53 ;;7. Seven Support Center calls that have been resolved:
- +54 ;;
- +55 ;; a. Resolved undefined error when loading an ERA file and the
- +56 ;; user must pick the correct bill if more than one bill in
- +57 ;; RPMS matches the bill on the ERA (835).
- +58 ;; b. Resolved undefined error when loading an ERA file that is
- +59 ;; all one line and has a carriage return/line feed at the end.
- +60 ;; c. Modified Post ERA Claims option to stop display of negative
- +61 ;; balance on bill if posting bill's single transaction brings
- +62 ;; the bill's balance to zero in A/R.
- +63 ;; d. Modified Collection Batch totals to not include items with a
- +64 ;; status of "rolled up".
- +65 ;; e. Modified Load New Import option for AHCCCS Transport
- +66 ;; (proprietary format) to allow mapping of AHCCCS denial codes
- +67 ;; to RPMS categories and reasons.
- +68 ;; f. Modified Flag Patients Accounts for Statements to allow marking
- +69 ;; of patient registered at satellite when user is logged into
- +70 ;; parent.
- +71 ;; g. Resolved undefined error when Posting Refunds.
- +72 ;;END