Ignore:
Timestamp:
Nov 11, 2010, 12:04:08 AM (14 years ago)
Author:
George Lilly
Message:

final PQRI files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr2ccd-xslt/trunk/make/FixMeasuresSection.sh

    r1001 r1004  
    33#MeasuresAndReportingParametersWithVariables.xml
    44#MEASURES-BY-PATIENT.txt
    5 #This script
     5#This script which is FixMeasuresSection.sh
    66
    7 
    8 for MyFile in $(ls -1 /home/nancy/CCR-Template/QRDA/PAT_*_QRDA_V1_0_0-11-04-2010_21.xml);
     7for MyFile in $(ls -1 PAT_*_QRDA_V1_0_0-11-10-2010_16.xml);
    98do
    109  StructuredBodyLine=$(grep -n "<structuredBody" "$MyFile" | awk -F: '{ print $1 }')
     
    2221  sed -in "$a","$b"d "$MyFile"
    2322  #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"
    2524  sed -in  s/\<MeasuresSection\\/\>// "$MyFile"
    2625done
    2726
    2827
    29 rm -rf /home/nancy/CCR-Template/QRDA/PAT*.xmln
     28rm -rf PAT*.xmln
    3029
    3130NewFunction()
    3231{
    33 File="PAT_$1_QRDA_V1_0_0-11-04-2010_21.xml"
     32File="PAT_$1_QRDA_V1_0_0-11-10-2010_16.xml"
    3433shift
    3534while [ "0" != "$#" ]
     
    3938echo "$1"
    4039sed -in "s/<!--@@@$1-Tpl@@@//" "$File"
    41 sed -in "s/<!--@@@$1-Item@@@//" "$File"
     40sed -in "s/<!--@@@$1-item@@@//" "$File"
    4241sed -in "s/<!--@@@$1-Act@@@//" "$File"
    4342sed -in "s/<!--@@@M-Set2011@@@//" "$File"
    4443sed -in "s/@@@@$1-Tpl@@@@-->//" "$File"
    45 sed -in "s/@@@@$1-Item@@@@-->//" "$File"
     44sed -in "s/@@@@$1-item@@@@-->//" "$File"
    4645sed -in "s/@@@@$1-Act@@@@-->//" "$File"
    4746sed -in "s/@@@@M-Set2011@@@@-->//" "$File"
    4847sed -in "s/<!--@@@M-Param2011@@@//" "$File"
    49 sed -in "s/@@@@M-Param2011@@@@//" "$File"
     48sed -in "s/@@@@M-Param2011@@@@-->//" "$File"
    5049
    5150shift
     
    6059done < "MEASURES-BY-PATIENT.txt"
    6160
    62 rm -rf /home/nancy/CCR-Template/QRDA/PAT*.xmln
     61rm -rf PAT*.xmln
Note: See TracChangeset for help on using the changeset viewer.