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

ABSPECX0.m

Go to the documentation of this file.
  1. ABSPECX0 ; IHS/FCS/DRS - JWS 04:26 PM 18 Jun 1996 ; [ 09/09/2002 5:18 PM ]
  1. ;;1.0;PHARMACY POINT OF SALE;**3,7,23**;JUN 21, 2001;Build 38
  1. Q
  1. ;----------------------------------------------------------------------
  1. ;----------------------------------------------------------------------
  1. ;Retrieve Claim submission record
  1. ;
  1. ;Input Variables: CLAIMIEN - Claim Submission IEN (9002313.02)
  1. ; .ABSP - Pass by reference, output only
  1. ;
  1. ;Output Variables: ABSP(9002313.02,CLAIMIEN,<field #>,"I") = Value
  1. ;----------------------------------------------------------------------
  1. ; IHS/SD/lwj 08/13/02 NCPDP 5.1 changes
  1. ; Many fields that were once a part of the "header" of the claim
  1. ; were shifted to appear on the "rx" or "detail" segments of the
  1. ; claim in 5.1. Additionally, MANY new fields were added beyond 499.
  1. ; For these reasons, we had to change the GETABSP3
  1. ; subroutine to pull fields 308 through 600 rather than just
  1. ; 402 - 499. The really cool thing is that because we are at the
  1. ; subfile level, the duplicated fields (between header and rx)
  1. ; will only pull at the appropriate level. 3.2 claims should
  1. ; be unaffected by this change, as the adjusted and new fields
  1. ; were not populated for 3.2
  1. ;
  1. ; New subroutine added GETABSP4 to pull out the repeating fields for
  1. ; the DUR/PPS records
  1. ;----------------------------------------------------------------------
  1. ;IHS/SD/lwj 9/3/03 new subroutine added to extract the prior
  1. ; authorization segment values. Subroutine called by ABSPECA1.
  1. ;----------------------------------------------------------------------
  1. ;IHS/SD/RLT - 06/27/07 - 10/18/07 - Patch 23
  1. ; New tag GETABSP6 for Diagnosis Code.
  1. ;
  1. GETABSP2(CLAIMIEN,ABSP) ;EP - from ABSPECA1
  1. ;Manage local variables
  1. N DIC,DR,DA,DIQ,D0,DIQ2
  1. ;
  1. ;Make sure input variables are defined
  1. Q:$G(CLAIMIEN)=""
  1. ;
  1. ;Set input variables for FileMan data retrieval routine
  1. ;IHS/SD/lwj 9/9/02 need to expand the field range to include
  1. ; the "500" range fields now used in the header segments
  1. ; for NCPDP 5.1
  1. ;
  1. S DIC=9002313.02
  1. ; IHS/SD/lwj 9/9/02 NCPDP 5.1 changes nxt line remarked
  1. ; out, following line added to replace it
  1. ; S DR="101:401"
  1. S DR="101:600"
  1. S DA=CLAIMIEN
  1. S DIQ="ABSP",DIQ(0)="I"
  1. ;
  1. ;Execute data retrieval routine
  1. D EN^DIQ1
  1. Q
  1. ;----------------------------------------------------------------------
  1. ;Retrieve Claim Submission, Prescription(s) multiple record
  1. ;
  1. ;Input Variables: CLAIMIEN - Claim Submission IEN (9002313.02)
  1. ; CRXIEN - Prescription Multiple IEN (9002313.0201)
  1. ;
  1. ;Output Variables: ABSP(9002313.0201,CRXIEN,<field #>,"I") = Value
  1. ;----------------------------------------------------------------------
  1. GETABSP3(CLAIMIEN,CRXIEN,ABSP) ;EP - from ABSPECA1
  1. ;Manage local variables
  1. N DIC,DR,DA,DIQ,D0,DIQ2
  1. ;
  1. ;Make sure input variables are defined
  1. Q:$G(CLAIMIEN)=""
  1. Q:$G(CRXIEN)=""
  1. ;
  1. ;S input variables for FileMan data retrieval routine
  1. S DIC=9002313.02
  1. ;
  1. ;IHS/SD/lwj 8/13/02 NCPDP 5.1 nxt line rmkd out - following line added
  1. ;S DR="400",DR(9002313.0201)="402:499"
  1. S DR="400",DR(9002313.0201)="308:600" ;need new RX fields
  1. ;IHS/SD/lwj 8/13/02 end changes
  1. S DA=CLAIMIEN,DA(9002313.0201)=CRXIEN
  1. S DIQ="ABSP",DIQ(0)="I"
  1. ;
  1. ;Execute data retrieval routine
  1. D EN^DIQ1
  1. Q
  1. ;----------------------------------------------------------------------
  1. ;Retrieve Claim Submission, Prescription(s) multiple, DUR/PPS multiple
  1. ; record
  1. ;
  1. ;Input Variables: CLAIMIEN - Claim Submission IEN (9002313.02)
  1. ; CRXIEN - Prescription Multiple IEN (9002313.0201)
  1. ; CDURIEN - DUR/PPS Multiple IEN (9002313.1001)
  1. ;
  1. ;Output Variables: ABSP(9002313.1001,CDURIEN,<field #>,"I") = Value
  1. ;----------------------------------------------------------------------
  1. GETABSP4(CLAIMIEN,CRXIEN,CDURIEN,ABSP) ;EP - from ABSPECA1
  1. ;
  1. ;Manage local variables
  1. N DIC,DR,DA,DIQ,D0,DIQ2
  1. ;
  1. ;Make sure input variables are defined
  1. Q:$G(CLAIMIEN)=""
  1. Q:$G(CRXIEN)=""
  1. Q:$G(CDURIEN)=""
  1. ;
  1. ;S input variables for FileMan data retrieval routine
  1. S DIC=9002313.02
  1. ;
  1. S DR="400",DR(9002313.0201)=473.01 ;fields
  1. S DR(9002313.1001)=".01;439;440;441;474;475;476" ;fields
  1. S DA=CLAIMIEN,DA(9002313.0201)=CRXIEN,DA(9002313.1001)=CDURIEN
  1. S DIQ="ABSP",DIQ(0)="I"
  1. ;
  1. ;Execute data retrieval routine
  1. D EN^DIQ1
  1. ;
  1. Q
  1. ;----------------------------------------------------------------------
  1. ;Retrieve Claim Submission, Prescription(s) multiple record
  1. ; Prior authorization fields only
  1. ;
  1. ;Input Variables: CLAIMIEN - Claim Submission IEN (9002313.02)
  1. ; CRXIEN - Prescription Multiple IEN (9002313.0201)
  1. ;
  1. ;Output Variables: ABSP(9002313.0201,CRXIEN,<field #>,"I") = Value
  1. ;----------------------------------------------------------------------
  1. GETABSP5(CLAIMIEN,CRXIEN,ABSP) ;EP - from ABSPECA1
  1. ;Manage local variables
  1. N DIC,DR,DA,DIQ,D0,DIQ2
  1. ;
  1. ;Make sure input variables are defined
  1. Q:$G(CLAIMIEN)=""
  1. Q:$G(CRXIEN)=""
  1. ;
  1. ;S input variables for FileMan data retrieval routine
  1. S DIC=9002313.02
  1. ;
  1. S DR="400",DR(9002313.0201)="498.01:498.14" ;need new RX fields
  1. S DA=CLAIMIEN,DA(9002313.0201)=CRXIEN
  1. S DIQ="ABSP",DIQ(0)="I"
  1. ;
  1. ;Execute data retrieval routine
  1. D EN^DIQ1
  1. Q
  1. ;----------------------------------------------------------------------
  1. ;Retrieve Claim Submission, Prescription(s) multiple, Diagnosis Code
  1. ; multiple record
  1. ;
  1. ;Input Variables: CLAIMIEN - Claim Submission IEN (9002313.02)
  1. ; CRXIEN - Prescription Multiple IEN (9002313.0201)
  1. ; CDIAGIEN - Diagnosis Code Multiple IEN (9002313.0701)
  1. ;
  1. ;Output Variables: ABSP(9002313.1001,CDIAGIEN,<field #>,"I") = Value
  1. ;----------------------------------------------------------------------
  1. GETABSP6(CLAIMIEN,CRXIEN,CDIAGIEN,ABSP) ;EP - from ABSPECA1
  1. ;
  1. ;Manage local variables
  1. N DIC,DR,DA,DIQ,D0,DIQ2
  1. ;
  1. ;Make sure input variables are defined
  1. Q:$G(CLAIMIEN)=""
  1. Q:$G(CRXIEN)=""
  1. Q:$G(CDIAGIEN)=""
  1. ;
  1. ;S input variables for FileMan data retrieval routine
  1. S DIC=9002313.02
  1. ;
  1. S DR="400",DR(9002313.0201)=491.01 ;fields
  1. S DR(9002313.0701)="492;424" ;fields
  1. S DA=CLAIMIEN,DA(9002313.0201)=CRXIEN,DA(9002313.0701)=CDIAGIEN
  1. S DIQ="ABSP",DIQ(0)="I"
  1. ;
  1. ;Execute data retrieval routine
  1. D EN^DIQ1
  1. ;
  1. Q