Changeset 786


Ignore:
Timestamp:
May 25, 2010, 4:46:35 PM (15 years ago)
Author:
George Lilly
Message:

encounters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CENC.m

    r785 r786  
    112112 N ZS,ZC
    113113 S ZC="" S ZS=""
    114  S ZTXT=""
     114 S (ZTXT,ZCDE,ZSYS)=""
    115115 F  S ZC=$O(@ZARY@("CPT",ZC)) Q:ZC=""  D  ; TRY AND FIND A "99" CPT CODE
    116116 . N ZT
     
    131131 ; ZVST IS THE VISIT ARRAY AND IS PASSED BY NAME
    132132 ; RETURNS TEXT TO USE AS ENCOUNTER TYPE IF ANY
    133  N ZI,ZJ
    134  S ZI="" S ZJ=""
    135  F  S ZI=$O(@ZVST@("CPT",ZI)) Q:ZI=""  D  ; LOOK FOR SOME TEXT TO USE
     133 N ZK,ZL
     134 S ZK="" S ZL=""
     135 F  S ZK=$O(@ZVST@("CPT",ZK)) Q:ZK=""  D  ; LOOK FOR SOME TEXT TO USE
    136136 . N ZT
    137  . S ZT=$G(@ZVST@("CPT",ZI)) ; LOOK AT THIS CPT MULTIPLE
    138  . I $P(ZT,U,2)_" "_$P(ZT,U,3)'=" " S ZJ=$P(ZT,U,2)_" "_$P(ZT,U,3)
     137 . S ZT=$G(@ZVST@("CPT",ZK)) ; LOOK AT THIS CPT MULTIPLE
     138 . I $P(ZT,U,2)_" "_$P(ZT,U,3)'=" " S ZL=$P(ZT,U,2)_" "_$P(ZT,U,3)
    139139 . ; CONCATENATE PIECE 2 AND 3 OF THE CPT MULTIPLE FOR A TYPE
    140  I ZJ="" S ZJ=$G(@ZVST@("CLASS")) ; USE THE NOTE DOCUMENT CLASS FOR ENCOUTNER TYPE
    141  Q ZJ
     140 I ZL="" S ZL=$G(@ZVST@("CLASS")) ; USE THE NOTE DOCUMENT CLASS FOR ENCOUTNER TYPE
     141 Q ZL
    142142 ;
    143143PRV(IARY) ; RETURNS THE PRIMARY PROVIDER FROM THE "PRV" ARRAY PASSED BY NAME
Note: See TracChangeset for help on using the changeset viewer.