Changeset 73
- Timestamp:
- Jul 23, 2008, 3:16:41 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLMEDS.m
r70 r73 1 GPLMEDS ; CCDCCR/CJE - CCR/CCD PROCESSING FOR MEDICATIONS ; 07/16/08 2 ;;0.1;CCDCCR;;JUL 16,2008; 3 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU 4 ;General Public License See attached copy of the License. 5 ; 6 ;This program is free software; you can redistribute it and/or modify 7 ;it under the terms of the GNU General Public License as published by 8 ;the Free Software Foundation; either version 2 of the License, or 9 ;(at your option) any later version. 10 ; 11 ;This program is distributed in the hope that it will be useful, 12 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ;GNU General Public License for more details. 15 ; 16 ;You should have received a copy of the GNU General Public License along 17 ;with this program; if not, write to the Free Software Foundation, Inc., 18 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 ; 20 W "NO ENTRY FROM TOP",! 21 W ! 22 Q 23 ; 24 EXTRACT(MEDXML,DFN,MEDOUTXML) ; EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE 1 GPLMEDS ; CCDCCR/CJE - CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08 14:33 2 ;;0.1;CCDCCR;;JUL 16,2008; 3 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU 4 ;General Public License See attached copy of the License. 5 ; 6 ;This program is free software; you can redistribute it and/or modify 7 ;it under the terms of the GNU General Public License as published by 8 ;the Free Software Foundation; either version 2 of the License, or 9 ;(at your option) any later version. 10 ; 11 ;This program is distributed in the hope that it will be useful, 12 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ;GNU General Public License for more details. 15 ; 16 ;You should have received a copy of the GNU General Public License along 17 ;with this program; if not, write to the Free Software Foundation, Inc., 18 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 ; 20 W "NO ENTRY FROM TOP",! 21 Q 22 ; 23 EXTRACT(MEDXML,DFN,MEDOUTXML) ; EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE 25 24 ; 26 25 ; MEDXML AND OUTXML ARE PASSED BY NAME SO GLOBALS CAN BE USED … … 29 28 N MEDRSLT,J,K,MEDPTMP,X,MEDVMAP,TBUF 30 29 D ACTIVE^ORWPS(.MEDRSLT,DFN) 31 ZWR MEDRSLT32 30 Q 33 31 I '$D(MEDRSLT(1)) W "ERROR RUNNINIG MEDICATIONS RPC",! Q -
ccr/trunk/p/GPLVITALS.m
r65 r73 1 1 GPLVITALS ; CCDCCR/CJE - CCR/CCD PROCESSING FOR VITALS ; 07/16/08 2 ;;0.1;CCDCCR;;JUL 16,2008;3 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU4 ;General Public License See attached copy of the License.5 ;6 ;This program is free software; you can redistribute it and/or modify7 ;it under the terms of the GNU General Public License as published by8 ;the Free Software Foundation; either version 2 of the License, or9 ;(at your option) any later version.10 ;11 ;This program is distributed in the hope that it will be useful,12 ;but WITHOUT ANY WARRANTY; without even the implied warranty of13 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14 ;GNU General Public License for more details.15 ;16 ;You should have received a copy of the GNU General Public License along17 ;with this program; if not, write to the Free Software Foundation, Inc.,18 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.19 ;2 ;;0.1;CCDCCR;;JUL 16,2008; 3 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU 4 ;General Public License See attached copy of the License. 5 ; 6 ;This program is free software; you can redistribute it and/or modify 7 ;it under the terms of the GNU General Public License as published by 8 ;the Free Software Foundation; either version 2 of the License, or 9 ;(at your option) any later version. 10 ; 11 ;This program is distributed in the hope that it will be useful, 12 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ;GNU General Public License for more details. 15 ; 16 ;You should have received a copy of the GNU General Public License along 17 ;with this program; if not, write to the Free Software Foundation, Inc., 18 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 ; 20 20 W "NO ENTRY FROM TOP",! 21 W !22 21 Q 23 22 ; 24 EXTRACT(VITXML,DFN,VITOUTXML) 23 EXTRACT(VITXML,DFN,VITOUTXML) ; EXTRACT VITALS INTO PROVIDED XML TEMPLATE 25 24 ; 26 25 ; VITXML AND OUTXML ARE PASSED BY NAME SO GLOBALS CAN BE USED … … 45 44 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="HEIGHT" 46 45 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1" 47 . . . ;S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6)48 46 . . . S @VITVMAP@("VITALSIGNSTESTOBJECTID")="VITALTEST"_J 49 47 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 50 48 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="HEIGHT" 51 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""52 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""53 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""49 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="248327008" 50 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="SNOMED" 51 . . . S @VITVMAP@("VITALSIGNSCODEVERSION")="" 54 52 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 55 53 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) … … 63 61 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 64 62 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="WEIGHT" 65 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""66 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""67 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""63 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="107647005" 64 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="SNOMED" 65 . . . S @VITVMAP@("VITALSIGNSCODEVERSION")="" 68 66 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 69 67 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) … … 77 75 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 78 76 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="BLOOD PRESSURE" 79 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""80 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""81 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""77 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="392570002" 78 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="SNOMED" 79 . . . S @VITVMAP@("VITALSIGNSCODEVERSION")="" 82 80 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 83 81 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) … … 91 89 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 92 90 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="TEMPERATURE" 93 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""94 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""95 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""91 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="309646008" 92 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="SNOMED" 93 . . . S @VITVMAP@("VITALSIGNSCODEVERSION")="" 96 94 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 97 95 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) … … 105 103 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 106 104 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="RESPIRATION" 107 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""108 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""109 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""105 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="366147009" 106 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="SNOMED" 107 . . . S @VITVMAP@("VITALSIGNSCODEVERSION")="" 110 108 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 111 109 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) … … 119 117 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 120 118 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="PULSE" 121 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""122 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""123 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""119 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="366199006" 120 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="SNOMED" 121 . . . S @VITVMAP@("VITALSIGNSCODEVERSION")="" 124 122 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 125 123 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) … … 133 131 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 134 132 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="PAIN" 135 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""136 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""137 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""133 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="22253000" 134 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="SNOMED" 135 . . . S @VITVMAP@("VITALSIGNSCODEVERSION")="" 138 136 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 139 137 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) … … 150 148 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="" 151 149 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="" 152 . . . ;S @VITVMAP@("VITALSIGNS DESCRIPTIONCODEVERSION")=""150 . . . ;S @VITVMAP@("VITALSIGNSCODEVERSION")="" 153 151 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 154 152 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3)
Note:
See TracChangeset
for help on using the changeset viewer.