QppMeasureDataClient
QppMeasureDataClient provides a Ruby client for interacting with QPP Measure Data
Installation
Add this line to your application's Gemfile:
gem 'qpp_measure_data_client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install qpp_measure_data_client
Usage
Create the folder structure under your application config/qpp_measures_data/measures
1) Service Client
The service client should be created as follows:
QppMeasureDataClient::Measures::Client.new
Example
$ bin/console
2.4.1 :001 > client = QppMeasureDataClient::Measures::Client.new
=> #<QppMeasureDataClient::Measures::Client:0x007f87e8f97780 @source="./qpp_measure_data_client/config/qpp_measures_data/measures">
2.4.1 :002 > client.get_measure('2017', {measureId: 'ACI_INFBLO_1'})
=> #<QppMeasureDataClient::Measures::Measure:0x007fd93fa71fa0 @category="aci", @cehrtEligible=nil, @description="I have not knowingly and willfully take action to limit or restrict the interoperability of certified EHR technology.\nI have responded to requests to retrieve or exchange information—including requests from patients and other health care providers regardless of the requestor's affiliation or technology.\nI have implemented appropriate standards and processes to ensure that its certified EHR technology was connected in accordance with applicable law and standards, allowed patients timely access to their electronic health information; and supported exchange of electronic health information with other health care providers.", @eMeasureId=nil, @firstPerformanceYear=2017, @isBonus=false, @isHighPriority=nil, @isInverse=nil, @isRiskAdjusted=nil, @isRequired=true, @isRegistryMeasure=nil, @lastPerformanceYear=nil, @measureId="ACI_INFBLO_1", @measureType=nil, @metricType="boolean", @nationalQualityStrategyDomain=nil, @nqfEMeasureId=nil, @nqfId=nil, @objective=nil, @overallAlgorithm=nil, @primarySteward=nil, @reportingCategory="preAttestation", @subcategoryId=nil, @title="Prevention of Information Blocking Attestation", @weight=0, @measureSets=[], @strata=[], @substitutes=[], @submissionMethods=[]>
2.4.1 :003 > client.get_measures('2017', {}, )
=> [#<QppMeasureDataClient::Measures::Measure:0x007fdcc3522d60 @category="ia", @cehrtEligible=false, @description="I attest that I am a Patient Centered Medical Home (PCMH) or Comparable Specialty Practice that has achieved certification from a national program, regional or state program, private payer, or other body that administers patient-centered medical home accreditation and should receive full credit for the Improvement Activities performance category.", @eMeasureId=nil, @firstPerformanceYear=2017, @isBonus=nil, @isHighPriority=nil, @isInverse=nil, @isRiskAdjusted=nil, @isRequired=nil, @isRegistryMeasure=nil, @lastPerformanceYear=nil, @measureId="IA_PCMH", @measureType=nil, @metricType="boolean", @nationalQualityStrategyDomain=nil, @nqfEMeasureId=nil, @nqfId=nil, @objective=nil, @overallAlgorithm=nil, @primarySteward=nil, @reportingCategory=nil, @subcategoryId=nil, @title="Patient Centered Medical Home Attestation", @weight=nil, @measureSets=[], @strata=[], @substitutes=[], @submissionMethods=[]>]
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Release
Draft a new release, add changelog in details, release version in Tag version and Release Title.
After creating release, Gary will start to build and release artifact automatically. You can check build status alongside your latest commit on following URL
https://github.cerner.com/healtheintent/qpp_measure_data_client/commits/<release version>
For example, on commit history for tag 1.5.0, green tick on latest commit implies successful Gary build. To get more information, follow the dialog by hovering on the tick.
- After build is successful, Raise a PR to increase the VERSION variable in
lib/qpp_measure_data_client/version.rbfile to next version.
NOTE - Do not use a SNAPSHOT version because HealtheIntent does not maintain SNAPSHOT Ruby artifacts.
- Create a new jira version for next release by
rigm release create_jira_version -r <Next Release Version>
- Create a release review JIRA for next release
rigm release create_release_review -r <Next Release Version>
- Update the Jiras and Jira fix version to reflect the release is done.
rigm release jiras -r <released_version>
rigm release jira_version -r <released_version>
- You can confirm release on Cernerrepos Dashboard.
References - Releasing Ruby Projects
Contributing
Branch first before doing any new work, and don't forget to follow the Jira guideline