Changeset 351


Ignore:
Timestamp:
Feb 3, 2009, 10:29:44 AM (16 years ago)
Author:
George Lilly
Message:

progress on IMMUNIZATIONS

Location:
ccr/trunk/p
Files:
2 edited

Legend:

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

    r346 r351  
    345345 ; IF ZTAB IS NULL, IT DEFAULTS TO C0CA
    346346 I '$D(ZTAB) S ZTAB="C0CA"
    347  Q $P(@ZTAB@(ZFN),"^",3)
     347 Q $P($G(@ZTAB@(ZFN)),"^",3)
    348348 ;
    349349ZVALUEI(ZFN,ZTAB) ;EXTRINSIC TO RETURN INTERNAL VALUE FOR FIELD NAME PASSED
     
    351351 ; IF ZTAB IS NULL, IT DEFAULTS TO C0CA
    352352 I '$D(ZTAB) S ZTAB="C0CA"
    353  Q $P(@ZTAB@(ZFN,"I"),"^",3)
    354  ;
     353 Q $P($G(@ZTAB@(ZFN,"I")),"^",3)
     354 ;
  • ccr/trunk/p/GPLIMMU.m

    r350 r351  
    4040 . S @OUTXML@(0)=0
    4141 ;S @TVMAP@(0)=RPCRSLT(0) ; SAVE NUMBER OF PROBLEMS
     42 N C0CIM,C0CC,C0CIMD,C0CIEN,C0CT ;
    4243 S C0CIM=""
     44 S C0CC=0 ; COUNT
    4345 F  S C0CIM=$O(@IMMA@(C0CIM)) Q:C0CIM=""  D  ; FOR EACH IMMUNE TYPE IN THE LIST
     46 . S C0CC=C0CC+1 ;INCREMENT COUNT
     47 . S @TVMAP@(0)=C0CC ; SAVE NEW COUNT TO ARRAY
     48 . S VMAP=$NA(@TVMAP@(C0CC)) ; THIS IMMUNE ELEMENT
     49 . K @VMAP ; MAKE SURE IT IS CLEARED OUT
    4450 . W C0CIM,!
    4551 . S C0CIMD="" ; IMMUNE DATE
    4652 . F  S C0CIMD=$O(@IMMA@(C0CIM,C0CIMD)) Q:C0CIMD=""  D  ; FOR EACH DATE
    4753 . . S C0CIEN=$O(@IMMA@(C0CIM,C0CIMD,"")) ;IEN OF IMMUNE RECORD
    48  . . D GETN^C0CRNF("C0CI",9000010.11,C0CIEN) ;
    49  . . W C0CIEN,"_",C0CIMD,!
    50  . B
     54 . . D GETN^C0CRNF("C0CI",9000010.11,C0CIEN) ; GET THE FILEMAN RECORD TO PULL IENS
     55 . . W C0CIEN,"_",C0CIMD
     56 . . S C0CT=$$FMDTOUTC^CCRUTIL(9999999-C0CIMD,"DT") ; FORMAT DATE/TIME
     57 . . W C0CT,!
     58 . . S @VMAP@("IMMUNEOBJECTID")="IMMUNIZATION_"_C0CC ;UNIQUE OBJECT ID
     59 . . S @VMAP@("IMMUNEDATETIMETYPETEXT")="Immunization Date" ; ALL ARE THE SAME
     60 . . S @VMAP@("IMMUNEDATETIME")=C0CT ;FORMATTED DATE/TIME
     61 . . S C0CIP=$$ZVALUEI^C0CRNF("ENCOUNTER PROVIDER","C0CI") ;IEN OF PROVIDER
     62 . . S @VMAP@("IMMUNESOURCEACTORID")="ACTORPROVIDOR_"_C0CIP
     63 . . S C0CIIEN=$$ZVALUEI^C0CRNF("IMMUNIZATION","C0CI") ;IEN OF IMMUNIZATION
     64 . . ; FOR LOOKING UP THE CODE (TBD GPL)
     65 . . S C0CIN=$$ZVALUE^C0CRNF("IMMUNIZATION","C0CI") ;NAME OF IMMUNIZATION
     66 . . ; GET IT FROM THE CODE FILE CHANGE THIS (TBD GPL)
     67 . . S @VMAP@("IMMUNEPRODUCTNAMETEXT")=C0CIN ;NAME
     68 . . S @VMAP@("IMMUNEPRODUCTCODE")="" ;FIX THIS
     69 . . S @VMAP@("IMMUNEPRODUCTCODESYSTEM")="" ;FIX THIS
     70 B
    5171 Q
    5272 . S VMAP=$NA(@TVMAP@(J))
Note: See TracChangeset for help on using the changeset viewer.