Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

ACS-1689-import-measures-rake #640

Open
wants to merge 100 commits into
base: r5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
f21c07f
Create information_recipient.rb
giriraj0209 Sep 28, 2018
1672b84
Create participant.rb
giriraj0209 Sep 28, 2018
03162d8
Add Information Recipient to Header
giriraj0209 Sep 28, 2018
ad0d82d
adding support for medical record assigner
giriraj0209 Sep 28, 2018
fc084b9
Update _2.16.840.1.113883.10.20.24.3.23.cat1.erb
giriraj0209 Oct 1, 2018
175251f
Update _record_target.cat1.erb
giriraj0209 Oct 1, 2018
f50a038
Update _record_target.cat1.erb
giriraj0209 Oct 1, 2018
0c10134
Update _reporting_parameters.cat1.erb
giriraj0209 Oct 1, 2018
2e3a848
Update _providers.cat1.erb
giriraj0209 Oct 1, 2018
48d7a80
Update _2.16.840.1.113883.10.20.24.3.23.cat1.erb
giriraj0209 Oct 1, 2018
d39f371
Update _2.16.840.1.113883.10.20.24.3.23.cat1.erb
giriraj0209 Oct 1, 2018
fb05f8f
Fix documentOf section CAT3 2.1
giriraj0209 Oct 2, 2018
e145e24
Fix UUID reporting_parameters_act
giriraj0209 Oct 2, 2018
9c439ef
Update aggregate_objects.rb
giriraj0209 Oct 5, 2018
aa93300
Update aggregate_objects.rb
giriraj0209 Oct 5, 2018
aea7f88
Update aggregate_objects.rb
giriraj0209 Oct 5, 2018
bffb17d
Update cat_3.rb
giriraj0209 Oct 5, 2018
4eb338f
Update cat_3.rb
giriraj0209 Oct 5, 2018
6614b35
Update aggregate_objects.rb
giriraj0209 Oct 5, 2018
96bd3dd
Update _2.16.840.1.113883.10.20.24.3.23.cat1.erb
giriraj0209 Oct 14, 2018
d3fc539
Remove Comments
giriraj0209 Oct 15, 2018
b283a56
Fix uninitialized constant error
giriraj0209 Nov 19, 2018
17bbb6b
add Participant Model
giriraj0209 Nov 20, 2018
5060a4e
Fix discharge disposition code_system null error
giriraj0209 Nov 26, 2018
a9205e0
Fix Missing Discharge disposition in CAT1 export
giriraj0209 Nov 26, 2018
c34c6f4
Update code System
giriraj0209 Nov 27, 2018
2e6f6e0
Updating to include title in laterality
giriraj0209 Nov 28, 2018
c01219f
update to add title for severity
giriraj0209 Nov 28, 2018
da058f5
Fix for CMS167 missing patients
raj209 Nov 29, 2018
a79dc1c
Update to add type attribute
giriraj0209 Dec 3, 2018
ed38524
Updated import of facilty and admission source
giriraj0209 Dec 7, 2018
9c2e9cb
Fix for Cat1 code value reading error
giriraj0209 Dec 7, 2018
400ce5e
Update Reason element for Device Ordered
giriraj0209 Dec 11, 2018
9d41d52
Fix for Unable to import TIN
Dec 13, 2018
ba8303d
Update to support EH Programs
giriraj0209 Jan 3, 2019
0ffcc61
Removed Fake NPI Generation
giriraj0209 Apr 15, 2019
c7f3b61
Updating Descriptions for supporting CCDA
raj209 Apr 24, 2019
53e56d4
Merge pull request #27 from giriraj0209/r5
Apr 25, 2019
1fea719
Updated Mapper
giriraj0209 May 20, 2019
d41912c
Default description should be updated only for CCDA
giriraj0209 May 28, 2019
6a1736a
Merge pull request #28 from giriraj0209/r5
May 29, 2019
f4ec209
Updating Medication importer
raj209 Jun 12, 2019
f2ac8bb
Merge pull request #29 from raj209/r5
Jun 13, 2019
84c9e0a
Updated Mapper
raj209 Jul 22, 2019
db6c330
Merge pull request #30 from raj209/r5
Jul 29, 2019
bd84be8
Updated code extraction from valueset
raj209 Aug 2, 2019
acbb414
Updating Value path to include templateID
raj209 Aug 2, 2019
033e683
Merge pull request #31 from raj209/r5
Aug 2, 2019
4f4ebcb
Adding elements to fix cypress CAT III warnings
raj209 Aug 5, 2019
8fd536f
update the additional template id format
raj209 Aug 5, 2019
bd2b56c
Merge pull request #32 from raj209/r5
Aug 6, 2019
9f67fb3
Handling null template id values
raj209 Aug 6, 2019
e683ea3
Merge pull request #33 from raj209/r5
Aug 7, 2019
1e056d6
Update to fix missing procedure
raj209 Aug 23, 2019
e42f5c6
Merge pull request #34 from raj209/r5
Aug 26, 2019
83e4596
Update to add author in procedure template
raj209 Aug 26, 2019
3c12527
Merge pull request #35 from raj209/r5
Aug 26, 2019
babac57
Fix for Medication order missing
raj209 Aug 27, 2019
67bea12
Merge pull request #36 from raj209/r5
Aug 27, 2019
f624c4e
Adding author element to templates
raj209 Aug 28, 2019
9c78cdc
Merge pull request #37 from raj209/r5
Aug 28, 2019
651c4fe
Updated hqmf id for missing intervention
raj209 Aug 30, 2019
f9cdfa0
Merge pull request #38 from raj209/r5
Aug 30, 2019
2bacdb6
Adding author to intervention template
raj209 Sep 3, 2019
a0222b2
Merge pull request #39 from raj209/r5
Sep 3, 2019
557aeeb
rearranging author element
raj209 Sep 3, 2019
f4f92ae
Merge pull request #40 from raj209/r5
Sep 4, 2019
a9d1aa8
Added missing sections for medication
raj209 Sep 4, 2019
9944931
Merge pull request #41 from raj209/r5
Sep 4, 2019
0f24017
Add author section to all consumable
Sep 4, 2019
0c03db2
Merge pull request #42 from petercyli/r5
Sep 4, 2019
e07ddb8
Add author element to physical exam performed
Sep 4, 2019
ebbde50
Update facility departure datetime
raj209 Sep 5, 2019
fe5e8ee
Merge pull request #43 from raj209/r5
Sep 7, 2019
d0ce3ea
backward compatibility bug fix
adrianlfns Sep 11, 2019
c1ad7e9
Added mappings to negated elements
raj209 Sep 11, 2019
50a8346
Merge pull request #44 from adrianlfns/patch-3
Sep 11, 2019
57f4fb7
Merge pull request #45 from raj209/r5
Sep 11, 2019
d05e4eb
Update facility location arrival datetime
Sep 23, 2019
2fc19ad
Modified template to support cypress 4.0.3
raj209 Sep 23, 2019
4358b63
updating nullflavor for id
raj209 Sep 23, 2019
f43b385
Merge pull request #46 from raj209/r5
Sep 23, 2019
bc55176
Update to include correct time for facility
raj209 Sep 23, 2019
0c9076a
Merge pull request #47 from raj209/r5
Sep 23, 2019
95578cf
Fixed issue resolving reference_ID
adrianlfns Sep 26, 2019
042de82
pophealth QRDA cat 1 throws and exception when repeatnumber is present
adrianlfns Oct 7, 2019
b6be973
Merge pull request #49 from adrianlfns/patch-5
Oct 7, 2019
98e5772
Merge pull request #48 from adrianlfns/patch-4
Oct 7, 2019
0b52d3a
Adding MIPS Support
raj209 Oct 8, 2019
c1bc299
Adding MIPS Support Correct dir structure
raj209 Oct 8, 2019
9b5b451
Merge pull request #50 from raj209/r5
Oct 9, 2019
88fd527
Add proper dependencies
jessigu Dec 16, 2019
35815ec
Update readme
jessigu Dec 17, 2019
63ccd3e
Provider name change snips
jessigu Dec 17, 2019
9be7ccb
Remove namespace comments for Provider and remove from required models
jessigu Dec 18, 2019
7f6252b
Comment all hds models without additional namespace
jessigu Dec 18, 2019
4dc9de9
Undo formatting in previous commit. Use master.
jessigu Dec 18, 2019
2e66226
Revert "Update readme"
jessigu Dec 18, 2019
db0c2da
Revert files to master
jessigu Dec 18, 2019
33b4616
Edit readme
jessigu Dec 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 66 additions & 64 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
GIT
remote: https://github.com/projecttacoma/simplexml_parser.git
revision: 0ea6c4cf9c5cb70c848ee7beaf30779b9ea77f15
revision: 9f83211e2407f0d933afbd1648c57f500b7527af
branch: master
specs:
simplexml_parser (1.0.0)
simplexml_parser (1.1.0)
health-data-standards (~> 4.3.4)
tilt (~> 1.4)

