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

IB20P213.m

Go to the documentation of this file.
  1. IB20P213 ;ISP/TJH - ENVIRONMENT CHECK WITH PRE-INIT CODE ;04/24/2003
  1. ;;2.0;INTEGRATED BILLING;**213**;21-MAR-94
  1. ;
  1. ENV ; environment check
  1. ; No special environment check at this time.
  1. PRE ; set up check points for pre-init
  1. N %
  1. S %=$$NEWCP^XPDUTL("R0SC","R0SC^IB20P213")
  1. S %=$$NEWCP^XPDUTL("NAMES","NAMES^IB20P213")
  1. Q
  1. ;
  1. R0SC ; add a new report type to file 361.2
  1. ; Name=R0SC ; Description=PROF. GOV'T PAYER EDITS
  1. ; Disposition=MAIL REPORT TO MAIL GROUP
  1. N IBA,IBERRM
  1. I $$FIND1^DIC(361.2,"","X","R0SC","B") D Q
  1. . D BMES^XPDUTL("R0SC report already in file. No action taken.")
  1. D BMES^XPDUTL("Adding R0SC report to file 361.2.")
  1. S IBA(361.2,"+1,",.01)="R0SC" ; new report name
  1. S IBA(361.2,"+1,",.02)=1 ; internal value 1 = Mail report to mail group
  1. S IBA(361.2,"+1,",.03)="PROF. GOV'T PAYER EDITS" ; description
  1. D UPDATE^DIE("","IBA","","IBERRM") ; file a new record
  1. I $D(IBERRM) D Q ; no reason for this to happen but just in case...
  1. . K IBA
  1. . S IBA(1)="WARNING: Unable to add the R0SC report."
  1. . S IBA(2)=" The following error message was recorded."
  1. . S IBA(3)=IBERRM("DIERR",1,"TEXT",1)
  1. . D BMES^XPDUTL(.IBA)
  1. D COMPLETE
  1. Q
  1. ;
  1. NAMES ; change names of reports per request from EDI group
  1. D BMES^XPDUTL("Filing new names for six of the Electronic Reports")
  1. N IBA,IBERRM,IBIEN,IBNA,IBRT
  1. S IBNA("R022")="PROV DAILY STATS ACCEPT/REJECT"
  1. S IBNA("R0EX")="INST. GOV'T PAYER EDITS"
  1. S IBNA("R0N9")="INST. GOV'T WEBMD EDITS"
  1. S IBNA("R0SA")="PROF. GOV'T WEBMD ACCEPTANCE"
  1. S IBNA("R0SR")="PROF. GOV'T WEBMD REJECTS"
  1. S IBNA("R0SS")="PROF. GOV'T WEBMD EDITS"
  1. S IBRT=0 F Q:IBRT="" D
  1. . S IBRT=$O(IBNA(IBRT)) Q:IBRT=""
  1. . S IBIEN=+$$FIND1^DIC(361.2,"","X",IBRT,"B")
  1. . I 'IBIEN D BMES^XPDUTL("Report "_IBRT_" not found. No change made.") Q
  1. . S IBA(361.2,IBIEN_",",.03)=IBNA(IBRT)
  1. D FILE^DIE("","IBA","IBERRM")
  1. D COMPLETE
  1. Q
  1. ;
  1. COMPLETE ; display message that step has completed
  1. D BMES^XPDUTL("Step complete.")
  1. Q
  1. ;
  1. END ; display message that pre-init has completed successfully
  1. D BMES^XPDUTL("Pre-init complete")
  1. Q
  1. ;