Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables |  All
Print Page as PDF
Routine: AMQQAT1

Package: PCC Medical Query

Routine: AMQQAT1


Information

AMQQAT1 ; IHS/CMI/THL - GETS INFO FOR RANDOM SAMPLE COLLECTION ;

Source Information

Source file <AMQQAT1.m>

Call Graph

Call Graph Total: 4

Package Total Call Graph
PCC Medical Query 3 LIST^AMQQ  (,COUNT)^AMQQAT11  ^AMQQAT2  
VA Fileman 1 ^DIC  

Caller Graph

Caller Graph Total: 3

Package Total Caller Graph
PCC Medical Query 3 AMQQAT11  AMQQAT2  AMQQATA  

Entry Points

Name Comments DBIA/ICR reference
COHORT ; ENTRY POINT FOR SEARCH TEMPLATE COHORTS
SET
CNP
GET ; ENTRY POINT FROM AMQQAT11
S2 ; ENTRY POINT FROM AMQQAT11
S1 ; ENTRY POINT FROM AMQQAT11
CODIC
NP
EXIT
VAR
COEX
CQ
CNP1 ; ENTRY POINT FROM AMQQAT2
CQ1

External References

Name Field # of Occurrence
LIST^AMQQ SET+5
^AMQQAT11 CNP1+1
COUNT^AMQQAT11 CQ+1, CNP+1
^AMQQAT2 COHORT+2
^DIC CODIC+3

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"You cannot select a RANDOM SAMPLE and a SEARCH COHORT in the same query",!!,*7
  • Line Location: AMQQAT1+3
Function Call: WRITE
  • Prompt: !!,"There are ",(AMQQRNDN*2)," ",AMQQRCNM,"S in the database"
  • Line Location: NP+0
Function Call: WRITE
  • Prompt: !!?5,"1) Select a certain number of ",AMQQRCNM,"S for the sample"
  • Line Location: NP+1
Function Call: WRITE
  • Prompt: !?5,"2) Select a certain percentage of ",AMQQRCNM,"S for the sample",!
  • Line Location: NP+2
Function Call: READ
  • Prompt: "YOUR CHOICE (1-2): 1// "
  • Formatting: !
  • Timeout: DTIME
  • Variable: X
  • Line Location: GET+1
Function Call: WRITE
  • Prompt: !!,"Enter 1 or 2. You may enter '^' to exit.",!!
  • Line Location: GET+2
Function Call: WRITE
  • Prompt: " (1)"
  • Line Location: GET+4
Function Call: WRITE
  • Prompt: " ??",*7
  • Line Location: GET+7
Function Call: WRITE
  • Prompt: !!,"How many ",AMQQRCNM,"S do you want in the sample: "
  • Line Location: S1+1
Function Call: READ
  • Timeout: DTIME
  • Variable: X
  • Line Location: S1+2
Function Call: WRITE
  • Prompt: !!,"Enter a number between 1 and ",AMQQRNDN,!!
  • Line Location: S1+5
Function Call: WRITE
  • Prompt: " ??",*7
  • Line Location: S1+7
Function Call: WRITE
  • Prompt: !!,"What percent of the patients do you want in the sample: "
  • Line Location: S2+1
Function Call: READ
  • Timeout: DTIME
  • Variable: X
  • Line Location: S2+2
Function Call: WRITE
  • Prompt: !!,"Enter a number between 1 and 50"
  • Line Location: S2+5
Function Call: WRITE
  • Prompt: "%"
  • Line Location: S2+6
Function Call: WRITE
  • Prompt: " ??",*7
  • Line Location: S2+7
Function Call: WRITE
  • Prompt: !!,"You cannot select a RANDOM SAMPLE and a SEARCH COHORT in the same query",!!,*7
  • Line Location: COHORT+3
Function Call: WRITE
  • Prompt: !!,"Sorry, this template is empty!!",!!,*7
  • Line Location: COEX+1
