Click or drag to resize

DetectedIssue Class

An issue raised by CDSS, Business Rules, or the persistence layer representing a constraint on the object
Inheritance Hierarchy
SystemObject
  SanteDB.Core.BusinessRulesDetectedIssue

Namespace: SanteDB.Core.BusinessRules
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public class DetectedIssue

The DetectedIssue type exposes the following members.

Constructors
 NameDescription
Public methodDetectedIssue Default ctor for detected issues
Public methodDetectedIssue(DetectedIssuePriorityType, String, String, Guid) Creates a new detected issue with the specified field values
Public methodDetectedIssue(DetectedIssuePriorityType, String, String, Guid, String) Creates a new detected issue with the specified field values
Top
Properties
 NameDescription
Public propertyId Gets or sets the identifier of the detected issue
Public propertyPriority Represents a detected issue priority
Public propertyRefersTo Gets or sets the object that the detected issue refers to
Public propertyText Gets or sets the textual description of the detected issue.
Public propertyTypeKey The type of detected issue (a concept key) which can be used to classify the detected issue
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks

In SanteDB, a detected issue is used to represent a business constraint violation (opposed to a software exception) which has impacted the ability of the SanteDB server software to process the requested action. Examples of detected issues can include:

  • Assigning an incorrect / unbound code to a field
  • Adding an inapporpriate relationship type (i.e. Mother linking an Organization to a Person)
  • Inappropriately assigning an identifier out of scope (i.e. a GLN on a Person)
  • Business rules trigger violations

In SanteDB any plugin can throw a DetectedIssueException wrapping a collection of issues, in the core iCDR and dCDR services, detected issues are commonly raised by:

  • The persistence layer (validating relationship types, identifier scopes, etc.)
  • The data quality business rules trigger (validating in-country minimum data sets, etc.)
  • The JavaScript business rules service (whenever a business rule validate() or trigger event throws an exception)
  • The Clinical Decision Support / CarePlanner (when raised by a protocol)
See Also