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

AMQQSQIM.m

Go to the documentation of this file.
AMQQSQIM ; IHS/CMI/THL - IMMUNIZATION INFO ;
 ;;2.0;IHS PCC SUITE;;MAY 14, 2009
RUN D SER
 I $D(AMQQQUIT) G EXIT
 S X=AMQQSQSJ
 S AMQQCOMP=";;;"_$G(AMQQISR)
 I $D(AMQQRECV) S $P(AMQQRECV,U,11)=$G(AMQQISR)
EXIT K AMQQISR,AMQQIMMS,Y,AMQQIV1,AMQQIV2,AMQQIMDT,%
 Q
 ;
SER I AMQQSQSJ'["MR",AMQQSQSJ'["DTP",AMQQSQSJ'["VAR",AMQQSQSJ'["HIB V",AMQQSQSJ'["HEPATITIS",AMQQSQSJ'["OPV",AMQQSQSJ'["IPV",AMQQSQSJ'["DPT",AMQQSQSJ'["DT",AMQQSQSJ'["Td",AMQQSQSJ'["TD",AMQQSQSJ'["TETANUS TOXOID" S AMQQISR="A" Q
 I '$D(AMQQIMMS) S AMQQIMMS=AMQQSQSJ
 S %=$E(AMQQIMMS,$L(AMQQIMMS))
 K AMQQISR
 I "12345BA"[% S AMQQISR=% K AMQQIMMS
 I '$D(AMQQISR) D SERIES
 Q
 ;
SERIES S AMQQISR="A"
 Q
 ;
SHELP W !!,"Select from one of the following =>",!!
 W ?3,"1-5  Primary series number",!
 W ?3,"A    Display ALL immunizations in the series",!
 W ?3,"B    BOOSTER",!
 W ?3,"C    Series COMPLETED",!
 W ?3,"U    Series number UNSPECIFIED",!!!
 Q
 ;