Function Call: WRITE
  • Prompt: !!,"Select one of the following =>",!!?5
  • Line Location: COEX+2
Function Call: WRITE
  • Prompt: "1) ",AMQQCNAM," must be a member of the ",X," cohort",!?5
  • Line Location: COEX+3
Function Call: WRITE
  • Prompt: "2) ",AMQQCNAM," must NOT be a member of the ",X," cohort",!?5
  • Line Location: COEX+4
Function Call: WRITE
  • Prompt: "3) Select a random sample of the ",X," cohort",!?5
  • Line Location: COEX+5
Function Call: WRITE
  • Prompt: "4) Count the number of entries in the ",X," cohort",!!
  • Line Location: COEX+6
Function Call: READ
  • Timeout: DTIME
  • Variable: X
  • Line Location: CQ+0
Function Call: WRITE
  • Prompt: "Your choice (1-4): 1// "
  • Line Location: CQ+0
Function Call: WRITE
  • Prompt: " ??",*7,!
  • Line Location: CQ+5
Routine Call
  • DIC
  • Line Location:
    • CODIC+3

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AMQQ(1 - [#9009071] CODIC+1
^DIBT( COEX+1
^UTILITY("AMQQ" SET+2*

Label References

Name Line Occurrences
@( SET
CNP CQ1+2
CODIC COHORT+4
COEX CODIC+8, CQ+1
CQ CQ+6
CQ1 CQ+4
GET GET+2, GET+7
NP VAR+3
S1 S1+5, S1+8
S2 S2+5, S2+8
SET GET+6

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% VAR*, VAR+1, EXIT!, CODIC+1*, CODIC+2
>> AMQQATNM COHORT+2
>> AMQQCCLS VAR, VAR+2, COHORT+1, CQ1
AMQQCHRT AMQQAT1+3, COHORT+3!, COHORT+4, COHORT+5*, COHORT+6, COHORT+10!, CODIC+7*, COEX+1
>> AMQQCHTT CNP+3*, CNP+4
>> AMQQCNAM SET+2, COEX+3, COEX+4
AMQQCRFG CNP*, CNP+2!
AMQQCRFL GET+5!
>> AMQQLINK CODIC+1, CQ1*
>> AMQQQUIT GET+3*, S1+3*, S2+3*, CODIC+5*, COEX+1*, CQ+3*
AMQQRAND AMQQAT1+3!, SET+3*, COHORT+3
>> AMQQRCFL S2+6
AMQQRCNM VAR+2*, EXIT!, NP, NP+1, NP+2, S1+1, COHORT+1*
>> AMQQRNDF SET+4*
AMQQRNDN VAR+1*, EXIT!, NP, SET+3, S1+5, S1+6, S2+6, CNP+4*
>> AMQQXX COHORT+11, COEX
>> AMQQYYYY COHORT+4, COHORT+5
DIC COHORT+4*, COHORT+8*, CODIC+4!
DIC("S" CODIC*, CODIC+2*
DIC(0 COHORT+4*, COHORT+9*, COHORT+11*
DTIME GET+1, S1+2, S2+2, CQ
I EXIT!, CNP+3
U VAR+1, GET+1, GET+3, S1+2, S1+3, S2+2, S2+3, CODIC+1, CODIC+5, CODIC+7
, CQ, CQ+3
>> X GET+1*, GET+2, GET+3, GET+4*, GET+5, GET+6, SET, S1+2*, S1+3, S1+4
, S1+5, S1+6, S2+2*, S2+3, S2+4, S2+5, S2+6, COHORT+6*, COHORT+7*, CODIC+5
, CODIC+7*, COEX*, COEX+3, COEX+4, COEX+5, COEX+6, CQ*, CQ+1, CQ+2*, CQ+3
, CQ+4, CQ1, CQ1+1
>> Y SET+1, SET+3, S1+3*, S1+4*, S1+6*, S2+3*, S2+4*, S2+6*, CODIC+5, CODIC+6
, CODIC+7
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables |  All