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

BWMGRP.m

Go to the documentation of this file.
  1. BWMGRP ;IHS/ANMC/MWR - MANAGER'S PATIENT EDITS ;15-Feb-2003 22:02;PLS
  1. ;;2.0;WOMEN'S HEALTH;**8**;MAY 16, 1996
  1. ;;* MICHAEL REMILLARD, DDS * ALASKA NATIVE MEDICAL CENTER *
  1. ;; CALLED BY DIFFERENT OPTIONS TO EDIT A PATIENT'S PAP REGIMEN LOG
  1. ;; AND PREGNANCY LOG.
  1. ;
  1. PLOG ;EP
  1. ;---> CALLED BY OPTION: "BW EDIT PAP REGIMEN LOG".
  1. D SETVARS^BWUTL5
  1. N DR,Y
  1. F D Q:$G(Y)<0
  1. .D TITLE^BWUTL5("EDIT PAP REGIMEN LOG")
  1. .D PLOGTX W !
  1. .S A=" Select PATIENT (or Enter a new BEGIN DATE): "
  1. .D DIC^BWFMAN(9002086.04,"QEMAL",.Y,A)
  1. .Q:Y<0
  1. .D NAME("^BWPLOG(",+Y)
  1. .S DR=".01;.03;.05///NOW;.06////"_DUZ
  1. .D DIE^BWFMAN(9002086.04,DR,+Y,.BWPOP),DIRZ^BWUTL3
  1. .S:BWPOP Y=-1
  1. D EXIT
  1. Q
  1. ;
  1. PLOGTX ;EP
  1. ;;WARNING: If you edit the "BEGIN DATE:" of an entry in the PAP REGIMEN
  1. ;; Log, be SURE that another entry with the same "BEGIN DATE:"
  1. ;; does not already exist for this patient.
  1. ;;
  1. ;; (Ordinarily, the program checks this and will not allow
  1. ;; two separate entries for the same patient on the same
  1. ;; "BEGIN DATE:". But under this option you, as the Manager,
  1. ;; have greater edit capability.)
  1. S BWTAB=5,BWLINL="PLOGTX" D PRINTX
  1. Q
  1. ;
  1. ;
  1. EDC ;EP
  1. ;---> CALLED BY OPTION: "BW EDIT PREGNANCY LOG".
  1. D SETVARS^BWUTL5
  1. N DR,Y
  1. F D Q:$G(Y)<0
  1. .D TITLE^BWUTL5("EDIT PREGNANCY LOG")
  1. .S A=" Select PATIENT (or Enter a new DATE): "
  1. .D DIC^BWFMAN(9002086.05,"QEMAL",.Y,A)
  1. .Q:Y<0
  1. .D NAME("^BWEDC(",+Y)
  1. .S DR=".01;.03;.04;.05///NOW;.06////"_DUZ
  1. .D DIE^BWFMAN(9002086.05,DR,+Y,.BWPOP)
  1. .S:BWPOP Y=-1
  1. D EXIT
  1. Q
  1. ;
  1. EXIT ;EP
  1. W @IOF
  1. D KILLALL^BWUTL8
  1. Q
  1. ;
  1. PRINTX ;EP
  1. ;---> PRINTS TEXT.
  1. N I,T,X S T="" F I=1:1:BWTAB S T=T_" "
  1. F I=1:1 S X=$T(@BWLINL+I) Q:X'[";;" W !,T,$P(X,";;",2)
  1. Q
  1. ;
  1. NAME(DIC,Y) ;EP
  1. N BWDFN
  1. S BWDFN=$P(@(DIC_Y_",0)"),U,2)
  1. W !!?3,$$NAME^BWUTL1(BWDFN)," ",$$HRCN^BWUTL1(BWDFN),!
  1. Q
  1. ;
  1. ;
  1. NONE ;EP
  1. S BWTITLE="* There are no PAP Regimen Log entries for this patient. *"
  1. D CENTERT^BWUTL5(.BWTITLE)
  1. W !!!!,BWTITLE,!!
  1. D DIRZ^BWUTL3
  1. Q