source: FOIAVistA/trunk/r/PCE_PATIENT_CARE_ENCOUNTER-AUTN-EFDP-PX-VSIT--PXRM/PXCECPT1.m@ 1504

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

initial load of FOIAVistA 6/30/08 version

File size: 738 bytes
Line 
1PXCECPT1 ;ISA/DHH/BDB - Used to edit and display V CPT ;9/5/2005
2 ;;1.0;PCE PATIENT CARE ENCOUNTER;**170,164**;Aug 12, 1996
3 ;; ;
4 Q
5ICDEN ;diagnosis lookup using lexicon
6 ;
7 I $G(X)["?" Q
8 K Y N DIC I $G(X)="?BAD" S X="" Q
9 D CONFIG^LEXSET("ICD",,$G(PXCEAPDT))
10 S DIC(0)=""
11 S DIC="^LEX(757.01,",DIC(0)=$S('$L($G(X)):"",1:"")_"EQM"
12 S DIC("A")="Enter Diagnosis: "
13 D ^DIC
14 I Y=-1 S X="" Q
15 S X=$G(Y(1))
16 Q
17 ;
18DEPART ;PX*1.0*164 Set the Department Code to the Clinic AMIS Reporting Stop Code
19 Q:'$$SWSTAT^IBBAPI() D
20 . I $P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))="",$P($G(^AUPNVSIT(PXCEVIEN,0)),"^",8) S $P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))=$P($G(^DIC(40.7,$P(^AUPNVSIT(PXCEVIEN,0),"^",8),0)),"^",2)
21 Q
Note: See TracBrowser for help on using the repository browser.