Skip to content

Commit

Permalink
WIP: Temporary remove specimen checks
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Mar 19, 2024
1 parent c4dc63f commit 3048062
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 17 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions lib/au_core_test_kit/generated/v0.3.0-ballot/metadata.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def handle_special_cases
remove_observation_method_attribute
remove_observation_value_attribute
remove_lipid_result_attributes
remove_specimen_attribute

case profile.version
when '3.1.1'
Expand All @@ -350,6 +351,14 @@ def handle_special_cases
end
end

def remove_specimen_attribute
# TODO: Temporary solution https://github.com/hl7au/au-fhir-core-inferno/issues/18
if profile.id == 'au-core-diagnosticresult-path'
@must_supports[:elements].delete_if do |element|
['specimen'].include? element[:path]
end
end
end
def remove_lipid_result_attributes
# TODO: This code block should be discussed.
# We need to understand why there are a lot of extra attributes
Expand Down
5 changes: 0 additions & 5 deletions lib/au_core_test_kit/reference_resolution_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@ def validate_reference_resolution(resource, reference, target_profile)
def resource_is_valid_with_target_profile?(resource, target_profile)
return true if target_profile.blank?

# NOTE: Special case: terminology server don't have a specimen v0.3.0
if metadata.profile_version == "0.3.0" && target_profile == "http://hl7.org.au/fhir/StructureDefinition/au-specimen"
target_profile = "#{target_profile}|4.1.0"
end

# Only need to know if the resource is valid.
# Calling resource_is_valid? causes validation errors to be logged.
validator = find_validator(:default)
Expand Down

0 comments on commit 3048062

Please sign in to comment.