Changeset 155 for ccr/trunk/p/GPLXPATH.m


Ignore:
Timestamp:
Sep 21, 2008, 5:10:51 PM (16 years ago)
Author:
George Lilly
Message:

added DPATVGPLRIMA and supporting routines to display patient variables

File:
1 edited

Legend:

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

    r149 r155  
    5050 Q
    5151 ;
     52PUSHA(ADEST,ASRC) ; PUSH ASRC ONTO ADEST, BOTH PASSED BY NAME
     53 ;
     54 N ZGI
     55 F ZGI=1:1:@ASRC@(0) D  ; FOR ALL OF THE SOURCE ARRAY
     56 . D PUSH(ADEST,@ASRC@(ZGI)) ; PUSH ONE ELEMENT
     57 Q
     58 ;
    5259MKMDX(STK,RTN)  ; MAKES A MUMPS INDEX FROM THE ARRAY STK
    53  ; RTN IS SET TO //FIRST/SECOND/THIRD" FOR THREE ARRAY ELEMENTS
     60 ; RTN IS SET TO //FIRST/SECOND/THIRD FOR THREE ARRAY ELEMENTS
    5461 S RTN=""
    5562 N I
     
    420427 Q
    421428 ;
     429H2ARY(IARYRTN,IHASH) ; CONVERT IHASH TO RETURN ARRAY
     430 ;
     431 N H2I S H2I=""
     432 ; W $O(@IHASH@(H2I)),!
     433 F  S H2I=$O(@IHASH@(H2I)) Q:H2I=""  D  ; FOR EACH ELEMENT OF THE HASH
     434 . ; W H2I_"^"_@IHASH@(H2I),!
     435 . D PUSH(IARYRTN,H2I_"^"_@IHASH@(H2I))
     436 . ; W @IARYRTN@(0),!
     437 Q
     438 ;
    422439TEST     ; Run all the test cases
    423440 D TESTALL^GPLUNIT("GPLXPAT0")
Note: See TracChangeset for help on using the changeset viewer.