- Timestamp:
- May 7, 2010, 6:30:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CIN.m
r646 r752 25 25 S ZI="/home/vademo2/CCR" ;directory purposely leaving off the trailing / 26 26 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) 28 28 Q 29 29 ; 30 RPCAIN(RTN,DFN, SOURCE,TYPE,ARY) ; ARRAY IN RPC - ACCEPT AN XML DOCUMENT30 RPCAIN(RTN,DFN,DUZ,SOURCE,TYPE,ARY) ; ARRAY IN RPC - ACCEPT AN XML DOCUMENT 31 31 ; AND STORE IT IN THE INCOMING XML FILE 32 32 ; RETURNS THE IEN OF THE RECORD OR TEXT IF THERE IS AN ERROR … … 35 35 N C0CFDA,ZX 36 36 S C0CFDA(C0CXF,"+1,",.01)=DFN ; PATIENT 37 S C0CFDA(C0CXF,"+1,",.02)=DUZ ; PROVIDER CREATING THE RECORD 37 38 S C0CFDA(C0CXF,"+1,",1)=$$NOW^XLFDT ;DATE 38 39 S C0CFDA(C0CXF,"+1,",2)=TYPE ;TYPE … … 55 56 Q $O(^C0C(171.401,"B",ZSRC,"")) 56 57 ; 57 RPCFIN(RTN,DFN, SOURCE,TYPE,FN,FP) ; FILE IN RPC - READ AN XML DOCUMENT58 RPCFIN(RTN,DFN,DUZ,SOURCE,TYPE,FN,FP) ; FILE IN RPC - READ AN XML DOCUMENT 58 59 ; FROM A HOST FILE AND STORE IT IN THE INCOMING XML FILE 59 60 N ZX,ZTMP … … 64 65 I '$D(ZTMP) D Q ; NO LUCK 65 66 . W "FILE NOT LOADED",! 66 D RPCAIN(.RTN,DFN, SOURCE,TYPE,"ZTMP")67 D RPCAIN(.RTN,DFN,DUZ,SOURCE,TYPE,"ZTMP") 67 68 N C0CFDA 68 69 S C0CFDA(175,RTN_",",5)=FN ; FILE NAME … … 74 75 ; THAT ARE STORED IN THE INCOMING XML FILE 75 76 ; RETURNS AN ARRAY OF THE FORM 76 ; RTN(x)="IEN^DATE^TYPE^SOURCE^STATUS " WHERE77 ; RTN(x)="IEN^DATE^TYPE^SOURCE^STATUS^CREATEDBY" WHERE 77 78 ; IEN IS THE RECORD NUMBER OF THE XML DOCUMENT 78 79 ; DATE IS THE DATE THE DOCUMENT WAS STORED IN THE FILE … … 80 81 ; SOURCE IS THE NAME OF THE DOCUMENT SOURCE FROM THE CCR SOURCE FILE 81 82 ; STATUS IS THE STATUS OF THE DOCUMENT (VALUES TO BE DEFINED) 83 ; CREATEDBY IS THE NAME OF THE PROVIDER WHO UPLOADED THE XML 82 84 N ZF S ZF=175 ; FILE NUMBER OF INCOMING XML FILE 83 85 N ZI S ZI="" … … 90 92 . S $P(RTN(ZN),"^",4)=$$GET1^DIQ(ZF,ZI_",",3,"E") ;SOURCE 91 93 . 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 92 95 Q 93 96 ;
Note:
See TracChangeset
for help on using the changeset viewer.