Changeset 752 for ccr


Ignore:
Timestamp:
May 7, 2010, 6:30:28 PM (15 years ago)
Author:
George Lilly
Message:

update to record DUZ when importing XML

File:
1 edited

Legend:

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

    r646 r752  
    2525 S ZI="/home/vademo2/CCR" ;directory purposely leaving off the trailing /
    2626 S ZJ="PAT_358_CCR_V1_0_21.xml" ; random test patient
    27  D RPCFIN(.GPL,358,"GPLTEST","CCR",ZJ,ZI)
     27 D RPCFIN(.GPL,358,135,"GPLTEST","CCR",ZJ,ZI)
    2828 Q
    2929 ;
    30 RPCAIN(RTN,DFN,SOURCE,TYPE,ARY) ; ARRAY IN RPC - ACCEPT AN XML DOCUMENT
     30RPCAIN(RTN,DFN,DUZ,SOURCE,TYPE,ARY) ; ARRAY IN RPC - ACCEPT AN XML DOCUMENT
    3131 ; AND STORE IT IN THE INCOMING XML FILE
    3232 ; RETURNS THE IEN OF THE RECORD OR TEXT IF THERE IS AN ERROR
     
    3535 N C0CFDA,ZX
    3636 S C0CFDA(C0CXF,"+1,",.01)=DFN ; PATIENT
     37 S C0CFDA(C0CXF,"+1,",.02)=DUZ ; PROVIDER CREATING THE RECORD
    3738 S C0CFDA(C0CXF,"+1,",1)=$$NOW^XLFDT ;DATE
    3839 S C0CFDA(C0CXF,"+1,",2)=TYPE  ;TYPE
     
    5556 Q $O(^C0C(171.401,"B",ZSRC,""))
    5657 ;
    57 RPCFIN(RTN,DFN,SOURCE,TYPE,FN,FP) ; FILE IN RPC - READ AN XML DOCUMENT
     58RPCFIN(RTN,DFN,DUZ,SOURCE,TYPE,FN,FP) ; FILE IN RPC - READ AN XML DOCUMENT
    5859 ; FROM A HOST FILE AND STORE IT IN THE INCOMING XML FILE
    5960 N ZX,ZTMP
     
    6465 I '$D(ZTMP) D  Q  ; NO LUCK
    6566 . W "FILE NOT LOADED",!
    66  D RPCAIN(.RTN,DFN,SOURCE,TYPE,"ZTMP")
     67 D RPCAIN(.RTN,DFN,DUZ,SOURCE,TYPE,"ZTMP")
    6768 N C0CFDA
    6869 S C0CFDA(175,RTN_",",5)=FN ; FILE NAME
     
    7475 ; THAT ARE STORED IN THE INCOMING XML FILE
    7576 ; RETURNS AN ARRAY OF THE FORM
    76  ; RTN(x)="IEN^DATE^TYPE^SOURCE^STATUS" WHERE
     77 ; RTN(x)="IEN^DATE^TYPE^SOURCE^STATUS^CREATEDBY" WHERE
    7778 ; IEN IS THE RECORD NUMBER OF THE XML DOCUMENT
    7879 ; DATE IS THE DATE THE DOCUMENT WAS STORED IN THE FILE
     
    8081 ; SOURCE IS THE NAME OF THE DOCUMENT SOURCE FROM THE CCR SOURCE FILE
    8182 ; STATUS IS THE STATUS OF THE DOCUMENT (VALUES TO BE DEFINED)
     83 ; CREATEDBY IS THE NAME OF THE PROVIDER WHO UPLOADED THE XML
    8284 N ZF S ZF=175 ; FILE NUMBER OF INCOMING XML FILE
    8385 N ZI S ZI=""
     
    9092 . S $P(RTN(ZN),"^",4)=$$GET1^DIQ(ZF,ZI_",",3,"E") ;SOURCE
    9193 . S $P(RTN(ZN),"^",5)=$$GET1^DIQ(ZF,ZI_",",7,"I") ; STATUS
     94 . S $P(RTN(ZN),"^",6)=$$GET1^DIQ(ZF,ZI_",",.02,"E") ; CREATED BY
    9295 Q
    9396 ;
Note: See TracChangeset for help on using the changeset viewer.