cqm-models 3.1.0 → 3.1.1

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
  SHA256:
3
- metadata.gz: 1a0d67086fe4eae472fe08e0e069c5fc3c9bfbfb9503e1606fd958b4c553368a
4
- data.tar.gz: 10ee066a538619d8dd8850bd715f27796cc58621fa00896e30b9e7da872ba064
3
+ metadata.gz: f7351dbc9be7855d8704c32f8e768d8dd101c60e184e6114b4f908cec95e45ef
4
+ data.tar.gz: 764912c1fcc9d6e155853005ec178c973131078a59b85f6ff957a4ae92310503
5
5
  SHA512:
6
- metadata.gz: cb89b1251f588838c3d46b9993e18fe25d152a0aca3c694660ac3a957fa10f6cf171558da8963b773879abbb807335012573a076b5dec243d7b95555e5a92b83
7
- data.tar.gz: 0215d03daaaa2e938e35dd00921885100ec98614df3ff5195003b34aa20c6cc11e720a59cb1d0200ba7cc2d056127913df3aea44776a5f80573185615a48c07d
6
+ metadata.gz: 79e4eac69740a14347989fffc0c211cfcd623c3a4091fa31b0d24da8fcbdd4ce6a296df761f216e61d6e771f59f8f511db68a1fa03c337310253b13b4373964f
7
+ data.tar.gz: f9ae102d6d01ca3fc354c5f0d0bc7cce0e0e9516420da71be381070f993a381a5cf5d2c100966a5b91ca194c903004f16fdd2b18b9b823ea48fde33d8567e552
@@ -3,6 +3,7 @@ on:
3
3
  pull_request:
4
4
  branches:
5
5
  - master
6
+ - cqm_models_3_x
6
7
 
7
8
  jobs:
8
9
  build:
@@ -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
@@ -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)
@@ -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.0'
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.8"
1192
- resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488"
1193
- integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==
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.0
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-03-12 00:00:00.000000000 Z
13
+ date: 2021-06-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundle-audit