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

BHLQRF.m

Go to the documentation of this file.
BHLQRF ; cmi/sitka/maw - BHL Supplement QRF Segment ; 
 ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
 ;
 ;This routine will supplement the QRF Segment which further
 ;refines the query statement.
 ;
MAIN ;-- this is the main routine driver
 S INA("INQWHERE")="IMMUNIZATION"
 S INA("INQWHICH")="ANY"
 S INA("INQSDTM")=$G(INA("QBDT"))
 S INA("INQEDTM")=$G(INA("QEDT"))
 D OSF
 Q
 ;
OSF ;-- build the other query subject filter
 S BHLQDA=0 F  S BHLQDA=$O(INA("QNM",BHLQDA)) Q:'BHLQDA  D
 . S BHLQSSN=$$VALI^XBDIQ1(2,BHLQDA,.09)
 . S BHLQDOB=$$DATE^INHUT($$VALI^XBDIQ1(2,BHLQDA,.03))
 . S BHLQBST=$S($$VALI^XBDIQ1(2,BHLQDA,.093):$P($G(^DIC(5,$$VALI^XBDIQ1(2,BHLQDA,.093),0)),U,2),1:"")
 . S BHLQBCN=$$VAL^XBDIQ1(9000001,BHLQDA,1105)
 . S BHLQMCN=""
 . S BHLQMMNM=$S($$VALI^XBDIQ1(2,BHLQDA,.2402):$$PN^INHUT($$VAL^XBDIQ1(2,BHLQDA,.2402)),1:"")
 . S BHLQMMN=$P($$VAL^XBDIQ1(2,BHLQDA,.2403),",")
 . S BHLQMSSN=""
 . S BHLQFNM=$S($$VALI^XBDIQ1(2,BHLQDA,.2401):$$PN^INHUT($$VAL^XBDIQ1(2,BHLQDA,.2401)),1:"")
 . S BHLQFSSN=""
 . S INA("INQOSF")=BHLQSSN_RS_BHLQDOB_RS_BHLQBST_RS_BHLQBCN
 . S INA("INQOSF")=INA("INQOSF")_RS_BHLQMCN_RS_BHLQMMNM_RS_BHLQMMN_RS
 . S INA("INQOSF")=INA("INQOSF")_BHLQMSSN_RS_BHLQFNM_RS_BHLQFSSN
 Q
 ;