Class FhirConstraint
A FHIR constraint.
Inheritance
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Models
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public class FhirConstraint : ICloneable
Constructors
| Improve this Doc View SourceFhirConstraint(FhirConstraint)
Initializes a new instance of the Fhir
Declaration
public FhirConstraint(FhirConstraint source)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
source | Source for the. |
FhirConstraint(String, String, String, Nullable<Boolean>, String, String, String, Boolean, String, String, String)
Initializes a new instance of the Fhir
Declaration
public FhirConstraint(string key, string requirements, string severity, bool? suppress, string description, string expression, string xPath, bool isBestPractice, string bestPracticeExplanation, string sourceCanonical, string contextPath)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The constraint key (id). |
System. |
requirements | Why this constraint is necessary or appropriate. |
System. |
severity | The severity for violating the constraint. |
System. |
suppress | True to suppress warning or hint in profile. |
System. |
description | The human-readable description of the constraint. |
System. |
expression | The FHIR Query-style validation expression. |
System. |
xPath | The XPath-style validation expression. |
System. |
isBestPractice | A value indicating whether this constraint is a best practice. |
System. |
bestPracticeExplanation | A value indicating why this constraint is a best practice. |
System. |
sourceCanonical | Reference to original source of constraint. |
System. |
contextPath | Context of this constraint. |
Properties
| Improve this Doc View SourceBestPracticeExplanation
Gets a value indicating why this constraint is a best practice.
Declaration
public string BestPracticeExplanation { get; }
Property Value
Type | Description |
---|---|
System. |
ContextPath
Gets the full pathname of the context file.
Declaration
public string ContextPath { get; }
Property Value
Type | Description |
---|---|
System. |
Description
Gets the human-readable description of the constraint.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System. |
Expression
Gets the FHIR Query-style validation expression.
Declaration
public string Expression { get; }
Property Value
Type | Description |
---|---|
System. |
IsBestPractice
Gets a value indicating whether this constraint is a best practice.
Declaration
public bool IsBestPractice { get; }
Property Value
Type | Description |
---|---|
System. |
IsInherited
Gets a value indicating whether this object is inherited.
Declaration
public bool IsInherited { get; set; }
Property Value
Type | Description |
---|---|
System. |
Key
Gets the constraint key (id).
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
System. |
Requirements
Gets why this constraint is necessary or appropriate.
Declaration
public string Requirements { get; }
Property Value
Type | Description |
---|---|
System. |
Severity
Gets the severity for violating the constraint.
Declaration
public string Severity { get; }
Property Value
Type | Description |
---|---|
System. |
SourceCanonical
Gets source canonical.
Declaration
public string SourceCanonical { get; }
Property Value
Type | Description |
---|---|
System. |
Suppress
Gets a flag to suppress warning or hint in profile.
Declaration
public bool? Suppress { get; }
Property Value
Type | Description |
---|---|
System. |
XPath
Gets the XPath-style validation expression.
Declaration
public string XPath { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceClone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System. |
A new object that is a copy of this instance. |