fhir_scorecard 1.0.1 → 1.8.0

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: 9663521ba0ef5eccfe711883023291f20468f459
4
- data.tar.gz: 9741193d6465281cf4c5c111fae7e88a01a73b4c
3
+ metadata.gz: 7538b7aa83ab765764f11fe69887baba1c2a5b6b
4
+ data.tar.gz: dc1534f80e10d27ea0541aff94ebf5211a32daf1
5
5
  SHA512:
6
- metadata.gz: 8ccdcf7b2f2eea4e9ae6f0ac04900eee390772da8a298145be8e03d1edf344720b9f1804a924a637dbffb29c35707ccd5f9ff10c9cd94c5a8e6e5011e9742251
7
- data.tar.gz: fd6d680087ca6841970f3705155e6a47698156e2eef07976ca5c67a05a240a9f3de4788e9dd7e096fec977fb4ce6d67ca3d338563b8ec3256a05881c3db35b07
6
+ metadata.gz: eaec79d085fee1c283acae50d24e8d1bc4b2e5c95ca6750a8ff1308c5ec4ad067a5dba2f8f1b3547c1359e2e0e662edc30ff2d8f34d947998f802522f7edb6f5
7
+ data.tar.gz: 983bc9c5dc9ecb3d0151fa66132be996f360b61b05dd3836433e2cd823a0b8cb7cc422f266f854e4611af4b4a93743153345d352ba5df1292ef933eac8663aaf
data/Gemfile CHANGED
@@ -3,7 +3,6 @@ gemspec
3
3
 
4
4
  gem 'rake'
5
5
  gem 'pry'
6
- gem 'fhir_models', '~> 1.6'
7
6
 
8
7
  group :test do
9
8
  gem 'simplecov', :require => false
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fhir_scorecard (0.1.0)
5
- fhir_models
4
+ fhir_scorecard (1.8.0)
5
+ fhir_models (~> 1.8)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -15,7 +15,7 @@ GEM
15
15
  coderay (1.1.1)
16
16
  date_time_precision (0.8.1)
17
17
  docile (1.1.5)
18
- fhir_models (1.6.8)
18
+ fhir_models (1.8.1)
19
19
  bcp47 (>= 0.3)
20
20
  date_time_precision (>= 0.8)
21
21
  mime-types (>= 1.16, < 3)
@@ -25,8 +25,8 @@ GEM
25
25
  method_source (0.8.2)
26
26
  mime-types (2.99.3)
27
27
  mini_portile2 (2.1.0)
28
- minitest (5.9.0)
29
- minitest-reporters (1.1.11)
28
+ minitest (5.9.1)
29
+ minitest-reporters (1.1.12)
30
30
  ansi
31
31
  builder
32
32
  minitest (>= 5.0)
@@ -51,7 +51,6 @@ PLATFORMS
51
51
 
52
52
  DEPENDENCIES
53
53
  awesome_print
54
- fhir_models (~> 1.6)
55
54
  fhir_scorecard!
56
55
  minitest (~> 5.3)
57
56
  minitest-reporters
@@ -7,9 +7,9 @@ Gem::Specification.new do |s|
7
7
  s.email = "jwalonoski@mitre.org"
8
8
  s.homepage = "https://github.com/fhir-crucible/fhir_scorecard"
9
9
  s.authors = ["Jason Walonoski"]
10
- s.version = '1.0.1'
10
+ s.version = '1.8.0'
11
11
 
12
12
  s.files = s.files = `git ls-files`.split("\n")
13
13
 
14
- s.add_runtime_dependency 'fhir_models'
14
+ s.add_runtime_dependency 'fhir_models', '~> 1.8'
15
15
  end
@@ -12,7 +12,7 @@ module FHIR
12
12
  'QuestionnaireResponse','Coverage'
13
13
  ]
14
14
 
15
- MEDICATIONS = [ 'MedicationStatement','MedicationDispense','MedicationAdministration','MedicationOrder' ]
15
+ MEDICATIONS = [ 'MedicationStatement','MedicationDispense','MedicationAdministration','MedicationRequest' ]
16
16
 
17
17
  # A Patient Record is not complete without certain required items and medications.
18
18
  rubric :completeness do |record|
@@ -10,7 +10,7 @@ module FHIR
10
10
  # Medication.code (CodeableConcept)
11
11
  # MedicationAdministration.medicationCodeableConcept / medicationReference
12
12
  # MedicationDispense.medicationCodeableConcept / medicationReference
13
- # MedicationOrder.medicationCodeableConcept / medicationReference
13
+ # MedicationRequest.medicationCodeableConcept / medicationReference
14
14
  # MedicationStatement.medicationCodeableConcept / medicationReference
15
15
 
16
16
  resources = record.entry.map{|e|e.resource}
@@ -19,7 +19,7 @@ module FHIR
19
19
  results[:eligible_fields] += 1
20
20
  results[:validated_fields] += 1 if cvx?(resource.code)
21
21
  elsif (
22
- resource.is_a?(FHIR::MedicationOrder) ||
22
+ resource.is_a?(FHIR::MedicationRequest) ||
23
23
  resource.is_a?(FHIR::MedicationDispense) ||
24
24
  resource.is_a?(FHIR::MedicationAdministration) ||
25
25
  resource.is_a?(FHIR::MedicationStatement) )
@@ -8,7 +8,7 @@ module FHIR
8
8
 
9
9
  CHECK = [
10
10
  'VisionPrescription','SupplyDelivery','Substance','Specimen','Sequence','Observation','NutritionRequest',
11
- 'MedicationStatement','MedicationOrder','MedicationDispense','MedicationAdministration','Medication','Immunization','CarePlan'
11
+ 'MedicationStatement','MedicationRequest','MedicationDispense','MedicationAdministration','Medication','Immunization','CarePlan'
12
12
  ]
13
13
 
14
14
  # Physical quantities should use UCUM
@@ -10,7 +10,7 @@ module FHIR
10
10
  # Medication.code (CodeableConcept)
11
11
  # MedicationAdministration.medicationCodeableConcept / medicationReference
12
12
  # MedicationDispense.medicationCodeableConcept / medicationReference
13
- # MedicationOrder.medicationCodeableConcept / medicationReference
13
+ # MedicationRequest.medicationCodeableConcept / medicationReference
14
14
  # MedicationStatement.medicationCodeableConcept / medicationReference
15
15
 
16
16
  resources = record.entry.map{|e|e.resource}
@@ -19,7 +19,7 @@ module FHIR
19
19
  results[:eligible_fields] += 1
20
20
  results[:validated_fields] += 1 if rxnorm?(resource.code)
21
21
  elsif (
22
- resource.is_a?(FHIR::MedicationOrder) ||
22
+ resource.is_a?(FHIR::MedicationRequest) ||
23
23
  resource.is_a?(FHIR::MedicationDispense) ||
24
24
  resource.is_a?(FHIR::MedicationAdministration) ||
25
25
  resource.is_a?(FHIR::MedicationStatement) )
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fhir_scorecard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Walonoski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fhir_models
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.8'
27
27
  description: A Gem for scoring FHIR Patient Records (as Bundles)
28
28
  email: jwalonoski@mitre.org
29
29
  executables: []