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

BAR50R02.m

Go to the documentation of this file.
  1. BAR50R02 ;IHS/DIT/CPC - 20171031 A/R ERA CORRECTED INFORMATION NOTICE
  1. ;;1.8;IHS ACCOUNTS RECEIVABLE;**27**;NOV 30, 2017;Build 12
  1. ;
  1. ;
  1. ;
  1. ; IHS/DIT/CPC New Medicare Card Initiative CR09273 11/3/2017 - BAR*1.8*27
  1. ;
  1. ;
  1. ;
  1. D ^BARBAN
  1. W !!
  1. W "This report will provide a list of corrected patient and/or insured",!
  1. W "information that is sent back in an ERA file from the payer. This report",!
  1. W "is informational only; there will be no changes made by this option to",!
  1. W "the patient/insured information in Patient Registration. Changes to",!
  1. W "Patient Registration data must be made manually.",!!
  1. W "Information reported on the RPMS line is pulled from RPMS Accounts",!
  1. W "Receivable. If an ERA claim cannot be matched to an RPMS Bill, there will",!
  1. W "not be a BILL# listed for the patient. Instead, the BILL(s) field will",!
  1. W "display the ERA claim number(s) along with "_""""_"BILL NOT FOUND IN RPMS"_"""",!
  1. W "(for example: 12345A-BILL NOT FOUND IN RPMS).",!!
  1. W "Information reported on the ERA line is pulled from the ERA file.",!
  1. Q
  1. CENTER(TEXT,LNWDTH,LFILL,RFILL,CTRTXT) ;
  1. ;TEXT = TEXT TO CENTER
  1. ;LNWDTH = NUMBER OF CHARACTERS AVAILABLE IN LINE (DEFAULT 80)
  1. ;LFILL = CHARACTER TO PAD LEFT
  1. ;RFILL = CHARACTER TO PAD RIGHT
  1. ;CTRTXT = ARRAY WITH CENTERED LINES - PASS BY REFERENCE
  1. Q:$L(TEXT)<1
  1. S:$G(LNWDTH)']"0" LNWDTH=80
  1. S CENTER=LNWDTH\2
  1. S K=($L(TEXT)\LNWDTH)+1
  1. F I=1:1:K D
  1. .I $L(TEXT)>LNWDTH D
  1. ..S J=$S($L(TEXT)\2>LNWDTH:CENTER,1:$L(TEXT)\2)
  1. ..F Q:J>LNWDTH D
  1. ...I $E(TEXT,J)=" " S CTRTXT(I)=$E(TEXT,1,J-1),TEXT=$E(TEXT,J+1,$L(TEXT)),J=LNWDTH
  1. ...S J=J+1
  1. .E S CTRTXT(I)=TEXT
  1. S I=0 F S I=$O(CTRTXT(I)) Q:I="" D
  1. .S FILLTXT=""
  1. .F J=1:1:CENTER-($L(CTRTXT(I))\2) S FILLTXT=FILLTXT_LFILL
  1. .S CTRTXT(I)=FILLTXT_CTRTXT(I)
  1. .S FILLTXT=""
  1. .F J=1:1:LNWDTH-$L(CTRTXT(I)) S FILLTXT=FILLTXT_RFILL
  1. .S CTRTXT(I)=CTRTXT(I)_FILLTXT
  1. K I,J,K,FILLTXT,CENTER
  1. Q