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

AQAOEDTA.m

Go to the documentation of this file.
  1. AQAOEDTA ; IHS/ORDC/LJF - STUFF PCC DATA INTO OCC ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This rtn is called by ^AQAOEDTP if PCC visit is coded for section
  1. ;user is editing. It will stuff any or all of the PCC data items into
  1. ;the appropriate QI OCC file.
  1. ;
  1. CHOOSE ;ENTRY POINT to ask user to add PCC data for inclusion under an occ
  1. N AQAOX,AQAOI,DIR
  1. K DIR S DIR(0)="LO^0:"_AQAOCNT_"^K:X#1 X"
  1. S DIR("A")="Choose which PCC items are RELEVANT for this occurrence, if any"
  1. S DIR("?",1)="For ease of data entry, you can choose any or all of"
  1. S DIR("?",2)="these PCC items to be linked to your occurrence. You"
  1. S DIR("?",3)="may choose a range (1-2 or 3,6) OR type in 0 (zero) to"
  1. S DIR("?",4)="have ALL of these linked to your occurrence."
  1. S DIR("?")=" " D ^DIR Q:$D(DIRUT) Q:Y=-1
  1. ;
  1. I +Y=0 S Y="" F I=1:1:AQAOCNT S Y=Y_I_"," ;user chose ALL
  1. S AQAOX=Y F AQAOI=1:1 S X=$P(AQAOX,",",AQAOI) Q:X="" D
  1. .K DD,DO,DIC S DIC=AQAOGBL,DIC(0)="LZ",DLAYGO=AQAOFL,X=AQAOA(+X)
  1. .I AQAOGBL="^AQAOCC(6," S X=X_";PSDRUG("
  1. .S DIC("DR")=".02////"_AQAOIFN_";.03////"_AQAOPAT
  1. .D FILE^DICN Q:Y=-1
  1. .K DIE,DA,DR S DIE=AQAOGBL,DA=+Y,DIDEL=AQAOFL
  1. .S DR=AQAOFLD_"-E1 FIRST]"
  1. .D ^DIE
  1. W ! Q