1 | PXCESK ;ISL/dee - Used to edit and display V SKIN TEST ;3/11/04 1:49pm
|
---|
2 | ;;1.0;PCE PATIENT CARE ENCOUNTER;**27,124,162**;Aug 12, 1996
|
---|
3 | ;; ;
|
---|
4 | Q
|
---|
5 | ;
|
---|
6 | ;Line with the line label "FORMAT"
|
---|
7 | ;;Long name~File Number~Node Subscripts~Allow Duplicate entries (1=yes, 0=no)~File global name
|
---|
8 | ; 1 2 3 4 5
|
---|
9 | ;
|
---|
10 | ;Followning lines:
|
---|
11 | ;;Node~Piece~,Field Number~Edit Label~Display Label~Display Routine~Edit Routine~Help Text for DIR("?")~Set of PXCEKEYS that can Edit~D if Detail Display Only~
|
---|
12 | ; 1 ~ 2 ~ 3 ~ 4 ~ 5 ~ 6 ~ 7 ~ 8 ~ 9 ~ 10
|
---|
13 | ;The Display & Edit routines are for special caces.
|
---|
14 | ; (The .01 field cannot have a special edit.)
|
---|
15 | ;
|
---|
16 | ;***Reading (.05) must be the line before Results (.04)***
|
---|
17 | ;
|
---|
18 | FORMAT ;;Skin Test~9000010.12~0,12,811,812~1~^AUPNVSK
|
---|
19 | ;;0~1~.01~Skin Test: ~Skin Test: ~~~~~B
|
---|
20 | ;;0~5~.05~Reading in mm: ~Reading in mm: ~~EREADING^PXCESK~~~D
|
---|
21 | ;;0~4~.04~Results~Results: ~~ERESULTS^PXCESK~~~D
|
---|
22 | ;;12~1~1201~Administered Date and (optional) Time~Date/Time of Administered: ~~E1201^PXCEPOV1(0,30,30)~~~D
|
---|
23 | ;;0~6~.06~Reading Date and (optional) Time~Reading Date: ~~E1201^PXCEPOV1(0,30,60)~~~D
|
---|
24 | ;;12~4~1204~Reader: ~Reader: ~~EPROV12^PXCEPRV~~~D
|
---|
25 | ;;811~1~81101~Comments: ~Comments: ~~~~~D
|
---|
26 | ;;0~8~.08~Diagnosis: ~Diagnosis: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
27 | ;;0~9~.09~Diagnosis 2: ~Diagnosis 2: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
28 | ;;0~10~.1~Diagnosis 3: ~Diagnosis 3: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
29 | ;;0~11~.11~Diagnosis 4: ~Diagnosis 4: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
30 | ;;0~12~.12~Diagnosis 5: ~Diagnosis 5: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
31 | ;;0~13~.13~Diagnosis 6: ~Diagnosis 6: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
32 | ;;0~14~.14~Diagnosis 7: ~Diagnosis 7: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
33 | ;;0~15~.15~Diagnosis 8: ~Diagnosis 8: ~$$DISPLY01^PXCEPOV~EPOV^PXCEVIMM~~~
|
---|
34 | ;;
|
---|
35 | ;
|
---|
36 | ;The interface for AICS to get list on form for help.
|
---|
37 | INTRFACE ;;PX SELECT SKIN TEST
|
---|
38 | ;
|
---|
39 | ;********************************
|
---|
40 | ;Special cases for display.
|
---|
41 | ;
|
---|
42 | ;********************************
|
---|
43 | ;Special cases for edit.
|
---|
44 | ;
|
---|
45 | EREADING ;
|
---|
46 | I $P(PXCEAFTR(0),"^",5)'="" D
|
---|
47 | . N DIERR,PXCEDILF,PXCEINT,PXCEEXT
|
---|
48 | . S PXCEINT=$P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))
|
---|
49 | . S PXCEEXT=$$EXTERNAL^DILFD(PXCEFILE,$P(PXCETEXT,"~",3),"",PXCEINT,"PXCEDILF")
|
---|
50 | . S DIR("B")=$S('$D(DIERR):PXCEEXT,1:PXCEINT)
|
---|
51 | S DIR(0)="NAO^0:40:0"
|
---|
52 | S DIR("A")=$P(PXCETEXT,"~",4)
|
---|
53 | S:$P(PXCETEXT,"~",8)]"" DIR("?")=$P(PXCETEXT,"~",8)
|
---|
54 | D ^DIR
|
---|
55 | K DIR,DA
|
---|
56 | I X="@" S Y="@"
|
---|
57 | E I $D(DTOUT)!$D(DUOUT) S PXCEEND=1 Q
|
---|
58 | S $P(PXCEAFTR(0),"^",5)=$P(Y,"^")
|
---|
59 | Q
|
---|
60 | ;
|
---|
61 | ERESULTS ;
|
---|
62 | I $P(PXCEAFTR(0),"^",4)'="" D
|
---|
63 | . N DIERR,PXCEDILF,PXCEINT,PXCEEXT
|
---|
64 | . S PXCEINT=$P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))
|
---|
65 | . S PXCEEXT=$$EXTERNAL^DILFD(PXCEFILE,$P(PXCETEXT,"~",3),"",PXCEINT,"PXCEDILF")
|
---|
66 | . S DIR("B")=$S('$D(DIERR):PXCEEXT,1:PXCEINT)
|
---|
67 | S DIR(0)="SOM^P:POSITIVE;N:NEGATIVE;D:DOUBTFUL;O:NO TAKE"
|
---|
68 | S DIR("A")=$P(PXCETEXT,"~",4)
|
---|
69 | S:$P(PXCETEXT,"~",8)]"" DIR("?")=$P(PXCETEXT,"~",8)
|
---|
70 | D ^DIR
|
---|
71 | K DIR,DA
|
---|
72 | I X="@" S Y="@"
|
---|
73 | E I $D(DTOUT)!$D(DUOUT) S PXCEEND=1 Q
|
---|
74 | S $P(PXCEAFTR(0),"^",4)=$P(Y,"^")
|
---|
75 | Q
|
---|
76 | ;
|
---|
77 | ;********************************
|
---|
78 | ;Display text for the .01 field which is a pointer to Skin Test.
|
---|
79 | ;(Must have is called by ASK^PXCEVFI2 and DEL^PXCEVFI2.)
|
---|
80 | DISPLY01(PXCESK) ;
|
---|
81 | N DIERR,PXCEDILF,PXCEINT,PXCEEXT
|
---|
82 | S PXCEINT=$P(PXCESK,"^",1)
|
---|
83 | S PXCEEXT=$$EXTERNAL^DILFD(9000010.12,.01,"",PXCEINT,"PXCEDILF")
|
---|
84 | Q $S('$D(DIERR):PXCEEXT,1:PXCEINT)
|
---|
85 | ;
|
---|
86 | ;********************************
|
---|
87 | ;
|
---|
88 | SAVE ;Special code for saving a Skin Test.
|
---|
89 | N PXCERR
|
---|
90 | S PXCERR=$P(^TMP("PXK",$J,PXCECATS,1,0,"AFTER"),"^",4,5)
|
---|
91 | Q:PXCERR="^"
|
---|
92 | I $P(PXCERR,"^",1)'=$P(^TMP("PXK",$J,PXCECATS,1,0,"BEFORE"),"^",4) S $P(^TMP("PXK",$J,PXCECATS,1,0,"AFTER"),"^",4)="@"
|
---|
93 | I $P(PXCERR,"^",2)'=$P(^TMP("PXK",$J,PXCECATS,1,0,"BEFORE"),"^",5) S $P(^TMP("PXK",$J,PXCECATS,1,0,"AFTER"),"^",5)="@"
|
---|
94 | D EN1^PXKMAIN
|
---|
95 | S ^TMP("PXK",$J,PXCECATS,1,0,"AFTER")=PXCEAFTR(0)
|
---|
96 | Q
|
---|