source: WorldVistAEHR/trunk/r/CLINICAL_REMINDERS-PXRM/PXRMSKIN.m@ 1006

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

initial load of WorldVistAEHR

File size: 2.7 KB
Line 
1PXRMSKIN ; SLC/PKR - Handle skin test findings. ;08/31/2004
2 ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
3 ;
4 ;====================================================
5EVALFI(DFN,DEFARR,ENODE,FIEVAL) ;Evaluate skin test findings.
6 D EVALFI^PXRMINDX(DFN,.DEFARR,ENODE,.FIEVAL)
7 Q
8 ;
9 ;====================================================
10EVALPL(FINDPA,ENODE,TERMARR,PLIST) ;Evaluate skin test 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 skin test terms.
17 D EVALTERM^PXRMINDX(DFN,.FINDPA,ENODE,.TERMARR,.TFIEVAL)
18 Q
19 ;
20 ;====================================================
21GETDATA(DAS,FIEVT) ;Return data for a specified V Skin Test entry.
22 ;DBIA #4250
23 D VSKIN^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,READING,RESULTS,TEMP,TEXTOUT,VDATE
29 S FIEN=$P(IFIEVAL("FINDING"),";",1)
30 S PNAME=$P(^AUTTSK(FIEN,0),U,1)
31 S NAME="Skin Test: "_PNAME
32 S IND=0
33 F S IND=+$O(IFIEVAL(IND)) Q:IND=0 D
34 . S RESULTS=$G(IFIEVAL(IND,"RESULTS"))
35 . I $L(RESULTS)>0 S RESULTS=" "_$$EXTERNAL^DILFD(9000010.12,.04,"",RESULTS,.EM)
36 . S READING=$G(IFIEVAL(IND,"READING"))
37 . I READING'="" S READING=" reading "_$$EXTERNAL^DILFD(9000010.12,.05,"",READING,.EM)
38 . S VDATE=IFIEVAL(IND,"DATE")
39 . S TEMP=NAME_RESULTS_READING_" ("_$$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,READING,RESULTS,TEMP,TEXTOUT,VDATE
49 S FIEN=$P(IFIEVAL("FINDING"),";",1)
50 S PNAME=$P(^AUTTSK(FIEN,0),U,1)
51 S NLINES=NLINES+1
52 S TEXT(NLINES)=$$INSCHR^PXRMEXLC(INDENT," ")_"Skin Test: "_PNAME
53 S IND=0
54 F S IND=+$O(IFIEVAL(IND)) Q:IND=0 D
55 . S VDATE=IFIEVAL(IND,"DATE")
56 . S TEMP=$$EDATE^PXRMDATE(VDATE)
57 . S RESULTS=$G(IFIEVAL(IND,"RESULTS"))
58 . S READING=$G(IFIEVAL(IND,"READING"))
59 . I RESULTS'="" D
60 .. S TEMP=TEMP_" results - "
61 .. S TEMP=TEMP_$$EXTERNAL^DILFD(9000010.12,.04,"",RESULTS,.EM)
62 . I READING'="" D
63 .. S TEMP=TEMP_" reading - "
64 .. S TEMP=TEMP_$$EXTERNAL^DILFD(9000010.12,.05,"",READING,.EM)
65 . D FORMATS^PXRMTEXT(INDENT+2,PXRMRM,TEMP,.NOUT,.TEXTOUT)
66 . F JND=1:1:NOUT S NLINES=NLINES+1,TEXT(NLINES)=TEXTOUT(JND)
67 . I IFIEVAL(IND,"COMMENTS")'="" D
68 .. S TEMP="Comments: "_IFIEVAL(IND,"COMMENTS")
69 .. D FORMATS^PXRMTEXT(INDENT+3,PXRMRM,TEMP,.NOUT,.TEXTOUT)
70 .. F JND=1:1:NOUT S NLINES=NLINES+1,TEXT(NLINES)=TEXTOUT(JND)
71 S NLINES=NLINES+1,TEXT(NLINES)=""
72 Q
73 ;
Note: See TracBrowser for help on using the repository browser.