cqm-models 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -0
- data/app/models/cqm/individual_result.rb +2 -2
- data/app/models/cqm/measure.rb +1 -1
- data/app/models/cqm/patient.rb +1 -1
- data/cqm-models.gemspec +1 -1
- data/yarn.lock +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7351dbc9be7855d8704c32f8e768d8dd101c60e184e6114b4f908cec95e45ef
|
4
|
+
data.tar.gz: 764912c1fcc9d6e155853005ec178c973131078a59b85f6ff957a4ae92310503
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79e4eac69740a14347989fffc0c211cfcd623c3a4091fa31b0d24da8fcbdd4ce6a296df761f216e61d6e771f59f8f511db68a1fa03c337310253b13b4373964f
|
7
|
+
data.tar.gz: f9ae102d6d01ca3fc354c5f0d0bc7cce0e0e9516420da71be381070f993a381a5cf5d2c100966a5b91ca194c903004f16fdd2b18b9b823ea48fde33d8567e552
|
data/.github/workflows/ci.yml
CHANGED
@@ -35,8 +35,8 @@ module CQM
|
|
35
35
|
field :state, type: String, default: 'queued'
|
36
36
|
|
37
37
|
# Relations to other model classes
|
38
|
-
belongs_to :measure
|
39
|
-
belongs_to :patient
|
38
|
+
belongs_to :measure, class_name: 'CQM::Measure', inverse_of: :calculation_result
|
39
|
+
belongs_to :patient, class_name: 'CQM::Patient', inverse_of: :calculation_result
|
40
40
|
|
41
41
|
# Convert the stored array into a hash between clause and result
|
42
42
|
def clause_results_by_clause
|
data/app/models/cqm/measure.rb
CHANGED
@@ -73,7 +73,7 @@ module CQM
|
|
73
73
|
# hence the 'inverse_of: nil')
|
74
74
|
has_and_belongs_to_many :value_sets, inverse_of: nil
|
75
75
|
|
76
|
-
has_many :calculation_results, class_name: 'CQM::IndividualResult'
|
76
|
+
has_many :calculation_results, class_name: 'CQM::IndividualResult', inverse_of: :measure
|
77
77
|
|
78
78
|
def all_stratifications
|
79
79
|
population_sets.flat_map(&:stratifications)
|
data/app/models/cqm/patient.rb
CHANGED
@@ -11,7 +11,7 @@ module CQM
|
|
11
11
|
|
12
12
|
has_and_belongs_to_many :providers, class_name: 'CQM::Provider'
|
13
13
|
embeds_one :qdmPatient, class_name: 'QDM::Patient', autobuild: true
|
14
|
-
has_many :calculation_results, class_name: 'CQM::IndividualResult'
|
14
|
+
has_many :calculation_results, class_name: 'CQM::IndividualResult', inverse_of: :patient
|
15
15
|
|
16
16
|
# Include '_type' in any JSON output. This is necessary for deserialization.
|
17
17
|
def to_json(options = nil)
|
data/cqm-models.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'cqm-models'
|
7
|
-
spec.version = '3.1.
|
7
|
+
spec.version = '3.1.1'
|
8
8
|
spec.authors = ['aholmes@mitre.org', 'mokeefe@mitre.org', 'lades@mitre.org']
|
9
9
|
|
10
10
|
spec.summary = 'Mongo models that correspond to the QDM specification.'
|
data/yarn.lock
CHANGED
@@ -1188,9 +1188,9 @@ hmac-drbg@^1.0.1:
|
|
1188
1188
|
minimalistic-crypto-utils "^1.0.1"
|
1189
1189
|
|
1190
1190
|
hosted-git-info@^2.1.4:
|
1191
|
-
version "2.8.
|
1192
|
-
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.
|
1193
|
-
integrity sha512-
|
1191
|
+
version "2.8.9"
|
1192
|
+
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
|
1193
|
+
integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==
|
1194
1194
|
|
1195
1195
|
htmlescape@^1.1.0:
|
1196
1196
|
version "1.1.1"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cqm-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aholmes@mitre.org
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundle-audit
|