Class FhirTypeBase
A base class for FHIR types to inherit from (common properties).
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Models
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public abstract class FhirTypeBase : object
Constructors
| Improve this Doc View SourceFhirTypeBase(String, String, String, String, String, Uri, String, String, String, String)
Initializes a new instance of the Fhir
Declaration
public FhirTypeBase(string id, string name, string path, string baseTypeName, string baseTypeCanonical, Uri url, string shortDescription, string purpose, string comment, string validationRegEx)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id of this element/resource/datatype/extension. |
System. |
name | The name. |
System. |
path |
element/resource/datatype/extension. |
System. |
baseTypeName | The name of the base type. |
System. |
baseTypeCanonical | The canonical url of the base type. |
Uri | url | The URL. |
System. |
shortDescription | The description. |
System. |
purpose | The purpose of this definition. |
System. |
comment | The comment. |
System. |
validationRegEx | The validation RegEx. |
Properties
| Improve this Doc View SourceBaseTypeCanonical
Gets or sets the Canonical of the type this type inherits from (null if none).
Declaration
public string BaseTypeCanonical { get; set; }
Property Value
Type | Description |
---|---|
System. |
The name of the base type. |
BaseTypeName
Gets or sets the Name of the type this type inherits from (null if none).
Declaration
public string BaseTypeName { get; set; }
Property Value
Type | Description |
---|---|
System. |
Comment
Gets explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. (Note: The text you are reading is specified in ElementDefinition.comment).
Declaration
public string Comment { get; }
Property Value
Type | Description |
---|---|
System. |
The comment. |
Id
Gets the Id for this element/resource/datatype.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System. |
The Id for this element/resource/datatype. |
Name
Gets a natural language name identifying the structure definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
The name. |
NameCapitalized
Gets name field with the first letter capitalized, useful in various languages and PascalCase joining.
Declaration
public string NameCapitalized { get; }
Property Value
Type | Description |
---|---|
System. |
The name capitalized. |
Path
Gets the dot-notation path to this element/resource/datatype.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System. |
The dot-notation path to this element/resource/datatype. |
Purpose
Gets a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource. (Note: The text you are reading is specified in ElementDefinition.definition).
Declaration
public string Purpose { get; }
Property Value
Type | Description |
---|---|
System. |
The definition. |
ShortDescription
Gets a concise description of what this element means (e.g. for use in autogenerated summaries).
Declaration
public string ShortDescription { get; }
Property Value
Type | Description |
---|---|
System. |
The description. |
URL
Gets URL of the document.
Declaration
public Uri URL { get; }
Property Value
Type | Description |
---|---|
Uri | The URL. |
ValidationRegEx
Gets a RegEx string used to validate values in this property.
Declaration
public string ValidationRegEx { get; }
Property Value
Type | Description |
---|---|
System. |
The validation RegEx. |
Methods
| Improve this Doc View SourceNameForExport(FhirTypeBase.NamingConvention, Boolean, String, HashSet<String>)
Converts this object to a requested naming convention.
Declaration
public string NameForExport(FhirTypeBase.NamingConvention convention, bool concatenatePath = false, string concatenationDelimiter = "", HashSet<string> reservedWords = null)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
convention | The convention. |
System. |
concatenatePath | (Optional) True to concatenate path. |
System. |
concatenationDelimiter | (Optional) The concatenation delimiter. |
Hash |
reservedWords | (Optional) The reserved words. |
Returns
Type | Description |
---|---|
System. |
A string. |
TypeForExport(FhirTypeBase.NamingConvention, Dictionary<String, String>, Boolean, String, HashSet<String>)
Type for export.
Declaration
public string TypeForExport(FhirTypeBase.NamingConvention convention, Dictionary<string, string> primitiveTypeMap, bool concatenatePath = false, string concatenationDelimiter = "", HashSet<string> reservedWords = null)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
convention | The convention. |
Dictionary<System. |
primitiveTypeMap | The base type map. |
System. |
concatenatePath | (Optional) True to concatenate path. |
System. |
concatenationDelimiter | (Optional) The concatenation delimiter. |
Hash |
reservedWords | (Optional) The reserved words. |
Returns
Type | Description |
---|---|
System. |
A string. |