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 +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +5 -6
- data/fhir_scorecard.gemspec +2 -2
- data/lib/rubrics/completeness.rb +1 -1
- data/lib/rubrics/cvx_meds.rb +2 -2
- data/lib/rubrics/quantities_ucum.rb +1 -1
- data/lib/rubrics/rxnorm_meds.rb +2 -2
- 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: 7538b7aa83ab765764f11fe69887baba1c2a5b6b
|
4
|
+
data.tar.gz: dc1534f80e10d27ea0541aff94ebf5211a32daf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaec79d085fee1c283acae50d24e8d1bc4b2e5c95ca6750a8ff1308c5ec4ad067a5dba2f8f1b3547c1359e2e0e662edc30ff2d8f34d947998f802522f7edb6f5
|
7
|
+
data.tar.gz: 983bc9c5dc9ecb3d0151fa66132be996f360b61b05dd3836433e2cd823a0b8cb7cc422f266f854e4611af4b4a93743153345d352ba5df1292ef933eac8663aaf
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fhir_scorecard (
|
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.
|
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.
|
29
|
-
minitest-reporters (1.1.
|
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
|
data/fhir_scorecard.gemspec
CHANGED
@@ -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
|
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
|
data/lib/rubrics/completeness.rb
CHANGED
@@ -12,7 +12,7 @@ module FHIR
|
|
12
12
|
'QuestionnaireResponse','Coverage'
|
13
13
|
]
|
14
14
|
|
15
|
-
MEDICATIONS = [ 'MedicationStatement','MedicationDispense','MedicationAdministration','
|
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|
|
data/lib/rubrics/cvx_meds.rb
CHANGED
@@ -10,7 +10,7 @@ module FHIR
|
|
10
10
|
# Medication.code (CodeableConcept)
|
11
11
|
# MedicationAdministration.medicationCodeableConcept / medicationReference
|
12
12
|
# MedicationDispense.medicationCodeableConcept / medicationReference
|
13
|
-
#
|
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::
|
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','
|
11
|
+
'MedicationStatement','MedicationRequest','MedicationDispense','MedicationAdministration','Medication','Immunization','CarePlan'
|
12
12
|
]
|
13
13
|
|
14
14
|
# Physical quantities should use UCUM
|
data/lib/rubrics/rxnorm_meds.rb
CHANGED
@@ -10,7 +10,7 @@ module FHIR
|
|
10
10
|
# Medication.code (CodeableConcept)
|
11
11
|
# MedicationAdministration.medicationCodeableConcept / medicationReference
|
12
12
|
# MedicationDispense.medicationCodeableConcept / medicationReference
|
13
|
-
#
|
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::
|
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
|
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
|
+
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: '
|
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: '
|
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: []
|