Class FhirElementType
A fhir element type.
Inheritance
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Models
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public class FhirElementType : ICloneable
Constructors
| Improve this Doc View SourceFhirElementType(FhirElementType)
Initializes a new instance of the Microsoft.Health.Fhir.CodeGenCommon.Models.FhirElementType class.
Declaration
public FhirElementType(FhirElementType source)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
source | Source for the. |
FhirElementType(String)
Initializes a new instance of the Fhir
Declaration
public FhirElementType(string code)
Parameters
Type | Name | Description |
---|---|---|
System. |
code | The code. |
FhirElementType(String, IEnumerable<String>, IEnumerable<String>)
Initializes a new instance of the Fhir
Declaration
public FhirElementType(string code, IEnumerable<string> targetProfiles, IEnumerable<string> typeProfiles)
Parameters
Type | Name | Description |
---|---|---|
System. |
code | The code. |
IEnumerable<System. |
targetProfiles | The target profiles. |
IEnumerable<System. |
typeProfiles | The type profiles. |
FhirElementType(String, String, Uri, Dictionary<String, FhirElementProfile>, Dictionary<String, FhirElementProfile>)
Initializes a new instance of the Fhir
Declaration
public FhirElementType(string name, string type, Uri url, Dictionary<string, FhirElementProfile> profiles, Dictionary<string, FhirElementProfile> typeProfiles)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The code. |
System. |
type | The type. |
Uri | url | The URL. |
Dictionary<System. |
profiles | The target profiles. |
Dictionary<System. |
typeProfiles | The type profiles. |
Properties
| Improve this Doc View SourceName
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
The name. |
Profiles
Gets the profiles.
Declaration
public Dictionary<string, FhirElementProfile> Profiles { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
The profiles. |
Type
Gets the type.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System. |
The type. |
TypeProfiles
Gets the type profiles.
Declaration
public Dictionary<string, FhirElementProfile> TypeProfiles { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
URL
Gets URL of the document.
Declaration
public Uri URL { get; }
Property Value
Type | Description |
---|---|
Uri | The URL. |
Methods
| Improve this Doc View SourceAddProfile(String)
Adds a TARGET profile.
Declaration
public void AddProfile(string profileUrl)
Parameters
Type | Name | Description |
---|---|---|
System. |
profileUrl | The profile url. |
AddTypeProfile(String)
Adds a type profile.
Declaration
public void AddTypeProfile(string profileUrl)
Parameters
Type | Name | Description |
---|---|---|
System. |
profileUrl | The profile url. |
Clone()
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. |
DeepCopy(Dictionary<String, String>)
Deep copy.
Declaration
public FhirElementType DeepCopy(Dictionary<string, string> primitiveTypeMap)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System. |
primitiveTypeMap | The primitive type map. |
Returns
Type | Description |
---|---|
Fhir |
A FhirElementType. |
IsFhirPathType(String, out String)
Check if a type is listed in FHIRPath notation, and return the FHIR type if it is.
Declaration
public static bool IsFhirPathType(string fhirPathType, out string fhirType)
Parameters
Type | Name | Description |
---|---|---|
System. |
fhirPathType | Type in FHIRPath. |
System. |
fhirType | [out] Type in FHIR. |
Returns
Type | Description |
---|---|
System. |
A string. |
IsXmlBaseType(String, out String)
Query if 'xmlType' is XML base type.
Declaration
public static bool IsXmlBaseType(string xmlType, out string fhirType)
Parameters
Type | Name | Description |
---|---|---|
System. |
xmlType | Type of the XML. |
System. |
fhirType | [out] Type in FHIR. |
Returns
Type | Description |
---|---|
System. |
True if XML base type, false if not. |
IsXmlType(String, out String)
Type from XML type.
Declaration
public static bool IsXmlType(string xmlType, out string fhirType)
Parameters
Type | Name | Description |
---|---|---|
System. |
xmlType | Type of the XML. |
System. |
fhirType | [out] Type in FHIR. |
Returns
Type | Description |
---|---|
System. |
A string. |