Changeset 1586 for ccr/trunk/p/C0CVIT2.m
- Timestamp:
- Oct 30, 2012, 1:11:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CVIT2.m
r1544 r1586 1 1 C0CVIT2 ; CCDCCR/CJE/GPL - CCR/CCD PROCESSING FOR VITALS ; 07/16/08 2 ;;1.2;C 0C;;May 11, 2012;Build 472 ;;1.2;CCD/CCR GENERATION UTILITIES;;Oct 30, 2012;Build 50 3 3 ;Copyright 2008,2009 George Lilly, University of Minnesota and others. 4 ;Licensed under the terms of the GNU General Public License. 5 ;See attached copy of the License. 6 ; 7 ;This program is free software; you can redistribute it and/or modify 8 ;it under the terms of the GNU General Public License as published by 9 ;the Free Software Foundation; either version 2 of the License, or 10 ;(at your option) any later version. 11 ; 12 ;This program is distributed in the hope that it will be useful, 13 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ;GNU General Public License for more details. 16 ; 17 ;You should have received a copy of the GNU General Public License along 18 ;with this program; if not, write to the Free Software Foundation, Inc., 19 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 4 ; 5 ; This program is free software: you can redistribute it and/or modify 6 ; it under the terms of the GNU Affero General Public License as 7 ; published by the Free Software Foundation, either version 3 of the 8 ; License, or (at your option) any later version. 9 ; 10 ; This program is distributed in the hope that it will be useful, 11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 ; GNU Affero General Public License for more details. 14 ; 15 ; You should have received a copy of the GNU Affero General Public License 16 ; along with this program. If not, see <http://www.gnu.org/licenses/>. 20 17 ; 21 18 W "NO ENTRY FROM TOP",! … … 66 63 I '$D(VIT) S @VITOUT@(0)=0 K VIT Q ; RETURN NOT FOUND, KILL ARRAY AND QUIT 67 64 I $P(VIT(1),U,2)="No vitals found." D Q ; signal no vitals and quit 68 . I $D(VITOUT) S @VITOUT@(0)=0 65 . I $D(VITOUT) S @VITOUT@(0)=0 69 66 . K VIT 70 67 ; … … 168 165 Q 169 166 ; 170 HEIGHT 167 HEIGHT ; 171 168 I DEBUG W "IN VITAL: HEIGHT",! 172 169 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC ; UNIQUE OBJID … … 185 182 Q 186 183 ; 187 WEIGHT 184 WEIGHT ; 188 185 I DEBUG W "IN VITAL: WEIGHT",! 189 186 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 202 199 Q 203 200 ; 204 BP 201 BP ; 205 202 I DEBUG W "IN VITAL: BLOOD PRESSURE",! 206 203 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 219 216 Q 220 217 ; 221 TMP 218 TMP ; 222 219 I DEBUG W "IN VITAL: TEMPERATURE",! 223 220 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 236 233 Q 237 234 ; 238 RESP 235 RESP ; 239 236 I DEBUG W "IN VITAL: RESPIRATION",! 240 237 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 253 250 Q 254 251 ; 255 PULSE 252 PULSE ; 256 253 I DEBUG W "IN VITAL: PULSE",! 257 254 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 270 267 Q 271 268 ; 272 PAIN 269 PAIN ; 273 270 I DEBUG W "IN VITAL: PAIN",! 274 271 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 287 284 Q 288 285 ; 289 OTHER 286 OTHER ; 290 287 I DEBUG W "IN VITAL: OTHER",! 291 288 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 305 302 ; 306 303 ;TEMPORARY, THINKING ON HOW TO REFACTOR (CJE) 307 HEIGHT1(DT,ACTOR,VALUE,UNIT) 304 HEIGHT1(DT,ACTOR,VALUE,UNIT) ; 308 305 I DEBUG W "IN VITAL: HEIGHT",! 309 306 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC ; UNIQUE OBJID … … 322 319 Q 323 320 ; 324 WEIGHT1(DT,ACTOR,VALUE,UNIT) 321 WEIGHT1(DT,ACTOR,VALUE,UNIT) ; 325 322 I DEBUG W "IN VITAL: WEIGHT",! 326 323 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 339 336 Q 340 337 ; 341 BP1(DT,ACTOR,VALUE,UNIT) 338 BP1(DT,ACTOR,VALUE,UNIT) ; 342 339 I DEBUG W "IN VITAL: BLOOD PRESSURE",! 343 340 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 356 353 Q 357 354 ; 358 TMP1(DT,ACTOR,VALUE,UNIT) 355 TMP1(DT,ACTOR,VALUE,UNIT) ; 359 356 I DEBUG W "IN VITAL: TEMPERATURE",! 360 357 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 373 370 Q 374 371 ; 375 RESP1(DT,ACTOR,VALUE,UNIT) 372 RESP1(DT,ACTOR,VALUE,UNIT) ; 376 373 I DEBUG W "IN VITAL: RESPIRATION",! 377 374 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 390 387 Q 391 388 ; 392 PULSE1(DT,ACTOR,VALUE,UNIT) 389 PULSE1(DT,ACTOR,VALUE,UNIT) ; 393 390 I DEBUG W "IN VITAL: PULSE",! 394 391 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 407 404 Q 408 405 ; 409 PAIN1(DT,ACTOR,VALUE,UNIT) 406 PAIN1(DT,ACTOR,VALUE,UNIT) ; 410 407 I DEBUG W "IN VITAL: PAIN",! 411 408 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC … … 424 421 Q 425 422 ; 426 OTHER1(DT,TEXT,ACTOR,VALUE,UNIT) 423 OTHER1(DT,TEXT,ACTOR,VALUE,UNIT) ; 427 424 I DEBUG W "IN VITAL: OTHER",! 428 425 S ZRNF("VITALSIGNSDATAOBJECTID")="VITAL"_C0CC
Note:
See TracChangeset
for help on using the changeset viewer.