PATH
remote: .
specs:
health-data-standards (4.0.3)
activesupport (~> 4.2.0)
activesupport (< 6.0)
builder (~> 3.1)
erubis (~> 2.7.0)
highline (~> 1.7.0)
log4r (~> 1.1.10)
memoist (~> 0.9.1)
mongoid (~> 5.0.0)
mongoid-tree (~> 2.0.0)
nokogiri (~> 1.8.2)
protected_attributes (~> 1.0.5)
mongoid (~> 7.0.0)
mongoid-tree (~> 2.1.1)
nokogiri (>= 1.10.5)
protected_attributes_continued (~> 1.5.0)
rest-client (~> 1.8.0)
rubyzip (~> 1.2.1)
uuid (~> 2.3.7)
Expand All @@ -27,104 +29,104 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activemodel (4.2.6)
activesupport (= 4.2.6)
builder (~> 3.1)
activesupport (4.2.6)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
activemodel (5.2.4)
activesupport (= 5.2.4)
activesupport (5.2.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
ansi (1.5.0)
awesome_print (1.7.0)
bson (4.2.2)
builder (3.2.2)
bundler-audit (0.6.0)
bundler (~> 1.2)
awesome_print (1.8.0)
bson (4.7.0)
builder (3.2.4)
bundler-audit (0.6.1)
bundler (>= 1.2.0, < 3)
thor (~> 0.18)
byebug (6.0.2)
cane (2.3.0)
parallel
concurrent-ruby (1.1.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
docile (1.1.5)
domain_name (0.5.20170404)
docile (1.3.2)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
factory_girl (4.1.0)
activesupport (>= 3.0.0)
hashdiff (0.3.0)
highline (1.7.8)
hashdiff (1.0.0)
highline (1.7.10)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (0.7.0)
json (1.8.6)
i18n (1.7.0)
concurrent-ruby (~> 1.0)
json (2.3.0)
log4r (1.1.10)
log_switch (1.0.0)
macaddr (1.7.1)
systemu (~> 2.6.2)
macaddr (1.7.2)
systemu (~> 2.6.5)
memoist (0.9.3)
mime-types (2.99.3)
mini_portile2 (2.3.0)
minitest (5.9.0)
minitest-reporters (1.1.9)
mini_portile2 (2.4.0)
minitest (5.13.0)
minitest-reporters (1.4.2)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
mongo (2.4.3)
bson (>= 4.2.1, < 5.0.0)
mongoid (5.0.2)
activemodel (~> 4.0)
mongo (~> 2.1)
origin (~> 2.1)
tzinfo (>= 0.3.37)
mongoid-tree (2.0.1)
mongoid (>= 4.0, < 6.0)
mongo (2.11.2)
bson (>= 4.6.0, < 5.0.0)
mongoid (7.0.5)
activemodel (>= 5.1, < 6.1)
mongo (>= 2.5.1, < 3.0.0)
mongoid-tree (2.1.1)
mongoid (>= 4.0, < 8)
netrc (0.11.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
origin (2.3.1)
parallel (1.9.0)
protected_attributes (1.0.9)
activemodel (>= 4.0.1, < 5.0)
rake (11.2.2)
nokogiri (1.10.7)
mini_portile2 (~> 2.4.0)
parallel (1.19.1)
protected_attributes_continued (1.5.0)
activemodel (>= 5.0)
public_suffix (4.0.1)
rake (13.0.1)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
ruby-progressbar (1.8.1)
rubyzip (1.2.2)
safe_yaml (1.0.4)
simplecov (0.11.2)
docile (~> 1.1.0)
json (~> 1.8)
ruby-progressbar (1.10.1)
rubyzip (1.2.4)
safe_yaml (1.0.5)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
simplecov-html (0.10.2)
systemu (2.6.5)
tailor (1.1.5)
log_switch (>= 0.3.0)
term-ansicolor (>= 1.0.5)
text-table (>= 1.2.2)
term-ansicolor (1.3.2)
term-ansicolor (1.7.1)
tins (~> 1.0)
text-table (1.2.4)
thor (0.20.0)
thread_safe (0.3.5)
tins (1.10.2)
tzinfo (1.2.2)
thor (0.20.3)
thread_safe (0.3.6)
tilt (1.4.1)
tins (1.22.2)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.4)
uuid (2.3.8)
unf_ext (0.0.7.6)
uuid (2.3.9)
macaddr (~> 1.0)
webmock (2.1.0)
webmock (3.7.6)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
hashdiff (>= 0.4.0, < 2.0.0)
zip-zip (0.3)
rubyzip (>= 1.0.0)

Expand All @@ -147,4 +149,4 @@ DEPENDENCIES
webmock

BUNDLED WITH
1.16.1
1.17.3
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Q-Centrix has two versions of ECQM:
1. [ECQM-API](https://github.com/q-centrix/ecqm-api) - original repo; from 2015
2. [ECQM-API-V2](https://github.com/q-centrix/ecqm-api-v2) - created 2019

Both Q-Centrix ECQM repositories rely on this repo, health-data-standards, to run calculations. The main branch for each repo:
1. ECQM-API uses branch 'acs-1691-to-mongoid7'
2. ECQM-API-V2 uses branch 'r5'

This is a project to generate and consume HITSP C32, QRDA Category I, and QRDA Category III.

In addition this project also contains libraries for parsing HQMF documents and for dealing with NLM valuesets.
Expand Down
10 changes: 5 additions & 5 deletions health-data-standards.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Gem::Specification.new do |s|

s.add_dependency 'rest-client', '~>1.8.0'
s.add_dependency 'erubis', '~> 2.7.0'
s.add_dependency 'mongoid', '~> 5.0.0'
s.add_dependency 'mongoid-tree', '~> 2.0.0'
s.add_dependency 'activesupport', '~> 4.2.0'
s.add_dependency 'mongoid', '~> 7.0.0'
s.add_dependency 'mongoid-tree', '~> 2.1.1'
s.add_dependency 'activesupport', '< 6.0'

s.add_dependency 'protected_attributes', '~> 1.0.5'
s.add_dependency 'protected_attributes_continued', '~> 1.5.0'
s.add_dependency 'uuid', '~> 2.3.7'
s.add_dependency 'builder', '~> 3.1'
s.add_dependency 'nokogiri', '~> 1.8.2'
s.add_dependency 'nokogiri', '>= 1.10.5'
s.add_dependency 'highline', "~> 1.7.0"

s.add_dependency 'rubyzip', '~> 1.2.1'
Expand Down
100 changes: 51 additions & 49 deletions lib/health-data-standards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
require 'ostruct'
require 'log4r'
require 'memoist'
require 'protected_attributes'
require 'protected_attributes_continued'

# Freedom patches
require_relative 'health-data-standards/ext/symbol'
Expand All @@ -34,63 +34,65 @@
require_relative 'health-data-standards/import/provider_import_utils'
require_relative 'health-data-standards/import/hdata/metadata_importer'

require_relative 'health-data-standards/models/thing_with_codes'
require_relative 'health-data-standards/models/result_value'
require_relative 'health-data-standards/models/coded_result_value'
require_relative 'health-data-standards/models/physical_quantity_result_value'
require_relative 'health-data-standards/models/cda_identifier'
require_relative 'health-data-standards/models/reference'
require_relative 'health-data-standards/models/entry'
require_relative 'health-data-standards/models/allergy'
require_relative 'health-data-standards/models/encounter'
require_relative 'health-data-standards/models/condition'
require_relative 'health-data-standards/models/communication'
require_relative 'health-data-standards/models/immunization'
require_relative 'health-data-standards/models/fulfillment_history'
require_relative 'health-data-standards/models/order_information'
require_relative 'health-data-standards/models/medication'
require_relative 'health-data-standards/models/procedure'
require_relative 'health-data-standards/models/lab_result'
require_relative 'health-data-standards/models/family_history'
require_relative 'health-data-standards/models/functional_status'
require_relative 'health-data-standards/models/care_experience'
require_relative 'health-data-standards/models/medical_equipment'
require_relative 'health-data-standards/models/record'
require_relative 'health-data-standards/models/personable'
require_relative 'health-data-standards/models/provider'
require_relative 'health-data-standards/models/provider_performance'
require_relative 'health-data-standards/models/support'
require_relative 'health-data-standards/models/vital_sign'
require_relative 'health-data-standards/models/insurance_provider'
require_relative 'health-data-standards/models/guarantor'
require_relative 'health-data-standards/models/person'
require_relative 'health-data-standards/models/organization'
require_relative 'health-data-standards/models/address'
require_relative 'health-data-standards/models/telecom'
require_relative 'health-data-standards/models/transfer'
# require_relative 'health-data-standards/models/thing_with_codes'
# require_relative 'health-data-standards/models/result_value'
# require_relative 'health-data-standards/models/coded_result_value'
# require_relative 'health-data-standards/models/physical_quantity_result_value'
# require_relative 'health-data-standards/models/cda_identifier'
# require_relative 'health-data-standards/models/reference'
# require_relative 'health-data-standards/models/entry'
# require_relative 'health-data-standards/models/allergy'
# require_relative 'health-data-standards/models/encounter'
# require_relative 'health-data-standards/models/condition'
# require_relative 'health-data-standards/models/communication'
# require_relative 'health-data-standards/models/immunization'
# require_relative 'health-data-standards/models/fulfillment_history'
# require_relative 'health-data-standards/models/order_information'
# require_relative 'health-data-standards/models/medication'
# require_relative 'health-data-standards/models/procedure'
# require_relative 'health-data-standards/models/lab_result'
# require_relative 'health-data-standards/models/family_history'
# require_relative 'health-data-standards/models/functional_status'
# require_relative 'health-data-standards/models/care_experience'
# require_relative 'health-data-standards/models/medical_equipment'
# require_relative 'health-data-standards/models/record'
# require_relative 'health-data-standards/models/personable'
# require_relative 'health-data-standards/models/provider'
# require_relative 'health-data-standards/models/provider_performance'
# require_relative 'health-data-standards/models/support'
# require_relative 'health-data-standards/models/vital_sign'
# require_relative 'health-data-standards/models/insurance_provider'
# require_relative 'health-data-standards/models/guarantor'
# require_relative 'health-data-standards/models/person'
# require_relative 'health-data-standards/models/organization'
# require_relative 'health-data-standards/models/address'
# require_relative 'health-data-standards/models/telecom'
# require_relative 'health-data-standards/models/transfer'
require_relative 'health-data-standards/models/svs/value_set'
require_relative 'health-data-standards/models/svs/concept'
require_relative 'health-data-standards/models/admission_source'
require_relative 'health-data-standards/models/facility'
require_relative 'health-data-standards/models/component'
require_relative 'health-data-standards/models/metadata/base'
require_relative 'health-data-standards/models/metadata/author'
require_relative 'health-data-standards/models/metadata/change_info'
require_relative 'health-data-standards/models/metadata/link_info'
require_relative 'health-data-standards/models/metadata/pedigree'
require_relative 'health-data-standards/models/provider_preference'
require_relative 'health-data-standards/models/patient_preference'
require_relative 'health-data-standards/models/care_goal'
require_relative 'health-data-standards/models/encounter_principal_diagnosis'
require_relative 'health-data-standards/models/assessment'
require_relative 'health-data-standards/models/adverse_event'
# require_relative 'health-data-standards/models/admission_source'
# require_relative 'health-data-standards/models/facility'
# require_relative 'health-data-standards/models/component'
# require_relative 'health-data-standards/models/metadata/base'
# require_relative 'health-data-standards/models/metadata/author'
# require_relative 'health-data-standards/models/metadata/change_info'
# require_relative 'health-data-standards/models/metadata/link_info'
# require_relative 'health-data-standards/models/metadata/pedigree'
# require_relative 'health-data-standards/models/provider_preference'
# require_relative 'health-data-standards/models/patient_preference'
# require_relative 'health-data-standards/models/care_goal'
# require_relative 'health-data-standards/models/encounter_principal_diagnosis'
# require_relative 'health-data-standards/models/assessment'
# require_relative 'health-data-standards/models/adverse_event'

require_relative 'health-data-standards/models/qrda/id'
require_relative 'health-data-standards/models/qrda/device'
require_relative 'health-data-standards/models/qrda/person'
require_relative 'health-data-standards/models/qrda/organization'
require_relative 'health-data-standards/models/qrda/information_recipient'
require_relative 'health-data-standards/models/qrda/custodian'
require_relative 'health-data-standards/models/qrda/legal_authenticator'
require_relative 'health-data-standards/models/qrda/participant'
require_relative 'health-data-standards/models/qrda/author'
require_relative 'health-data-standards/models/qrda/header'

Expand Down
3 changes: 2 additions & 1 deletion lib/health-data-standards/export/cat_3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def export(measures, header, effective_date, start_date, end_date, qrda3_version
measures.each do |measure|
results[measure['hqmf_id']] = HealthDataStandards::CQM::QueryCache.aggregate_measure(measure['hqmf_id'], effective_date, filter, test_id)
end

@rendering_context.render(:template => 'show',
:locals => {:measures => measures, :start_date => start_date,
:end_date => end_date,
Expand All @@ -23,4 +24,4 @@ def export(measures, header, effective_date, start_date, end_date, qrda3_version
end
end
end
end
end
Loading