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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f65d42857daaf39d4b06c2bb64f74b8a6fba484
4
- data.tar.gz: 30924510bdd171e2d05e3a4aa39d694ead0902a3
3
+ metadata.gz: b5c43f964fb7fc23a4f9613638d6ae8a225b755d
4
+ data.tar.gz: 7c5288aadebdf4807fd69b8330f610f1766d5853
5
5
  SHA512:
6
- metadata.gz: e3e8b8c1ec723ee9f431d64cda1f079380cfbfcfa83c8be2ea2a53258e69a1a5a187ee71f8b8889b86b5ed0f5dcf80752749a44fe84ed6963b5ddb475da4f810
7
- data.tar.gz: de026edac08a950615c1eaf20273589e3e429fa0ef1971e53b15066edcc2c6e4a190e49b267bf71273e7f4dec677362e309851c7d60590d5b6759960ef841f47
6
+ metadata.gz: 9bd63e2f330ace625c7ba728dc0e795b45c3508cbc2fadd489f0e4022c2e65f65cd3bfd8cb563784ea5cc0591c313d02f4d08beeb3aa430badf9e1219b5a5356
7
+ data.tar.gz: abca5da21899dbb8ca5de7defeed70750595b564597b66700214788cbaaf342011114e493e5a6a7b151555f96ae2f704cbd952144452fc8ed9eca06f53988efa
@@ -3,7 +3,8 @@ language: ruby
3
3
  rvm:
4
4
  - 2.4.1
5
5
  - 2.3.4
6
- before_install: gem install bundler
6
+ before_install:
7
+ - gem install bundler -v "< 2.0"
7
8
  script:
8
9
  - bundle exec rake
9
10
  - bundle exec rubocop
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', github: 'projecttacoma/cql_qdm_patientapi', branch: 'master'
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: 'master'
8
+ # gem 'cqm-models', github: 'projecttacoma/cqm-models', branch: 'bonnie-v3.2'
8
9
 
9
10
  gemspec
@@ -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.3'
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.2'
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.2'
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'
@@ -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
- DateTime.new(results['year'], results['month'], results['day'], results['hour'], results['minute'], results['second'], results['millisecond']).to_s
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.3
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: 2018-11-08 00:00:00.000000000 Z
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.2
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.2
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.2
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.2
110
+ version: 4.3.5
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: momentjs-rails
113
113
  requirement: !ruby/object:Gem::Requirement