Changeset 1004 for ccr2ccd-xslt/trunk/make/FixMeasuresSection.sh
- Timestamp:
- Nov 11, 2010, 12:04:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr2ccd-xslt/trunk/make/FixMeasuresSection.sh
r1001 r1004 3 3 #MeasuresAndReportingParametersWithVariables.xml 4 4 #MEASURES-BY-PATIENT.txt 5 #This script 5 #This script which is FixMeasuresSection.sh 6 6 7 8 for MyFile in $(ls -1 /home/nancy/CCR-Template/QRDA/PAT_*_QRDA_V1_0_0-11-04-2010_21.xml); 7 for MyFile in $(ls -1 PAT_*_QRDA_V1_0_0-11-10-2010_16.xml); 9 8 do 10 9 StructuredBodyLine=$(grep -n "<structuredBody" "$MyFile" | awk -F: '{ print $1 }') … … 22 21 sed -in "$a","$b"d "$MyFile" 23 22 #insert the contents of this file after the structured body line 24 sed -in '/MeasuresSection/r MeasuresAndReportingParametersWithVariables .xml' "$MyFile"23 sed -in '/MeasuresSection/r MeasuresAndReportingParametersWithVariables2011.xml' "$MyFile" 25 24 sed -in s/\<MeasuresSection\\/\>// "$MyFile" 26 25 done 27 26 28 27 29 rm -rf /home/nancy/CCR-Template/QRDA/PAT*.xmln28 rm -rf PAT*.xmln 30 29 31 30 NewFunction() 32 31 { 33 File="PAT_$1_QRDA_V1_0_0-11- 04-2010_21.xml"32 File="PAT_$1_QRDA_V1_0_0-11-10-2010_16.xml" 34 33 shift 35 34 while [ "0" != "$#" ] … … 39 38 echo "$1" 40 39 sed -in "s/<!--@@@$1-Tpl@@@//" "$File" 41 sed -in "s/<!--@@@$1- Item@@@//" "$File"40 sed -in "s/<!--@@@$1-item@@@//" "$File" 42 41 sed -in "s/<!--@@@$1-Act@@@//" "$File" 43 42 sed -in "s/<!--@@@M-Set2011@@@//" "$File" 44 43 sed -in "s/@@@@$1-Tpl@@@@-->//" "$File" 45 sed -in "s/@@@@$1- Item@@@@-->//" "$File"44 sed -in "s/@@@@$1-item@@@@-->//" "$File" 46 45 sed -in "s/@@@@$1-Act@@@@-->//" "$File" 47 46 sed -in "s/@@@@M-Set2011@@@@-->//" "$File" 48 47 sed -in "s/<!--@@@M-Param2011@@@//" "$File" 49 sed -in "s/@@@@M-Param2011@@@@ //" "$File"48 sed -in "s/@@@@M-Param2011@@@@-->//" "$File" 50 49 51 50 shift … … 60 59 done < "MEASURES-BY-PATIENT.txt" 61 60 62 rm -rf /home/nancy/CCR-Template/QRDA/PAT*.xmln61 rm -rf PAT*.xmln
Note:
See TracChangeset
for help on using the changeset viewer.