us_core_test_kit 0.9.1 → 0.9.2

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
  SHA256:
3
- metadata.gz: cb236072789c9942dda9a6a795a2213f6e61d1f8ca0a7597361d6764b6c37314
4
- data.tar.gz: 82c2446cdf9298a13a889b00b07e63a60e16b6a500533fb56b58460a89a31a19
3
+ metadata.gz: b932717dea1b608f8b882d319b8b0bb9ae55602f88ae33f237c11a145f545835
4
+ data.tar.gz: 64ddbccbc2e8cea67a65013931fc0b1022425ca18fe5b86bece509c154a724d5
5
5
  SHA512:
6
- metadata.gz: cc69744c6b52d9f8d11ed74d058ac519152bd9ce6b789c46853453dc9d1ea781477783a672b690856cedadc69ea10c7b86236f280a4004a9097fdb86efe4c6db
7
- data.tar.gz: 9cfa1c3e2246e618fc1eb1e2c0a9663faacc6109ac187dadbfc2151e5a21b87a9cc27a10413320fa708c4eadd364c66eece4adf395eaaa33ac2960bd37318307
6
+ metadata.gz: 12f75e241b6c1d939bd707fe072abca55b162333fce4c58d16999ebf1795cf0272aeb6be2e89ce15806c5a033e28961fd13a5331b70119811862a2bc4967d751
7
+ data.tar.gz: 5e864dac05137ff3ddb47eb517700113292b9988fcafa36eb94cd4088bde194e7733eb74ad339b5b796c3517e7e452cd4e97ad117c875e05aa667afe54180dae
@@ -91,7 +91,7 @@ module USCoreTestKit
91
91
  VERSION_SPECIFIC_MESSAGE_FILTERS = [
92
92
  %r{Observation\.effective\.ofType\(Period\):.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
93
93
  %r{Observation: Slice 'Observation\.effective\[x\]:effectiveDateTime':.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
94
- %r{Observation\.effective\.ofType\(Period\)\.end: This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
94
+ %r{Observation\.effective\.ofType\(Period\)\.(start|end): This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
95
95
  ].freeze
96
96
 
97
97
  VALIDATION_MESSAGE_FILTERS = GENERAL_MESSAGE_FILTERS + VERSION_SPECIFIC_MESSAGE_FILTERS
@@ -23,7 +23,7 @@ module USCoreTestKit
23
23
  [
24
24
  %r{Observation\.effective\.ofType\(Period\):.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
25
25
  %r{Observation: Slice 'Observation\.effective\[x\]:effectiveDateTime':.*http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus|6.1.0},
26
- %r{Observation\.effective\.ofType\(Period\)\.end: This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
26
+ %r{Observation\.effective\.ofType\(Period\)\.(start|end): This element is not allowed by the profile http://hl7.org/fhir/StructureDefinition/dateTime}
27
27
  ]
28
28
  else
29
29
  []
@@ -697,7 +697,8 @@ module USCoreTestKit
697
697
  resources.each do |resource|
698
698
  references_to_save(containing_resource_type).each do |reference_to_save|
699
699
  resolve_path(resource, reference_to_save[:path])
700
- .select { |reference| reference.is_a?(FHIR::Reference) && !reference.contained? }
700
+ .select { |reference| reference.is_a?(FHIR::Reference) &&
701
+ !reference.contained? && reference.reference.present? }
701
702
  .each do |reference|
702
703
  resource_type = reference.resource_class.name.demodulize
703
704
  need_to_save = reference_to_save[:resources].include?(resource_type)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module USCoreTestKit
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: us_core_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen MacVicar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inferno_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.37
19
+ version: 0.5.0
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.4.37
26
+ version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: smart_app_launch_test_kit
29
29
  requirement: !ruby/object:Gem::Requirement