Class: Inferno::DSL::FHIRResourceValidation::ValidatorIssue
- Inherits:
-
Object
- Object
- Inferno::DSL::FHIRResourceValidation::ValidatorIssue
- Defined in:
- lib/inferno/dsl/fhir_resource_validation.rb
Overview
ValidatorIssue represents a single validation issue returned from the FHIR validator
Instance Attribute Summary collapse
-
#filtered ⇒ Object
Returns the value of attribute filtered.
-
#raw_issue ⇒ Object
Returns the value of attribute raw_issue.
-
#slice_info ⇒ Object
Returns the value of attribute slice_info.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(raw_issue:, target:, slice_info: [], filtered: false) ⇒ ValidatorIssue
constructor
Creates a new ValidatorIssue.
-
#location ⇒ String
Extracted location from the issue.
-
#message ⇒ String
Lazily calculated formatted message.
-
#severity ⇒ String
Lazily calculated severity level.
Constructor Details
#initialize(raw_issue:, target:, slice_info: [], filtered: false) ⇒ ValidatorIssue
Creates a new ValidatorIssue
669 670 671 672 673 674 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 669 def initialize(raw_issue:, target:, slice_info: [], filtered: false) @raw_issue = raw_issue @target = target @slice_info = slice_info @filtered = filtered end |
Instance Attribute Details
#filtered ⇒ Object
Returns the value of attribute filtered.
661 662 663 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 661 def filtered @filtered end |
#raw_issue ⇒ Object
Returns the value of attribute raw_issue.
661 662 663 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 661 def raw_issue @raw_issue end |
#slice_info ⇒ Object
Returns the value of attribute slice_info.
661 662 663 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 661 def slice_info @slice_info end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
662 663 664 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 662 def target @target end |
Instance Method Details
#location ⇒ String
Extracted location from the issue
690 691 692 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 690 def location @location ||= extract_location end |
#message ⇒ String
Lazily calculated formatted message
678 679 680 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 678 def @message ||= end |
#severity ⇒ String
Lazily calculated severity level
684 685 686 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 684 def severity @severity ||= calculate_severity end |