fhir_dstu2_models 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14142a10058eb5b187470d5c92e75a519ea94aaf
4
- data.tar.gz: 8f32ef3a354bb764c43b4f2fda3080d048f9a001
3
+ metadata.gz: 17f75c40fac3b9924eccf4b9078838e0911a7265
4
+ data.tar.gz: 9592de33a306dbb50e9d3bc7dde374641f339ddb
5
5
  SHA512:
6
- metadata.gz: 59505f94d34616b04393850c2abb2e620a9d7b655fd63f5cf46b37995c849866fd48d7d08a1215fae4b08eba29d733aab9e906b2ec2a9cbdf7b253cea096235d
7
- data.tar.gz: bebf5726ef066a7ea8ec2c81ac12a49c4b458c67e43ec0715227af9a014edb079a071e48a6cddc75bd33d43ebe42c4103b38e0f226519b7d143ce04bb439c543
6
+ metadata.gz: 4c24bb9a06e8a599b9d9890cffe14fe2d26a49f5cb5a310e45c46a5fcc79501e6b8501262633a20beaca0993e3cf7fc3e64e61b2740bc65f3f4dc4ffcbd31326
7
+ data.tar.gz: 1ef197009d8a23edd3297e382f698da57403c8184e2e33ba2410ac0571d8f1a23524578e48600be5188213cd6d4f76de801857730f95d34408b43055412f6a36
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fhir_dstu2_models (1.0.2)
4
+ fhir_dstu2_models (1.0.3)
5
5
  bcp47 (>= 0.3)
6
6
  date_time_precision (>= 0.8)
7
7
  mime-types (>= 1.16, < 3)
@@ -38,7 +38,7 @@ GEM
38
38
  guard-test (2.0.8)
39
39
  guard-compat (~> 1.2)
40
40
  test-unit (~> 3.0)
41
- i18n (0.8.1)
41
+ i18n (0.8.6)
42
42
  json (2.1.0)
43
43
  listen (3.1.5)
44
44
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -125,7 +125,7 @@ DEPENDENCIES
125
125
  test-unit
126
126
 
127
127
  RUBY VERSION
128
- ruby 2.3.0p0
128
+ ruby 2.4.1p111
129
129
 
130
130
  BUNDLED WITH
131
- 1.14.6
131
+ 1.15.1
@@ -244,7 +244,7 @@ module FHIR
244
244
  end
245
245
  else
246
246
  the_codes.each do |code|
247
- has_valid_code = true if check_binding(meta['binding']['uri'], code)
247
+ has_valid_code = true if check_binding_uri(meta['binding']['uri'], code)
248
248
  break if has_valid_code
249
249
  end
250
250
  end
@@ -286,7 +286,7 @@ module FHIR
286
286
  end
287
287
  deprecate :is_primitive?, :primitive?
288
288
 
289
- def check_binding(uri, value)
289
+ def check_binding_uri(uri, value)
290
290
  valid = false
291
291
  if %w[http://hl7.org/fhir/ValueSet/content-type http://www.rfc-editor.org/bcp/bcp13.txt].include?(uri)
292
292
  matches = MIME::Types[value]
@@ -297,12 +297,12 @@ module FHIR
297
297
  has_region = !(value =~ /-/).nil?
298
298
  valid = !BCP47::Language.identify(value.downcase).nil? && (!has_region || !BCP47::Region.identify(value.upcase).nil?)
299
299
  else
300
- FHIR::DSTU2.logger.warn "Unable to check_binding on unknown ValueSet: #{uri}"
300
+ FHIR::DSTU2.logger.warn "Unable to check_binding_uri on unknown ValueSet: #{uri}"
301
301
  end
302
302
  valid
303
303
  end
304
304
 
305
- private :validate_reference_type, :check_binding, :validate_field
305
+ private :validate_reference_type, :check_binding_uri, :validate_field
306
306
  end
307
307
  end
308
308
  end
@@ -179,7 +179,7 @@ module FHIR
179
179
  matching_type += 1
180
180
  if data_type_found == 'code' # then check the binding
181
181
  unless element.binding.nil?
182
- matching_type += check_binding(element, value)
182
+ matching_type += check_binding_element(element, value)
183
183
  end
184
184
  elsif data_type_found == 'CodeableConcept' && codeable_concept_pattern
185
185
  vcc = FHIR::DSTU2::CodeableConcept.new(value)
@@ -306,7 +306,7 @@ module FHIR
306
306
  end
307
307
  deprecate :is_data_type?, :data_type?
308
308
 
309
- def check_binding(element, value)
309
+ def check_binding_element(element, value)
310
310
  vs_uri = element.binding.valueSetUri || element.binding.valueSetReference.reference
311
311
  valueset = FHIR::DSTU2::Definitions.get_codes(vs_uri)
312
312
 
@@ -359,7 +359,7 @@ module FHIR
359
359
  end
360
360
  deprecate :is_some_type_of_xml_or_json, :some_type_of_xml_or_json?
361
361
 
362
- private :valid_json?, :get_json_nodes, :build_hierarchy, :verify_element, :check_binding
362
+ private :valid_json?, :get_json_nodes, :build_hierarchy, :verify_element, :check_binding_element
363
363
  end
364
364
  end
365
365
  end
@@ -1,7 +1,7 @@
1
1
  module FHIR
2
2
  module DSTU2
3
3
  module Models
4
- VERSION = '1.0.2'.freeze
4
+ VERSION = '1.0.3'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fhir_dstu2_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Walonoski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-05-30 00:00:00.000000000 Z
13
+ date: 2017-08-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri