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.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#slice_info ⇒ Object
Returns the value of attribute slice_info.
Instance Method Summary collapse
-
#initialize(raw_issue:, resource:, 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:, resource:, slice_info: [], filtered: false) ⇒ ValidatorIssue
Creates a new ValidatorIssue
608 609 610 611 612 613 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 608 def initialize(raw_issue:, resource:, slice_info: [], filtered: false) @raw_issue = raw_issue @resource = resource @slice_info = slice_info @filtered = filtered end |
Instance Attribute Details
#filtered ⇒ Object
Returns the value of attribute filtered.
600 601 602 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 600 def filtered @filtered end |
#raw_issue ⇒ Object
Returns the value of attribute raw_issue.
600 601 602 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 600 def raw_issue @raw_issue end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
601 602 603 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 601 def resource @resource end |
#slice_info ⇒ Object
Returns the value of attribute slice_info.
600 601 602 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 600 def slice_info @slice_info end |
Instance Method Details
#location ⇒ String
Extracted location from the issue
629 630 631 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 629 def location @location ||= extract_location end |
#message ⇒ String
Lazily calculated formatted message
617 618 619 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 617 def @message ||= end |
#severity ⇒ String
Lazily calculated severity level
623 624 625 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 623 def severity @severity ||= calculate_severity end |