cqm-converter 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +3 -2
- data/cqm-converter.gemspec +3 -3
- data/lib/cqm/converter/utils.rb +2 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5c43f964fb7fc23a4f9613638d6ae8a225b755d
|
4
|
+
data.tar.gz: 7c5288aadebdf4807fd69b8330f610f1766d5853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd63e2f330ace625c7ba728dc0e795b45c3508cbc2fadd489f0e4022c2e65f65cd3bfd8cb563784ea5cc0591c313d02f4d08beeb3aa430badf9e1219b5a5356
|
7
|
+
data.tar.gz: abca5da21899dbb8ca5de7defeed70750595b564597b66700214788cbaaf342011114e493e5a6a7b151555f96ae2f704cbd952144452fc8ed9eca06f53988efa
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -2,8 +2,9 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
4
|
|
5
|
-
gem 'cql_qdm_patientapi',
|
5
|
+
gem 'cql_qdm_patientapi', '~> 1.3.2'
|
6
|
+
# gem 'cql_qdm_patientapi', github: 'projecttacoma/cql_qdm_patientapi', branch: 'bonnie-patch'
|
6
7
|
|
7
|
-
# gem 'cqm-models', github: 'projecttacoma/cqm-models', branch: '
|
8
|
+
# gem 'cqm-models', github: 'projecttacoma/cqm-models', branch: 'bonnie-v3.2'
|
8
9
|
|
9
10
|
gemspec
|
data/cqm-converter.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'cqm-converter'
|
6
|
-
spec.version = '1.0.
|
6
|
+
spec.version = '1.0.4'
|
7
7
|
spec.authors = ['aholmes@mitre.org']
|
8
8
|
spec.email = ['aholmes@mitre.org']
|
9
9
|
|
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency 'bundler'
|
23
23
|
spec.add_development_dependency 'byebug'
|
24
24
|
spec.add_runtime_dependency 'coffee-script'
|
25
|
-
spec.add_runtime_dependency 'cqm-models', '>= 1.0.
|
25
|
+
spec.add_runtime_dependency 'cqm-models', '>= 1.0.3'
|
26
26
|
spec.add_runtime_dependency 'execjs'
|
27
|
-
spec.add_runtime_dependency 'health-data-standards', '>= 4.3.
|
27
|
+
spec.add_runtime_dependency 'health-data-standards', '>= 4.3.5'
|
28
28
|
spec.add_runtime_dependency 'momentjs-rails'
|
29
29
|
spec.add_development_dependency 'rake'
|
30
30
|
spec.add_development_dependency 'rspec'
|
data/lib/cqm/converter/utils.rb
CHANGED
@@ -141,7 +141,8 @@ module CQM::Converter
|
|
141
141
|
# Adjust improper date times from the cql_qdm_patientapi.
|
142
142
|
def self.date_time_adjuster(results)
|
143
143
|
if results.is_a?(Hash) && results.key?('year') && results.key?('minute')
|
144
|
-
|
144
|
+
seconds = results['second'] + (results['millisecond'] / 1000.0)
|
145
|
+
DateTime.new(results['year'], results['month'], results['day'], results['hour'], results['minute'], seconds, results['timezoneOffset'].to_s).strftime('%Y-%m-%d %H:%M:%S.%N%Z')
|
145
146
|
elsif results.is_a?(Hash)
|
146
147
|
results.each do |key, value|
|
147
148
|
results[key] = date_time_adjuster(value)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cqm-converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aholmes@mitre.org
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.0.
|
75
|
+
version: 1.0.3
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.0.
|
82
|
+
version: 1.0.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: execjs
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 4.3.
|
103
|
+
version: 4.3.5
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 4.3.
|
110
|
+
version: 4.3.5
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: momentjs-rails
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|