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: 2.2.1
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
Top
Properties
  NameDescription
Public propertyId
Gets or sets the identifier of the detected issue
Public propertyPriority
Represents a detected issue priority
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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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 MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
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