source: WorldVistAEHR/trunk/r/CLINICAL_REMINDERS-PXRM/PXRMEDU.m@ 1154

Last change on this file since 1154 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.6 KB
Line 
1PXRMEDU ; SLC/PKR - Handle education findings. ;08/31/2004
2 ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
3 ;
4 ;=========================================================
5EVALFI(DFN,DEFARR,ENODE,FIEVAL) ;Evaluate education findings.
6 D EVALFI^PXRMINDX(DFN,.DEFARR,ENODE,.FIEVAL)
7 Q
8 ;
9 ;=========================================================
10EVALPL(FINDPA,ENODE,TERMARR,PLIST) ;Evaluate education term findings
11 ;for patient lists.
12 D EVALPL^PXRMINDL(.FINDPA,ENODE,.TERMARR,PLIST)
13 Q
14 ;
15 ;=========================================================
16EVALTERM(DFN,FINDPA,ENODE,TERMARR,TFIEVAL) ;Evaluate education terms.
17 D EVALTERM^PXRMINDX(DFN,.FINDPA,ENODE,.TERMARR,.TFIEVAL)
18 Q
19 ;
20 ;=========================================================
21GETDATA(DAS,FIEVT) ;Return data, for a specified V Patient ED entry.
22 ;DBIA #4250
23 D VPEDU^PXPXRM(DAS,.FIEVT)
24 Q
25 ;
26 ;=========================================================
27MHVOUT(INDENT,IFIEVAL,NLINES,TEXT) ;Produce the MHV output.
28 N EM,FIEN,IND,JND,NAME,NOUT,PNAME,LOU,TEMP,TEXTOUT,VDATE
29 S FIEN=$P(IFIEVAL("FINDING"),";",1)
30 S TEMP=^AUTTEDT(FIEN,0)
31 S PNAME=$P(TEMP,U,4)
32 I $L(PNAME)'>0 S PNAME=$P(TEMP,U,1)
33 S NAME="Education Topic: "_PNAME_" = "
34 S IND=0
35 F S IND=+$O(IFIEVAL(IND)) Q:IND=0 D
36 . S LOU=$G(IFIEVAL(IND,"VALUE"))
37 . I LOU'="" S LOU=$$EXTERNAL^DILFD(9000010.16,.06,"",LOU,.EM)
38 . S VDATE=IFIEVAL(IND,"DATE")
39 . S TEMP=NAME_LOU_" ("_$$EDATE^PXRMDATE(VDATE)_")"
40 . D FORMATS^PXRMTEXT(INDENT+2,PXRMRM,TEMP,.NOUT,.TEXTOUT)
41 . F JND=1:1:NOUT S NLINES=NLINES+1,TEXT(NLINES)=TEXTOUT(JND)
42 S NLINES=NLINES+1,TEXT(NLINES)=""
43 Q
44 ;
45 ;=========================================================
46OUTPUT(INDENT,IFIEVAL,NLINES,TEXT) ;Produce the clinical
47 ;maintenance output.
48 N EM,FIEN,IND,JND,NOUT,PNAME,LOU,TEMP,TEXTOUT,VDATE
49 S FIEN=$P(IFIEVAL("FINDING"),";",1)
50 S TEMP=^AUTTEDT(FIEN,0)
51 S PNAME=$P(TEMP,U,4)
52 I $L(PNAME)'>0 S PNAME=$P(TEMP,U,1)
53 S NLINES=NLINES+1
54 S TEXT(NLINES)=$$INSCHR^PXRMEXLC(INDENT," ")_"Education Topic: "_PNAME
55 S IND=0
56 F S IND=+$O(IFIEVAL(IND)) Q:IND=0 D
57 . S VDATE=IFIEVAL(IND,"DATE")
58 . S TEMP=$$EDATE^PXRMDATE(VDATE)
59 . S LOU=$G(IFIEVAL(IND,"VALUE"))
60 . I LOU'="" D
61 .. S TEMP=TEMP_" level of understanding - "
62 .. S TEMP=TEMP_$$EXTERNAL^DILFD(9000010.16,.06,"",LOU,.EM)
63 . D FORMATS^PXRMTEXT(INDENT+2,PXRMRM,TEMP,.NOUT,.TEXTOUT)
64 . F JND=1:1:NOUT S NLINES=NLINES+1,TEXT(NLINES)=TEXTOUT(JND)
65 . I IFIEVAL(IND,"COMMENTS")'="" D
66 .. S TEMP="Comments: "_IFIEVAL(IND,"COMMENTS")
67 .. D FORMATS^PXRMTEXT(INDENT+3,PXRMRM,TEMP,.NOUT,.TEXTOUT)
68 .. F JND=1:1:NOUT S NLINES=NLINES+1,TEXT(NLINES)=TEXTOUT(JND)
69 S NLINES=NLINES+1,TEXT(NLINES)=""
70 Q
71 ;
Note: See TracBrowser for help on using the repository browser.