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

BPCLALL1.m

Go to the documentation of this file.
  1. BPCLALL1 ; IHS/OIT/MJL - CONT BPCLALL LOAD INIT DATA PAT CHART ;
  1. ;;1.5;BPC;;MAY 26, 2005
  1. ;
  1. MEAS ;EP CALL FROM BPCPC
  1. S BPCCN1=0,BPCY="" F S BPCY=$O(^AUPNVMSR("AD",BPCVSIT,BPCY)) Q:BPCY="" D
  1. . S BPCCN1=BPCCN1+1
  1. . S BPCMDTA=$G(^AUPNVMSR(BPCY,0)),BPCVDTA=$G(^AUPNVSIT(BPCVSIT,0)),BPCVDATE=$P(BPCVDTA,U,1)
  1. . S BPCTYP=$P(BPCMDTA,U,1),BPCMDESC=$P($G(^AUTTMSR(BPCTYP,0)),U,2)
  1. . S BPCVAL=$P(BPCMDTA,U,4)
  1. . S ^BGUTMP(BPCSUB,BPCX,"MEAS",BPCMDESC,BPCCN1)=BPCVDATE_U_"MEAS"_U_BPCMDESC_U_BPCVAL_U_BPCY ;FHL 8/4/98 ADDED MEASUREMENT IEN (BPCY) TO STRING
  1. Q
  1. SITEP ;EP CALL FROM BPVLALL
  1. I '$D(^BLRSITE("B",DUZ(2))) S ^BGURES(BPCSUB,BPCCTR)="SITEP^",BPCCTR=BPCCTR+1 Q
  1. S BPCIEN=$O(^BLRSITE("B",DUZ(2),"")),BPCIEN="`"_BPCIEN,BPCFILE=9009029
  1. S BPCFLDS="1101;1102;1103;1104;1105"
  1. D FIND^DIC(BPCFILE,"",BPCFLDS,"",BPCIEN)
  1. S BPCDTA="SITEP"
  1. S BPCX="" F S BPCX=$O(^TMP("DILIST",$J,"ID",BPCX)) Q:BPCX="" D
  1. .S BPCF="" F S BPCF=$O(^TMP("DILIST",$J,"ID",BPCX,BPCF)) Q:BPCF="" D
  1. ..S BPCDTA=BPCDTA_U_^TMP("DILIST",$J,"ID",BPCX,BPCF)
  1. S ^BGURES(BPCSUB,BPCCTR)=BPCDTA,BPCCTR=BPCCTR+1
  1. Q
  1. NOK ;EP CALL FROM BPCLALL
  1. ;S BPCDTA=$G(^DPT(BPCIEN,".21")) I BPCDTA'="" S RESULT(BPCCTR)="NOK"_U_BPCDTA,BPCCTR=BPCCTR+1 Q
  1. S BPCDTA=$G(^DPT(BPCIEN,".21")) I BPCDTA'="" S ^BGURES(BPCSUB,BPCCTR)="NOK"_U_BPCDTA,BPCCTR=BPCCTR+1 Q
  1. S BPCDTA=$G(^DPT(BPCIEN,".24")) I BPCDTA'="" D NOK1 Q
  1. ;S RESULT(BPCCTR)="NOK"_U_"NO NEXT OF KIN SPECIFIED",BPCCTR=BPCCTR+1
  1. S ^BGURES(BPCSUB,BPCCTR)="NOK"_U_"NO NEXT OF KIN SPECIFIED",BPCCTR=BPCCTR+1
  1. Q
  1. NOK1 ;
  1. S BPCFATH=$P(BPCDTA,U,1),BPCMOTH1=$P(BPCDTA,U,2),BPCMOTH2=$P(BPCDTA,U,3)
  1. ;I BPCFATH'="" S RESULT(BPCCTR)="NOK"_U_BPCFATH_U_"FATHER",BPCCTR=BPCCTR+1 Q
  1. I BPCFATH'="" S ^BGURES(BPCSUB,BPCCTR)="NOK"_U_BPCFATH_U_"FATHER",BPCCTR=BPCCTR+1 Q
  1. ;I BPCMOTH1'="" S RESULT(BPCCTR)="NOK"_U_BPCMOTH1_U_"MOTHER",BPCCTR=BPCCTR+1 Q
  1. I BPCMOTH1'="" S ^BGURES(BPCSUB,BPCCTR)="NOK"_U_BPCMOTH1_U_"MOTHER",BPCCTR=BPCCTR+1 Q
  1. ;I BPCMOTH2'="" S RESULT(BPCCTR)="NOK"_U_BPCMOTH2_U_"MOTHER (MAIDEN NAME)",BPCCTR=BPCCTR+1 Q
  1. I BPCMOTH2'="" S ^BGURES(BPCSUB,BPCCTR)="NOK"_U_BPCMOTH2_U_"MOTHER (MAIDEN NAME)",BPCCTR=BPCCTR+1 Q
  1. ;S RESULT(BPCCTR)="NOK"_U_"NO NEXT OF KIN SPECIFIED",BPCCTR=BPCCTR+1
  1. S ^BGURES(BPCSUB,BPCCTR)="NOK"_U_"NO NEXT OF KIN SPECIFIED",BPCCTR=BPCCTR+1
  1. Q