test-patient-generator 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Gemfile +2 -2
  2. data/lib/tpg/ext/data_criteria.rb +4 -0
  3. metadata +2 -2
data/Gemfile CHANGED
@@ -1,9 +1,9 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'hqmf-parser', '~> 1.0.4'
3
+ gem 'hqmf-parser', '~> 1.0.6'
4
4
  gem 'hquery-patient-api', '~> 0.3.0'
5
5
  gem 'hqmf2js', '~> 1.0.1'
6
- gem 'health-data-standards', '~> 2.1.3'
6
+ gem 'health-data-standards', '~> 2.1.4'
7
7
 
8
8
  gem 'rake'
9
9
  gem 'pry'
@@ -80,7 +80,11 @@ module HQMF
80
80
  else
81
81
  # Otherwise this is a regular coded entry. Start by choosing the correct type and assigning basic metadata.
82
82
  entry_type = Generator.classify_entry(patient_api_function)
83
+
84
+ # HACK -- this is here to deal with types that have not been mapped yet and blow things up
85
+ return patient if entry_type.nil? || entry_type == ""
83
86
  entry = entry_type.classify.constantize.new
87
+
84
88
  entry.description = "#{description} (Code List: #{code_list_id})"
85
89
  entry.start_time = time.low.to_seconds if time.low
86
90
  entry.end_time = time.high.to_seconds if time.high
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-patient-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-14 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A utility to generate patients for unit testing clinical quality measure
15
15
  logic. The instructions for generation are guided by HQMF documents and exported