Changeset 687
- Timestamp:
- Jan 27, 2010, 12:15:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CMED6.m
r593 r687 1 C0CMED6 1 C0CMED6 ; WV/CCDCCR/SMH - Meds from RPMS: Outpatient Meds;01/10/09 2 2 ;;1.0;C0C;;May 19, 2009; 3 3 ; Copyright 2008 WorldVistA. Licensed under the terms of the GNU … … 21 21 Q 22 22 ; 23 EXTRACT(MINXML,DFN,OUTXML, FLAGS); EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE23 EXTRACT(MINXML,DFN,OUTXML,MEDCOUNT,FLAGS) ; EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE 24 24 ; 25 25 ; MINXML and OUTXML are passed by name so globals can be used 26 26 ; MINXML will contain only the medications skeleton of the overall template 27 ; MEDCOUNT is a counter passed by Reference. 27 28 ; FLAGS are: MEDALL(bool)^MEDLIMIT(int)^MEDACTIVE(bool)^MEDPENDING(bool) 28 29 ; FLAGS are set-up in C0CMED. … … 41 42 ; -- DAYS is passed by value (optional; if not passed defaults to 365) 42 43 ; 43 ; Return: 44 ; ~Type(1)^PharmID(2)^Drug(3)^InfRate(4)^StopDt(5)^RefRem(6)^ 45 ; TotDose(7)^UnitDose(8)^OrderID(9)^Status(10)^LastFill(11)^ 46 ; Days Supply(12)^Quantity(13)^Chronic(14)^Issued(15)^ 47 ; Rx #(16)^Provider(17)^Status Reason(18)^DEA Handling(19)^ 48 ; Pharmacy Site(20) 44 ; Return: 45 ; ~Type^PharmID^Drug^InfRate^StopDt^RefRem^TotDose^UnitDose^OrderID 46 ; ^Status^LastFill^Chronic^Issued^Rx #^Provider^ 47 ; Status Reason^DEA Handling 49 48 ; 50 49 N MEDS,MEDS1,MAP … … 76 75 . S @MAP@("MEDOBJECTID")="MED"_MEDCNT ; MEDCNT FOR ID 77 76 . S @MAP@("MEDISSUEDATETXT")="Issue Date" 78 . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL($P(MEDS(MEDCNT),U,15) )77 . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL($P(MEDS(MEDCNT),U,15),"DT") 79 78 . S @MAP@("MEDLASTFILLDATETXT")="Last Fill Date" 80 . S @MAP@("MEDLASTFILLDATE")=$$FMDTOUTC^C0CUTIL($P(MEDS(MEDCNT),U,11) )79 . S @MAP@("MEDLASTFILLDATE")=$$FMDTOUTC^C0CUTIL($P(MEDS(MEDCNT),U,11),"DT") 81 80 . S @MAP@("MEDRXNOTXT")="Prescription Number" 82 . S @MAP@("MEDRXNO")=$P(MEDS(MEDCNT),U,1 6)81 . S @MAP@("MEDRXNO")=$P(MEDS(MEDCNT),U,14) 83 82 . S @MAP@("MEDTYPETEXT")="Medication" 84 83 . S @MAP@("MEDDETAILUNADORNED")="" ; Leave blank, field has its uses … … 299 298 . D:MEDCNT=1 CP^C0CXPATH(RESULT,OUTXML) ; First one is a copy 300 299 . D:MEDCNT>1 INSINNER^C0CXPATH(OUTXML,RESULT) ; AFTER THE FIRST, INSERT INNER XML 300 . S MEDCOUNT=MEDCNT 301 301 N MEDTMP,MEDI 302 302 D MISSING^C0CXPATH(OUTXML,"MEDTMP") ; SEARCH XML FOR MISSING VARS
Note:
See TracChangeset
for help on using the changeset viewer.