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

QAMPBMW1.m

Go to the documentation of this file.
  1. QAMPBMW1 ;HISC/DAD-BUILD A MONITOR WORKSHEET ;4/9/93 09:01
  1. ;;1.0;Clinical Monitoring System;;09/13/1993
  1. K UNDL S $P(UNDL,"_",81)="",QAOSQUIT=0
  1. I QAOSCPY=1,$E(IOST)="C" D FF
  1. W !?27,"Build a Monitor Worksheet"
  1. S X="1. Shortened code name or number: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. S X="2. Title: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. S X="3. Service: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. S X="4. Standard of Care: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. F QA=1:1:6 W !!,UNDL
  1. D PAUSE Q:QAOSQUIT
  1. S X="5. Clinical Indicator: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. F QA=1:1:6 W !!,UNDL
  1. W !!,"6. Rationale(s):"
  1. W ! D EN^QAMPBMW0("^QA(743.91,")
  1. D PAUSE Q:QAOSQUIT
  1. S X="Rationale Explanation: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. F QA=1:1:6 W !!,UNDL
  1. W !!,"7. Auto Enroll Monitor: Yes / No"
  1. D PAUSE Q:QAOSQUIT
  1. D FF
  1. W !,"8. Conditions that apply: (Number each to aid you in answering questions"
  1. W !,"related to conditions.)"
  1. W ! D EN^QAMPBMW0("^QA(743.3,")
  1. D PAUSE Q:QAOSQUIT
  1. W !!,"Do any of the conditions require the development of a group? If so, use the"
  1. W !,"Group Edit option to build the needed group(s). See the condition description"
  1. W !,"for what groups are needed and their parent files."
  1. F QA=1:1:3 D
  1. . S X="Group Name: ",X=X_$E(UNDL,1,38-$L(X)) W !!,X
  1. . S X="Parent File: ",X=X_$E(UNDL,1,40-$L(X)) W ?40,X
  1. . S X="Group Members: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. . Q
  1. D PAUSE Q:QAOSQUIT
  1. S X="What other information is required by each condition?"
  1. S X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. F QA=1:1:4 W !!,UNDL
  1. W !!,"Which conditions define the denominator (sample)?"
  1. F QA=1:1:2 W !!,$E(UNDL,1,24),?28,$E(UNDL,1,24),?56,$E(UNDL,1,24)
  1. W !!,"9. Choose which conditions define the fall outs and what is their relationship"
  1. W !,"to each other? Use & (and), ! (or), ' (not), and parentheses () to specify the"
  1. W !,"relationship between two or more conditions. Example: (C1&C2)!(C3&C4)"
  1. W !!,UNDL
  1. D PAUSE Q:QAOSQUIT
  1. D FF
  1. W !,"10. What is the relationship between the conditions that define the denominator"
  1. W !,"(sample)? Use & (and), ! (or), ' (not), and parentheses () to specify the"
  1. W !,"relationship between two or more conditions. Example: (C1&C2)!(C3!C4)"
  1. W !!,UNDL
  1. S X="11. What condition defines the date of the event: "
  1. S X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. W !!,"12. Time Frame: (Choose only one.)"
  1. W ! D EN^QAMPBMW0("^QA(743.92,")
  1. S X="13. Threshold: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. W !,"If this is a percent threshold, should the threshold be met when the calculated"
  1. W !,"percentage is (high) >= or (low) <= the threshold."
  1. D PAUSE Q:QAOSQUIT
  1. S X="14. For percent thresholds, the Minimum Sample Size: "
  1. S X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. S X=" For numeric thresholds, the Pre-Threshold Alert Level: "
  1. S X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. W !!,"15. Do you want to allow 'duplicate' fall outs during the time frame: Yes / No"
  1. W !!,"16. Other Data to Capture: Review the list of data elements for each condition"
  1. W !,"you are using to select a list for capture with each fall out."
  1. F QA=1:1:4 W !!,$E(UNDL,1,39),?40,$E(UNDL,1,40)
  1. D PAUSE Q:QAOSQUIT
  1. W !!,"17. Do you want to print: 1) Daily fall out list: Yes / No"
  1. W !," 2) Daily worksheets: Yes / No"
  1. W !!,"18. Do you want a bulletin: 1) When threshold met: Yes / No"
  1. W !," 2) At end of time frame: Yes / No"
  1. W !," 3) When alert level met: Yes / No"
  1. S X="19. What mail group will receive the bulletins: "
  1. S X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. S X="20. Start Date: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. S X=" End Date: ",X=X_$E(UNDL,1,80-$L(X)) W !!,X
  1. W !!,"21. Remember to turn it ON and mark it as FINISHED."
  1. D PAUSE Q:QAOSQUIT
  1. Q
  1. FF ;
  1. W @IOF
  1. Q
  1. PAUSE ;
  1. Q:$E(IOST)'="C" K DIR S DIR(0)="E" D ^DIR S QAOSQUIT=$S(Y'>0:1,1:0)
  1. Q