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 (patients, labs, encounters, prescriptions, transitions-in and transitions-out), the denominator criteria and the numerator criteria. Note this information can be found hard-coded at library/classes/rulesets/Amc/reports .

1. Maintain an up-to-date problem list of current and active diagnoses. 170.302(c)
  • Category Counted: patients
  • Denominator criteria: encounter
  • Numerator criteria: at least one medical problem or explicitly 'no medical problems' entered for patient
2. Maintain active medication list. 170.302(d)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
3. Maintain active medication allergy list. 170.302(e)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
4. Record and chart changes in vital signs. 170.302(f)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
5. Record smoking status for patients 13 years old or older. 170.302(g)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
6.Incorporate clinical lab-test results into certified EHR technology as structured data. 170.302(h)
  • Category Counted: labs
  • Denominator criteria:
  • Numerator criteria:
7. 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)
  • Category Counted: transitions-in
  • Denominator criteria:
  • Numerator criteria:
8. Use certified EHR technology to identify patient-specific education resources and provide those resources to the patient if appropriate. 170.302(m)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
9. 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)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
10. Generate and transmit permissible prescriptions electronically. 170.304(b)
  • Category Counted: prescriptions
  • Denominator criteria:
  • Numerator criteria:
11. Record demographics. 170.304(c)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
12. Send reminders to patients per patient preference for preventive/follow up care. 170.304(d)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
13. 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)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
14. 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)
  • Category Counted: patients
  • Denominator criteria:
  • Numerator criteria:
15. Provide clinical summaries for patients for each office visit. 170.304(h)
  • Category Counted: encounters
  • Denominator criteria:
  • Numerator criteria:
16. 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)
  • Category Counted: transitions-out
  • Denominator criteria:
  • Numerator criteria: