Description AMC

From OpenEMR Project Wiki

Patient(s) selection

The first thing that is done is the selection of patients if a physician is chosen for the calculations.

  • Pertinent code from the library/clinical_rules.php file (test_rules_clinic() function)
  // Collect all patient ids
  $patientData = array();
  if (!empty($patient_id)) {
    // only look at the selected patient
    $patientData[0]['pid'] = $patient_id;
  }
  else {
    if (empty($provider)) {
      // Look at entire practice
      $rez = sqlStatement("SELECT `pid` FROM `patient_data`");
      for($iter=0; $row=sqlFetchArray($rez); $iter++) {
       $patientData[$iter]=$row;
      } 
    }
    else {
      // Look at one provider
      $rez = sqlStatement("SELECT `pid` FROM `patient_data` " .
        "WHERE providerID=?", array($provider) );
      for($iter=0; $row=sqlFetchArray($rez); $iter++) {
       $patientData[$iter]=$row;
      }
    }
  }
  • Note the above algorithm may not be correct, and may need to instead look for existing encounters (form_encounter mysql table; both the provider_id and supervisor_id columns; note date possibly more accurately mapped to mysql forms table) within the selected dates.

AMC Measures

The vital parts of each measure are the category counted (patient, encounter, medication, etc), the denominator criteria and the numerator criteria.

l. Maintain an up-to-date problem list of current and active diagnoses. 170.302(c)
  • Category Counted:
  • Denominator criteria:
  • Numerator criteria:
2. Maintain active medication list. 170.302(d)
  • med_list_amc()
n. Maintain active medication allergy list. 170.302(e)
  • med_allergy_list_amc()
o. Record and chart changes in vital signs. 170.302(f)
  • record_vitals_amc()
p. Record smoking status for patients 13 years old or older. 170.302(g)
  • record_smoke_amc()
q.Incorporate clinical lab-test results into certified EHR technology as structured data. 170.302(h)
  • lab_result_amc()
r. The EP, eligible hospital or CAH who receives a patient from another setting of care or provider of care or believes an encounter is relevant should perform medication reconciliation. 170.302(j)
  • med_reconc_amc()
s. Use certified EHR technology to identify patient-specific education resources and provide those resources to the patient if appropriate. 170.302(m)
  • patient_edu_amc()
t. Use CPOE for medication orders directly entered by any licensed healthcare professional who can enter orders into the medical record per state, local and professional guidelines. 170.304(a)
  • cpoe_med_amc()
u. Generate and transmit permissible prescriptions electronically. 170.304(b)
  • e_prescribe_amc()
v. Record demographics. 170.304(c)
  • record_dem_amc()
w. Send reminders to patients per patient preference for preventive/follow up care. 170.304(d)
  • send_reminder_amc()
x. Provide patients with an electronic copy of their health information (including diagnostic test results, problem list, medication lists, medication allergies), upon request. 170.304(f)
  • provide_rec_pat_amc()
y. Provide patients with timely electronic access to their health information (including lab results, problem list, medication lists, medication allergies) within four business days of the information being available to the EP. 170.304(g)
  • timely_access_amc()
z. Provide clinical summaries for patients for each office visit. 170.304(h)
  • provide_sum_pat_amc()
aa. The EP, eligible hospital or CAH who transitions their patient to another setting of care or provider of care or refers their patient to another provider of care should provide summary of care record for each transition of care or referral. 170.304(i)
  • send_sum_amc()