Index: /ccr2ccd-xslt/trunk/make/FixMeasuresSection.sh
===================================================================
--- /ccr2ccd-xslt/trunk/make/FixMeasuresSection.sh	(revision 1001)
+++ /ccr2ccd-xslt/trunk/make/FixMeasuresSection.sh	(revision 1001)
@@ -0,0 +1,62 @@
+#!/bin/bash/
+#The following files must be in the same directory as the QRDA files being processed:
+#MeasuresAndReportingParametersWithVariables.xml
+#MEASURES-BY-PATIENT.txt
+#This script
+
+
+for MyFile in $(ls -1 /home/nancy/CCR-Template/QRDA/PAT_*_QRDA_V1_0_0-11-04-2010_21.xml);
+do 
+  StructuredBodyLine=$(grep -n "<structuredBody" "$MyFile" | awk -F: '{ print $1 }')
+  echo "structuredBody Line number is $StructuredBodyLine"
+  a="$(($StructuredBodyLine+2))"
+  b="$(($StructuredBodyLine+5))"
+  #In or for Saxon to do its work, the file it works on must be valid, so 3 sets of component/section tags were added to allow for those that will be replaced when the Measures and reporting parameters section is replaced in the file.  They need to be deleted.  The <MeasuresSection/> tag is added in the Header/Parameter document to anchor the replacement. IT will be deleted when the section is put into the file
+  echo "a is $a start line to delete for <components>/<section> pairs"
+  echo "b is $b end line to delete"
+  echo "$MyFile"
+  #We can either put this next line in after the fact or before.  Currently it is before
+  #sed -in '/structuredBody/{ s/$/\n<MeasuresSection\/>/ }' "$MyFile"
+  #sed -in "$c"s/<MeasuresSection\/>//p "$MyFile"
+  #MS=$(cat MeasuresAndReportingParametersWithVariables.xml) 
+  sed -in "$a","$b"d "$MyFile"
+  #insert the contents of this file after the structured body line
+  sed -in '/MeasuresSection/r MeasuresAndReportingParametersWithVariables.xml' "$MyFile"
+  sed -in  s/\<MeasuresSection\\/\>// "$MyFile"
+done
+
+
+rm -rf /home/nancy/CCR-Template/QRDA/PAT*.xmln
+
+NewFunction()
+{
+File="PAT_$1_QRDA_V1_0_0-11-04-2010_21.xml"
+shift
+while [ "0" != "$#" ]
+do
+echo "Now I am in the function"
+echo "$File"
+echo "$1"
+sed -in "s/<!--@@@$1-Tpl@@@//" "$File"
+sed -in "s/<!--@@@$1-Item@@@//" "$File"
+sed -in "s/<!--@@@$1-Act@@@//" "$File"
+sed -in "s/<!--@@@M-Set2011@@@//" "$File"
+sed -in "s/@@@@$1-Tpl@@@@-->//" "$File"
+sed -in "s/@@@@$1-Item@@@@-->//" "$File"
+sed -in "s/@@@@$1-Act@@@@-->//" "$File"
+sed -in "s/@@@@M-Set2011@@@@-->//" "$File"
+sed -in "s/<!--@@@M-Param2011@@@//" "$File"
+sed -in "s/@@@@M-Param2011@@@@//" "$File"
+
+shift
+done
+}
+
+while read Line ; 
+do
+echo "$Line"
+
+NewFunction $Line
+done < "MEASURES-BY-PATIENT.txt"
+
+rm -rf /home/nancy/CCR-Template/QRDA/PAT*.xmln
Index: /ccr2ccd-xslt/trunk/make/MEASURES-BY-PATIENT.txt
===================================================================
--- /ccr2ccd-xslt/trunk/make/MEASURES-BY-PATIENT.txt	(revision 1001)
+++ /ccr2ccd-xslt/trunk/make/MEASURES-BY-PATIENT.txt	(revision 1001)
@@ -0,0 +1,195 @@
+249 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+774 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+774 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100095 M112 M124 M128 M173 M0028 M113 M110 M111
+100095 M112 M124 M128 M173 M0028 M113 M110 M111
+100146 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100146 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100338 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100338 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100499 M124 M128 M47 M48 M173 M39 M0022 M0028 M113 M110 M111
+100499 M124 M128 M47 M48 M173 M39 M0022 M0028 M113 M110 M111
+100506 M124 M128 M47 M173 M39 M0022 M0028 M113 M110 M111
+100506 M124 M128 M47 M173 M39 M0022 M0028 M113 M110 M111
+100616 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100616 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100622 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100622 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100647 M124 M128 M47 M5 M173 M0022 M0028 M113 M110 M111
+100647 M124 M128 M47 M5 M173 M0022 M0028 M113 M110 M111
+100648 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100648 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100649 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100649 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100661 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100661 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100662 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100662 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100667 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100667 M124 M128 M47 M173 M0022 M0028 M113 M110 M111
+100676 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100676 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100696 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100696 M124 M128 M47 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100839 M112 M124 M128 M47 M48 M2 M3 M7 M173 M39 M1 M0013 M0022 M0028 M113 M110 M111
+100839 M112 M124 M128 M47 M48 M2 M3 M7 M173 M39 M1 M0013 M0022 M0028 M113 M110 M111
+100845 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100845 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100846 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100846 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100847 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100847 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100848 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100848 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100849 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100849 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100850 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100850 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100851 M124 M128 M173 M0028 M113 M110 M111
+100851 M124 M128 M173 M0028 M113 M110 M111
+100852 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100852 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100853 M124 M128 M173 M0028 M113 M110 M111
+100853 M124 M128 M173 M0028 M113 M110 M111
+100855 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100855 M112 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100856 M124 M128 M173 M0028 M113 M110 M111
+100856 M124 M128 M173 M0028 M113 M110 M111
+100857 M124 M128 M173 M0028 M113 M110 M111
+100857 M124 M128 M173 M0028 M113 M110 M111
+100858 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100858 M124 M128 M2 M3 M173 M1 M0028 M113 M110 M111
+100859 M112 M124 M128 M173 M0028 M113 M110 M111
+100859 M112 M124 M128 M173 M0028 M113 M110 M111
+100860 M112 M124 M128 M173 M0028 M113 M110 M111
+100860 M112 M124 M128 M173 M0028 M113 M110 M111
+100861 M112 M124 M128 M173 M0028 M113 M110 M111
+100861 M112 M124 M128 M173 M0028 M113 M110 M111
+100862 M112 M124 M128 M173 M0028 M113 M110 M111
+100862 M112 M124 M128 M173 M0028 M113 M110 M111
+100863 M112 M124 M128 M173 M0028 M113 M110 M111
+100863 M112 M124 M128 M173 M0028 M113 M110 M111
+100864 M110 M111
+100864 M110 M111
+100865 M110 M111
+100865 M110 M111
+100866 M110 M111
+100866 M110 M111
+100867 M110 M111
+100867 M110 M111
+100868 M110 M111
+100868 M110 M111
+100869 M110 M111
+100869 M110 M111
+100870 M110 M111
+100870 M110 M111
+100871 M110 M111
+100871 M110 M111
+100872 M110 M111
+100872 M110 M111
+100873 M110 M111
+100873 M110 M111
+100874 M7 M110 M111
+100874 M7 M110 M111
+100875 M7 M110 M111
+100875 M7 M110 M111
+100876 M111
+100876 M111
+100877 M110 M111
+100877 M110 M111
+100878 M112 M124 M128 M5 M173 M0028 M113 M110 M111
+100878 M112 M124 M128 M5 M173 M0028 M113 M110 M111
+100879 M112 M124 M128 M5 M173 M0028 M113 M110 M111
+100879 M112 M124 M128 M5 M173 M0028 M113 M110 M111
+100880 M7 M110 M111
+100880 M7 M110 M111
+100881 M7 M110 M111
+100881 M7 M110 M111
+100882 M7 M110 M111
+100882 M7 M110 M111
+100883 M110 M111
+100883 M110 M111
+100884 M110 M111
+100884 M110 M111
+100885 M110 M111
+100885 M110 M111
+100886 M110 M111
+100886 M110 M111
+100887 M112 M124 M128 M47 M173 M39 M0022 M0028 M113 M110 M111
+100887 M112 M124 M128 M47 M173 M39 M0022 M0028 M113 M110 M111
+100888 M112 M124 M128 M47 M48 M173 M39 M0022 M0028 M113 M110 M111
+100888 M112 M124 M128 M47 M48 M173 M39 M0022 M0028 M113 M110 M111
+100889 M110 M111
+100889 M110 M111
+100890 M110 M111
+100890 M110 M111
+100891 M110 M111
+100891 M110 M111
+100892 M110 M111
+100892 M110 M111
+100893 M110 M111
+100893 M110 M111
+100894 M112 M124 M128 M47 M48 M173 M39 M0013 M0022 M0028 M113 M110 M111
+100894 M112 M124 M128 M47 M48 M173 M39 M0013 M0022 M0028 M113 M110 M111
+100895 M48 M0013 M0028 M110 M111
+100895 M48 M0013 M0028 M110 M111
+100896 M48 M0013 M0028 M110 M111
+100896 M48 M0013 M0028 M110 M111
+100897 M48 M0013 M0028 M110 M111
+100897 M48 M0013 M0028 M110 M111
+100898 M48 M0013 M0028 M110 M111
+100898 M48 M0013 M0028 M110 M111
+100899 M48 M5 M7 M0013 M0028 M110 M111
+100899 M48 M5 M7 M0013 M0028 M110 M111
+100900 M48 M5 M7 M0013 M0028 M110 M111
+100900 M48 M5 M7 M0013 M0028 M110 M111
+100901 M48 M5 M7 M0013 M0028 M110 M111
+100901 M48 M5 M7 M0013 M0028 M110 M111
+100902 M48 M5 M7 M0013 M0028 M110 M111
+100902 M48 M5 M7 M0013 M0028 M110 M111
+100903 M7 M110 M111
+100903 M7 M110 M111
+100904 M112 M124 M128 M173 M0028 M113 M110 M111
+100904 M112 M124 M128 M173 M0028 M113 M110 M111
+100905 M112 M124 M128 M173 M0028 M113 M110 M111
+100905 M112 M124 M128 M173 M0028 M113 M110 M111
+100906 M110 M111
+100906 M110 M111
+100907 M112 M124 M128 M173 M0028 M113 M110 M111
+100907 M112 M124 M128 M173 M0028 M113 M110 M111
+100908 M110 M111
+100908 M110 M111
+100909 M110 M111
+100909 M110 M111
+100910 M110 M111
+100910 M110 M111
+100911 M110 M111
+100911 M110 M111
+100912 M110 M111
+100912 M110 M111
+100913 M112 M124 M128 M173 M0028 M113 M110 M111
+100913 M112 M124 M128 M173 M0028 M113 M110 M111
+100914 M112 M124 M173 M0028 M113 M110 M111
+100914 M112 M124 M173 M0028 M113 M110 M111
+100915 M112 M124 M173 M0028 M113 M110 M111
+100915 M112 M124 M173 M0028 M113 M110 M111
+100917 M112 M124 M173 M0028 M113 M110 M111
+100917 M112 M124 M173 M0028 M113 M110 M111
+100923 M124 M128 M173 M0028 M113 M110 M111
+100923 M124 M128 M173 M0028 M113 M110 M111
+100929 M112 M124 M128 M47 M48 M173 M39 M0013 M0022 M0028 M113 M110 M111
+100929 M112 M124 M128 M47 M48 M173 M39 M0013 M0022 M0028 M113 M110 M111
+100930 M112 M124 M47 M48 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100930 M112 M124 M47 M48 M2 M3 M173 M1 M0022 M0028 M113 M110 M111
+100931 M124 M173 M0028 M110 M111
+100931 M124 M173 M0028 M110 M111
+100935 M124
+100935 M124
+100941 M124
+100941 M124
+100942 M124
+100942 M124
+100943 M124
+100943 M124
+100955 M124 M173 M0028 M113 M110 M111
+100955 M124 M173 M0028 M113 M110 M111
Index: /ccr2ccd-xslt/trunk/make/MeasuresAndReportingParametersWithVariables.xml
===================================================================
--- /ccr2ccd-xslt/trunk/make/MeasuresAndReportingParametersWithVariables.xml	(revision 1001)
+++ /ccr2ccd-xslt/trunk/make/MeasuresAndReportingParametersWithVariables.xml	(revision 1001)
@@ -0,0 +1,280 @@
+<!--  ********************************************************
+       Measure Set Section
+      ********************************************************
+     -->
+      <component>
+        <section>
+        <!-- WVP QRDA Category I measure-specific template ID for 2010 #1. -->
+        <!--WP Next 3 lines do not change during the reporting period, for the measures section-->
+        <!--@@@M-Set2011@@@<templateId root="2.16.840.1.113883.3.249.11.50" />
+        <code code="55185-3" codeSystem="2.16.840.1.113883.6.1" />
+        <title>Measure set: CMS EHR Measure Set</title>
+         <text>2011 Measures Set Measures</text>@@@@M-Set2011@@@@-->
+          <!--
+                ***************************************************
+                Measure Section
+                ***************************************************
+                -->
+           <component>
+            <section>
+              <!--template ID for each measure being reported-->
+             <!--@@@M1-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.2" />@@@@M1-Tpl@@@@-->
+              <!--@@@M2-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.3" />@@@@M2-Tpl@@@@-->
+              <!--@@@M3-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.4" />@@@@M3-Tpl@@@@-->
+              <!--@@@M5-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.5" />@@@@M5-Tpl@@@@-->
+              <!--@@@M7-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.6" />@@@@M7-Tpl@@@@-->
+              <!--@@@M110-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.7" />@@@@M110-Tpl@@@@-->
+              <!--@@@M111-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.8" />@@@@M111-Tpl@@@@-->
+              <!--@@@M112-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.9" />@@@@M112-Tpl@@@@-->
+              <!--@@@M113-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.10" />@@@@M113-Tpl@@@@-->
+              <!--@@@M124-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.11" />@@@@M124-Tpl@@@@-->
+              <!--@@@eRx-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.15" />@@@@MeRx-Tpl@@@@-->
+             <!--New for 2011--> 
+              <!--@@@M39-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.51" />@@@@M39-Tpl@@@@-->
+              <!--@@@M47-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.52" />@@@@M47-Tpl@@@@-->
+              <!--@@@M48-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.53" />@@@@M48-Tpl@@@@-->
+              <!--@@@M128-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.54" />@@@@M128-Tpl@@@@-->
+              <!--@@@M173-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.55" />@@@@M173-Tpl@@@@-->
+              <!--@@@M0013-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.56" />@@@@M0013-Tpl@@@@-->
+              <!--@@@M0022-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.57" />@@@@M0022-Tpl@@@@-->
+              <!--@@@M0024-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.58" />@@@@M0024-Tpl@@@@-->
+              <!--@@@M0028-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.59" />@@@@M0028-Tpl@@@@-->
+              <!--@@@M0038-Tpl@@@<templateId root="2.16.840.1.113883.3.249.11.60" />@@@@M0038-Tpl@@@@-->
+              <code code="55186-1" codeSystem="2.16.840.1.113883.6.1" />
+        
+              <title>Measure Section</title>
+              <!--Here is where the HTML begins for the above and it is optional-->
+              <text>
+                <list>
+                  <!--@@@M1-Item@@@<Item>CMS Measure #1: Diabetes Mellitus: Hemoglobin A1c Poor Control in Diabetes Mellitus</Item>@@@@M1-Item@@@@-->
+                  <!--@@@M2-Item@@@<Item>CMS Measure #2: Diabetes Mellitus: Low Density Lipoprotein (LDL-C) Control in Diabetes Mellitus</Item>@@@@M2-Item@@@@-->
+                  <!--@@@M3-Item@@@<Item>CMS Measure #3: Diabetes Mellitus: High Blood Pressure Control in Diabetes Mellitus</Item>@@@@M3-Item@@@@-->
+                  <!--@@@M5-Item@@@<Item>CMS Measure #5: Heart Failure: Angiotensin-Converting Enzyme (ACE) Inhibitor or Angiotensin Receptor Blocker (ARB) Therapy for Left Ventricular Systolic Dysfunction (LVSD)</Item>@@@@M-5Item@@@@-->
+                  <!--@@@M7-Item@@@<Item>CMS Measure #7: Coronary Artery Disease (CAD): Beta-Blocker Therapy for CAD Patients with Prior Myocardial Infarction (MI)</Item>@@@@M7-Item@@@@-->
+                  <!--@@@M110-Item@@@<Item>CMS Measure #110: Preventive Care and Screening: Influenza Immunization for Patients >= 50 Years</Item>@@@@M110-Item@@@@-->
+                  <!--@@@M111-Item@@@<Item>CMS Measure #111: Preventive Care and Screening: Pneumonia Vaccination for Patients 65 Years and Older</Item>@@@@M111-Item@@@@-->
+                  <!--@@@M112-Item@@@<Item>CMS Measure #112: Preventive Care and Screening: Screening Mammography</Item>@@@@M-112Item@@@@-->
+                  <!--@@@M113-Item@@@<Item>CMS Measure #113: Preventive Care and Screening: Colorectal Cancer Screening</Item>@@@@M-113Item@@@@-->
+                  <!--@@@M124-Item@@@<Item>CMS Measure #124: Health Information Technology (HIT): Adoption/Use of Electronic Health Records (EHR)</Item>@@@@M124-Item@@@@-->
+                  <!--@@@MeRx-Item@@@<Item>CMS Measure eRx:Adoption/Use of Medication Electronic Prescribing Measure</Item>@@@@MeRx-Item@@@@-->
+                  <!--added 2011 measures-->
+                  <!--@@@M39-Item@@@<Item>CMS Measure #39: Screening or Therapy for Osteoporosis for Women Aged 65 Years and Older</Item>@@@@M-Item@@@@39-->
+                  <!--@@@M47-Item@@@<Item>CMS Measure #47: Advance Care Plan </Item>@@@@M47-Item@@@@-->
+                  <!--@@@M48-Item@@@<Item>CMS Measure #48: Urinary Incontinence: Assessment of Presence or Absence of Urinary Incontinence in Women Aged 65 Years and Older</Item>@@@@M48-Item@@@@-->
+                  <!--@@@M128-Item@@@<Item>CMS Measure #128: Preventive Care and Screening: Body Mass Index (BMI) Screening and Follow-Up </Item>@@@@M128-Item@@@@-->
+		  <!--@@@M173-Item@@@<Item>CMS Measure #173: Preventive Care and Screening: Unhealthy Alcohol Use - Screening</Item>@@@@M173-Item@@@@-->
+		  <!--@@@M0013-Item@@@<Item>CMS Measure #0013: Hypertension (HTN): Blood Pressure Measurement - QRDA Cat I template </Item>@@@@M0013-Item@@@@-->
+		  <!--@@@M0022-Item@@@<Item>CMS Measure #0022: Drugs to be avoided in the Elderly </Item>@@@@M0022-Item@@@@-->
+		  <!--@@@M0024-Item@@@<Item>CMS Measure #0024: Body Mass Index (BMI) 2 through 18 years of age </Item>@@@@M0024-Item@@@@-->
+		  <!--@@@M0028-Item@@@<Item>CMS Measure #0028: Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention</Item>@@@@M0028-Item@@@@-->
+		  <!--@@@M0038-Item@@@<Item>CMS Measure #0038: Childhood Immunization Status - QRDA Cat I template</Item>@@@@M0038-Item@@@@-->
+                </list>
+              </text>
+              <!--Begin listing of acts-->
+             <!--@@@M1-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-1" codeSystem="2.16.840.1.113883.3.249.12" displayName="Hemoglobin A1c Poor Control in Diabetes Mellitus"/>
+                  <text>Percentage of patients 18 through 75 years with diabetes mellitus who had most recent hemoglobin A1C greater than 9.0%</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M1-Act@@@@-->
+              <!--@@@M2-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-2" codeSystem="2.16.840.1.113883.3.249.12" displayName="Low Density Lipoprotein (LDL-C) Control in Diabetes Mellitus"/>
+                  <text>Percentage of patients 18 through 75 years with diabetes mellitus who had most recent LDL-C level in control (less than 100 mg./dL)</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M2-Act@@@@-->
+              <!--@@@M3-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                
+                  <code code="PQRI-3" codeSystem="2.16.840.1.113883.3.249.12" displayName="Hemoglobin A1c Poor Control in Diabetes Mellitus"/>
+                  <text>Percentage of patients 18 through 75 years with diabetes mellitus who had most recent blood pressure in control (less than 140/80 mmHg)</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M3-Act@@@@-->
+              <!--@@@M5-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-5" codeSystem="2.16.840.1.113883.3.249.12" displayName="Heart Failure: Angiotensin-Converting Enzyme (ACE) Inhibitor or Angiotensin Receptor Blocker (ARB) Therapy for Left Ventricular Systolic Dysfunction (LVSD)"/>
+{
+                  <text>Percentage of patients 18 years and older with a diagnosis of heart frilure and LVSD who were prescribed ACE inhibitor or ARB therapy</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M5-Act@@@@-->
+              <!--@@@M7-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-7" codeSystem="2.16.840.1.113883.3.249.12" displayName="Beta-Blocker Therapy for CAD Patients with Prior Myocardial Infarction"/>
+                  <text>Percentage of patients 18 aged 18 years and older wit a diagnosis of CAD and prior MI who were prescribed beta-blocker therapy</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M7-Act@@@@-->
+              <!--@@@M110-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-110" codeSystem="2.16.840.1.113883.3.249.12" displayName="Influenza Immunization for Patients >= 50 Years"/>
+                  <text>Percentage of patients aged 50 years and older who received an influenza immunization during the flu season (September through February)</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M110-Act@@@@-->
+              <!--@@@M111-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                 
+                  <code code="PQRI-111" codeSystem="2.16.840.1.113883.3.249.12" displayName="Pneumonia Vaccination for Patients 65 Years and Older"/>
+                  <text>Percentage of patients afed 65 years and older who have ever received a pneumoccal vaccine</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M111-Act@@@@-->
+              <!--@@@M112-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                
+                  <code code="PQRI-112" codeSystem="2.16.840.1.113883.3.249.12" displayName="Screening Mammography"/>
+                  <text>Percentage of womaen aged 40 through 69 years who had a mammogram to screen for breast cancer within 24 months</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M112-Act@@@@-->
+              <!--@@@M113-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                 
+                  <code code="PQRI-113" codeSystem="2.16.840.1.113883.3.249.12" displayName="Colorectal Cancer Screening"/>
+                  <text>Percentage of patients aged 50 through 80 who received the appropriate colorectal cancer screening</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M113-Act@@@@-->
+              <!--@@@M124-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-124" codeSystem="2.16.840.1.113883.3.249.12" displayName="Adoption/Use of Electronic Health Records (EHR)"/>
+                  <text>Documents whether provider has adopted and is using health information technology. To qualify, the provider must havea adopted and be using a certified/qualified electronic health record (EHR)</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M124-Act@@@@-->
+              <!--@@@MeRx-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="eRx" codeSystem="2.16.840.1.113883.3.249.12" displayName="Adoption/Use of Medication Electronic Prescribing Measure"/>
+                  <text>Documents whether provider has adopted and is using ePrescribing</text>
+                  <statusCode code="completed"/>
+                </act>
+                </entry>@@@@MeRx-Act@@@@-->
+                
+ <!--******************************************
+               Begin 2011 measures
+ ********************************************-->
+                <!--@@M-39Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-39" codeSystem="2.16.840.1.113883.3.249.12" displayName="Screening or Therapy for Osteoporosis for Women Aged 65 Years and Older"/>
+                  <text>Percentage of patients who had a DXA measurement ordered or performed at least once since age 60 or pharmacologic therapy prescribed within 12 months before the end of the measurement period</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M39-Act@@@@-->
+              <!--@@M47-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-47" codeSystem="2.16.840.1.113883.3.249.12" displayName="Advance Care Plan"/>
+                  <text>Percentage of patients age 65 and older who have an advanced care plan or surrogate decision maker documented in the medical record or documented in the medical record that an advance care plan was discussed but the patient did not wish or was not able to name a surrogate decision maker or provide an advance care plan.</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M47-Act@@@@-->
+              <!--@@@M48-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                
+                  <code code="PQRI-48" codeSystem="2.16.840.1.113883.3.249.12" displayName="Urinary Incontinence: Assessment of Presence or Absence of Urinary Incontinence in Women Aged 65 Years and Older"/>
+                  <text>Percentage of patients equal to or older than 65 years of age at the beginning of the measurement perion who were assesed for the presence or absence of urinary incontinence within 12 months.</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M48-Act@@@@-->
+              <!--@@@M128-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-128" codeSystem="2.16.840.1.113883.3.249.12" displayName="Preventive Care and Screening: Body Mass Index (BMI) Screening and Follow-Up"/>
+                  <text>Percentage of patients aged 18 yesrs and older with a calculate BMI in the past 6 months or during the current visit documented in the medical record and if the most recent BMI is ourtide parameters, a follow-up plan is documented. Ages 65 and older BMI equal to or greater than 30 or less than 22 and ages 18-64, BMI greater than or equal to 25 or less than 18.5</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M128-Act@@@@-->
+              <!--@@@M173-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-173" codeSystem="2.16.840.1.113883.3.249.12" displayName="Preventive Care and Screening: Unhealthy Alcohol Use - Screening"/>
+                  <text>Percentage of patients aged 18 years and older who were screened for unhealthy alcohol use using a systematic method within 24 months</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M173-Act@@@@-->
+              <!--@@@M0013-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-13" codeSystem="2.16.840.1.113883.3.249.12" displayName="Hypertension (HTN): Blood Pressure Measurement"/>
+                  <text>Percentage of patients aged 18 years and older with a diagnosis of hypertension in the beginning of the measurement period with a blood pressure recoreded.</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M0013-Act@@@@-->
+              <!--@@@M0022-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                 
+                  <code code="PQRI-22" codeSystem="2.16.840.1.113883.3.249.12" displayName="Drugs to be avoided in the elderly"/>
+                  <text>Percentage of patients aged 65 years and older who received at least one drug to be acoided in the elderly and/or two different drugs to be avoided in the elderly in the measurement period</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M0022-Act@@@@-->
+              <!--@@@M0024-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                
+                  <code code="PQRI-24" codeSystem="2.16.840.1.113883.3.249.12" displayName="BMI age 2-18 years of age"/>
+                  <text>Percentage of children 2-18 years of age at the beginning of the measurement period whose weight is classified based on BMI percentile for age and gender.</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M0024-Act@@@@-->
+              <!--@@@M0028-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                 
+                  <code code="PQRI-28" codeSystem="2.16.840.1.113883.3.249.12" displayName="Preventive care and Screening: Tobacco Use: Screening and Cessation Intervention"/>
+                  <text>Percentage of patients aged 18 years of older who were screened about tobacco use at least once during the two year measurement preoid AND who received cessation counseling if identified as a tobacco user.</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M0028-Act@@@@-->
+              <!--@@@0038-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="PQRI-38" codeSystem="2.16.840.1.113883.3.249.12" displayName="Childhood immumnization status"/>
+                  <text>Percentage of children who turn two years of age during the measurement period who have had four DTaP/DT, three IPV, one MMR and three H influenza type B, three hepatitis B, one chicken pox vaccine (VZV) and four pneumococcal conjugate vaccines by their second birthday</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@M0038-Act@@@@-->
+              <!--@@@MeRx-Act@@@<entry typeCode="DRIV">
+                <act classCode="ACT" moodCode="DEF">
+                  
+                  <code code="" codeSystem="2.16.840.1.113883.3.249.12" displayName="Adoption/Use of Medication Electronic Prescribing"/>
+                  <text>Documents whether provider has adopted and is using ePrescribing</text>
+                  <statusCode code="completed"/>
+                </act>
+              </entry>@@@@MeRx-Act@@@@-->
+                  <!--
+                  *******************************
+                  Reporting Parameters Section
+                  *****************************
+                   -->
+              <!--@@@M-Param2011@@@<component>
+                  <section>
+                      <code code="55187-9" codeSystem="2.16.840.1.113883.6.1"/>
+                      <title>Reporting Parameters</title>
+                      <text>
+                        <list>
+                          <item>Reporting Period Jan 1, 2010 to Dec 31, 2010</item>
+                        </list>
+                      </text>
+                      <entry>
+                        <act classCode="ACT" moodCode="EVN">
+                        <code code="252116004" codeSystem="2.16.840.1.113883.6.96" displayName="Observation Parameters"/>
+                        <effectiveTime>
+                          <low value="20100101"/>
+                          <high value="20101231"/>
+                        </effectiveTime>
+                      </act>
+                    </entry>
+                  </section>
+                </component>@@@@M-Param2011@@@@-->
+                
Index: /ccr2ccd-xslt/trunk/make/ccd-problems.xsl
===================================================================
--- /ccr2ccd-xslt/trunk/make/ccd-problems.xsl	(revision 1000)
+++ /ccr2ccd-xslt/trunk/make/ccd-problems.xsl	(revision 1001)
@@ -80,10 +80,10 @@
                                                         <xsl:with-param name="suffix"></xsl:with-param>
                                                     </xsl:call-template>
-
-                                                    <code xsi:type="CE"code="55607006" displayName="Problem" codeSystem="2.16.840.1.113883.6.96" 
-codeSystemName="SNOMED-CT"/>
+                                                   <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
+<!--SEE IF THIS FIXES OUR PROBLEM-->
+                                               <!-- <code xsi:type="CE" code="55607006" displayName="Problem" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED-CT"/>-->
                                                     <statusCode code="completed"/>
-                                                  < !-- <text>
-                                                        <reference>
+                                                  <!-- <text>
+                                                       <reference>
                                                             <xsl:attribute name="value">
                                                                 <xsl:text>#</xsl:text>
