Changeset 786
- Timestamp:
- May 25, 2010, 4:46:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CENC.m
r785 r786 112 112 N ZS,ZC 113 113 S ZC="" S ZS="" 114 S ZTXT=""114 S (ZTXT,ZCDE,ZSYS)="" 115 115 F S ZC=$O(@ZARY@("CPT",ZC)) Q:ZC="" D ; TRY AND FIND A "99" CPT CODE 116 116 . N ZT … … 131 131 ; ZVST IS THE VISIT ARRAY AND IS PASSED BY NAME 132 132 ; RETURNS TEXT TO USE AS ENCOUNTER TYPE IF ANY 133 N Z I,ZJ134 S Z I="" S ZJ=""135 F S Z I=$O(@ZVST@("CPT",ZI)) Q:ZI="" D ; LOOK FOR SOME TEXT TO USE133 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 136 136 . N ZT 137 . S ZT=$G(@ZVST@("CPT",Z I)) ; LOOK AT THIS CPT MULTIPLE138 . I $P(ZT,U,2)_" "_$P(ZT,U,3)'=" " S Z J=$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) 139 139 . ; CONCATENATE PIECE 2 AND 3 OF THE CPT MULTIPLE FOR A TYPE 140 I Z J="" S ZJ=$G(@ZVST@("CLASS")) ; USE THE NOTE DOCUMENT CLASS FOR ENCOUTNER TYPE141 Q Z J140 I ZL="" S ZL=$G(@ZVST@("CLASS")) ; USE THE NOTE DOCUMENT CLASS FOR ENCOUTNER TYPE 141 Q ZL 142 142 ; 143 143 PRV(IARY) ; RETURNS THE PRIMARY PROVIDER FROM THE "PRV" ARRAY PASSED BY NAME
Note:
See TracChangeset
for help on using the changeset viewer.