- Timestamp:
- Sep 15, 2009, 12:26:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CUTIL.m
r508 r559 1 C0CUTIL 2 ;; 1.0;C0C;;May 19, 2009;1 C0CUTIL ;WV/C0C/SMH - Various Utilites for generating the CCR/CCD;06/15/08 2 ;;0.1;C0C;;Jun 15, 2008;Build 29 3 3 ;Copyright 2008-2009 Sam Habiel & George Lilly. 4 4 ;Licensed under the terms of the GNU … … 22 22 Q 23 23 ; 24 FMDTOUTC(DATE,FORMAT) 24 FMDTOUTC(DATE,FORMAT) ; Convert Fileman Date to UTC Date Format; PUBLIC; Extrinsic 25 25 ; FORMAT is Format of Date. Can be either D (Day) or DT (Date and Time) 26 26 ; If not passed, or passed incorrectly, it's assumed that it is D. … … 58 58 E Q $P(UTC,"T") 59 59 ; 60 SORTDT(V1,V2,ORDR) 60 SORTDT(V1,V2,ORDR) ; DATE SORT ARRAY AND RETURN INDEX IN V1 AND COUNT 61 61 ; AS EXTRINSIC ORDR IS 1 OR -1 FOR FORWARD OR REVERSE 62 62 ; DATE AND TIME ORDER. DEFAULT IS FORWARD … … 79 79 F D Q:ZG="" ; 80 80 . ; W ZG,! 81 . D PUSH^ GPLXPATH("V1",@ZG)81 . D PUSH^C0CXPATH("V1",@ZG) 82 82 . S ZG=$Q(@ZG) 83 83 I ORDR=-1 D ; HAVE TO REVERSE ORDER … … 86 86 . . S ZG2(V1(0)-ZI+1)=V1(ZI) ; SET IN REVERSE ORDER 87 87 . S ZG2(0)=V1(0) 88 . D CP^ GPLXPATH("ZG2","V1") ; COPY OVER THE NEW ARRAY88 . D CP^C0CXPATH("ZG2","V1") ; COPY OVER THE NEW ARRAY 89 89 Q ZCNT 90 90 ; 91 DA2SNO(RTN,DNAME) 91 DA2SNO(RTN,DNAME) ; LOOK UP DRUG ALLERGY CODE IN ^LEX 92 92 ; RETURNS AN ARRAY RTN PASSED BY REFERENCE 93 93 ; THIS ROUTINE CAN BE USED AS AN RPC … … 104 104 Q 105 105 ; 106 DASNO(DANAME) 106 DASNO(DANAME) ; PRINTS THE SNOMED CODE FOR ALLERGY TO DRUG DANAME 107 107 ; 108 108 N DARTN … … 113 113 Q 114 114 ; 115 DASNALL(WHICH) 115 DASNALL(WHICH) ; ROUTINE TO EXAMINE THE ADIS INDEX IN LEX AND RETRIEVE ALL 116 116 ; ASSOCIATED SNOMED CODES 117 117 N DASTMP,DASIEN,DASNO … … 123 123 Q 124 124 ; 125 RPMS() 125 RPMS() ; Are we running on an RPMS system rather than Vista? 126 126 Q $G(DUZ("AG"))="I" ; If User Agency is Indian Health Service 127 VISTA() 127 VISTA() ; Are we running on Vanilla Vista? 128 128 Q $G(DUZ("AG"))="V" ; If User Agency is VA 129 WV() 129 WV() ; Are we running on WorldVista? 130 130 Q $G(DUZ("AG"))="E" ; Code for WV. 131 OV() 131 OV() ; Are we running on OpenVista? 132 132 Q $G(DUZ("AG"))="O" ; Code for OpenVista 133
Note:
See TracChangeset
for help on using the changeset viewer.