Class FhirConcept
A fhir triplet.
Inheritance
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Models
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public class FhirConcept : ICloneable
Constructors
| Improve this Doc View SourceFhirConcept(FhirConcept)
Initializes a new instance of the Fhir
Declaration
public FhirConcept(FhirConcept source)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
source | Source for the. |
FhirConcept(String, String)
Initializes a new instance of the Fhir
Declaration
public FhirConcept(string system, string code)
Parameters
Type | Name | Description |
---|---|---|
System. |
system | The system. |
System. |
code | The code. |
FhirConcept(String, String, String)
Initializes a new instance of the Fhir
Declaration
public FhirConcept(string system, string code, string display)
Parameters
Type | Name | Description |
---|---|---|
System. |
system | The system. |
System. |
code | The code. |
System. |
display | The display. |
FhirConcept(String, String, String, String)
Initializes a new instance of the Fhir
Declaration
public FhirConcept(string system, string code, string display, string version)
Parameters
Type | Name | Description |
---|---|---|
System. |
system | The system. |
System. |
code | The code. |
System. |
display | The display. |
System. |
version | The version. |
FhirConcept(String, String, String, String, String)
Initializes a new instance of the Fhir
Declaration
public FhirConcept(string system, string code, string display, string version, string definition)
Parameters
Type | Name | Description |
---|---|---|
System. |
system | The system. |
System. |
code | The code. |
System. |
display | The display. |
System. |
version | The version. |
System. |
definition | The definition. |
FhirConcept(String, String, String, String, String, String)
Initializes a new instance of the Fhir
Declaration
public FhirConcept(string system, string code, string display, string version, string definition, string systemLocalName)
Parameters
Type | Name | Description |
---|---|---|
System. |
system | The system. |
System. |
code | The code. |
System. |
display | The display. |
System. |
version | The version. |
System. |
definition | The definition. |
System. |
systemLocalName | The name of the system. |
FhirConcept(String, String, String, String, String, String, Dictionary<String, List<Object>>, HashSet<String>)
Initializes a new instance of the Microsoft.Health.Fhir.CodeGenCommon.Models.FhirConcept class.
Declaration
public FhirConcept(string system, string code, string display, string version, string definition, string systemLocalName, Dictionary<string, List<object>> properties, HashSet<string> propertyKeyValueHash)
Parameters
Type | Name | Description |
---|---|---|
System. |
system | The system. |
System. |
code | The code. |
System. |
display | The display. |
System. |
version | The version. |
System. |
definition | The definition. |
System. |
systemLocalName | The name of the system. |
Dictionary<System. |
properties | The properties. |
Hash |
propertyKeyValueHash | The properties and values. |
Properties
| Improve this Doc View SourceCode
Gets the code.
Declaration
public string Code { get; }
Property Value
Type | Description |
---|---|
System. |
The code. |
Definition
Gets the definition.
Declaration
public string Definition { get; }
Property Value
Type | Description |
---|---|
System. |
The definition. |
Display
Gets the display.
Declaration
public string Display { get; }
Property Value
Type | Description |
---|---|
System. |
The display. |
Properties
Gets the defined concept properties.
Declaration
public Dictionary<string, List<object>> Properties { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
System
Gets the system.
Declaration
public string System { get; }
Property Value
Type | Description |
---|---|
System. |
The system. |
SystemLocalName
Gets the name of the system.
Declaration
public string SystemLocalName { get; }
Property Value
Type | Description |
---|---|
System. |
The name of the system. |
Version
Gets the version.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
System. |
The version. |
Methods
| Improve this Doc View SourceAddProperty(String, Object, String)
Adds a property.
Declaration
public void AddProperty(string code, object value, string canonicalizedValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
code | The code. |
System. |
value | The value. |
System. |
canonicalizedValue | The canonicalized version of the value (for matching). |
Clone()
Makes a deep copy of this object.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System. |
A copy of this object. |
CodeAndSystem()
Code and system.
Declaration
public string CodeAndSystem()
Returns
Type | Description |
---|---|
System. |
A string. |
GetCanonical(String, String, String)
Gets property hash.
Declaration
public static string GetCanonical(string valueSystem, string valueCode, string valueVersion)
Parameters
Type | Name | Description |
---|---|---|
System. |
valueSystem | The value system. |
System. |
valueCode | The value code. |
System. |
valueVersion | The value version. |
Returns
Type | Description |
---|---|
System. |
The property hash. |
HasProperty(String, String)
Query if this Concept has a property with the specified value.
Declaration
public bool HasProperty(string propertyName, string propertyValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyName | Name of the property. |
System. |
propertyValue | The property value. |
Returns
Type | Description |
---|---|
System. |
True if this concept matches, false if not. |
Key()
Gets the key.
Declaration
public string Key()
Returns
Type | Description |
---|---|
System. |
A string. |
MatchesProperties(List<String>)
Matches properties.
Declaration
public bool MatchesProperties(List<string> propertyHashes)
Parameters
Type | Name | Description |
---|---|---|
List<System. |
propertyHashes | The properties. |
Returns
Type | Description |
---|---|
System. |
True if matches properties, false if not. |
SystemAndCode()
System and code.
Declaration
public string SystemAndCode()
Returns
Type | Description |
---|---|
System. |
A string. |