Show / Hide Table of Contents

Class FhirElementType

A fhir element type.

Inheritance
System.Object
FhirElementType
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Models
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public class FhirElementType : ICloneable

Constructors

| Improve this Doc View Source

FhirElementType(FhirElementType)

Initializes a new instance of the Microsoft.Health.Fhir.CodeGenCommon.Models.FhirElementType class.

Declaration
public FhirElementType(FhirElementType source)
Parameters
Type Name Description
FhirElementType source

Source for the.

| Improve this Doc View Source

FhirElementType(String)

Initializes a new instance of the FhirElementType class.

Declaration
public FhirElementType(string code)
Parameters
Type Name Description
System.String code

The code.

| Improve this Doc View Source

FhirElementType(String, IEnumerable<String>, IEnumerable<String>)

Initializes a new instance of the FhirElementType class.

Declaration
public FhirElementType(string code, IEnumerable<string> targetProfiles, IEnumerable<string> typeProfiles)
Parameters
Type Name Description
System.String code

The code.

IEnumerable<System.String> targetProfiles

The target profiles.

IEnumerable<System.String> typeProfiles

The type profiles.

| Improve this Doc View Source

FhirElementType(String, String, Uri, Dictionary<String, FhirElementProfile>, Dictionary<String, FhirElementProfile>)

Initializes a new instance of the FhirElementType class.

Declaration
public FhirElementType(string name, string type, Uri url, Dictionary<string, FhirElementProfile> profiles, Dictionary<string, FhirElementProfile> typeProfiles)
Parameters
Type Name Description
System.String name

The code.

System.String type

The type.

Uri url

The URL.

Dictionary<System.String, FhirElementProfile> profiles

The target profiles.

Dictionary<System.String, FhirElementProfile> typeProfiles

The type profiles.

Properties

| Improve this Doc View Source

Name

Gets the name.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The name.

| Improve this Doc View Source

Profiles

Gets the profiles.

Declaration
public Dictionary<string, FhirElementProfile> Profiles { get; }
Property Value
Type Description
Dictionary<System.String, FhirElementProfile>

The profiles.

| Improve this Doc View Source

Type

Gets the type.

Declaration
public string Type { get; }
Property Value
Type Description
System.String

The type.

| Improve this Doc View Source

TypeProfiles

Gets the type profiles.

Declaration
public Dictionary<string, FhirElementProfile> TypeProfiles { get; }
Property Value
Type Description
Dictionary<System.String, FhirElementProfile>
| Improve this Doc View Source

URL

Gets URL of the document.

Declaration
public Uri URL { get; }
Property Value
Type Description
Uri

The URL.

Methods

| Improve this Doc View Source

AddProfile(String)

Adds a TARGET profile.

Declaration
public void AddProfile(string profileUrl)
Parameters
Type Name Description
System.String profileUrl

The profile url.

| Improve this Doc View Source

AddTypeProfile(String)

Adds a type profile.

Declaration
public void AddTypeProfile(string profileUrl)
Parameters
Type Name Description
System.String profileUrl

The profile url.

| Improve this Doc View Source

Clone()

Creates a new object that is a copy of the current instance.

Declaration
public object Clone()
Returns
Type Description
System.Object

A new object that is a copy of this instance.

| Improve this Doc View Source

DeepCopy(Dictionary<String, String>)

Deep copy.

Declaration
public FhirElementType DeepCopy(Dictionary<string, string> primitiveTypeMap)
Parameters
Type Name Description
Dictionary<System.String, System.String> primitiveTypeMap

The primitive type map.

Returns
Type Description
FhirElementType

A FhirElementType.

| Improve this Doc View Source

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.String fhirPathType

Type in FHIRPath.

System.String fhirType

[out] Type in FHIR.

Returns
Type Description
System.Boolean

A string.

| Improve this Doc View Source

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.String xmlType

Type of the XML.

System.String fhirType

[out] Type in FHIR.

Returns
Type Description
System.Boolean

True if XML base type, false if not.

| Improve this Doc View Source

IsXmlType(String, out String)

Type from XML type.

Declaration
public static bool IsXmlType(string xmlType, out string fhirType)
Parameters
Type Name Description
System.String xmlType

Type of the XML.

System.String fhirType

[out] Type in FHIR.

Returns
Type Description
System.Boolean

A string.

  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • FhirElementType(FhirElementType)
    • FhirElementType(String)
    • FhirElementType(String, IEnumerable<String>, IEnumerable<String>)
    • FhirElementType(String, String, Uri, Dictionary<String, FhirElementProfile>, Dictionary<String, FhirElementProfile>)
  • Properties
    • Name
    • Profiles
    • Type
    • TypeProfiles
    • URL
  • Methods
    • AddProfile(String)
    • AddTypeProfile(String)
    • Clone()
    • DeepCopy(Dictionary<String, String>)
    • IsFhirPathType(String, out String)
    • IsXmlBaseType(String, out String)
    • IsXmlType(String, out String)
Back to top Generated by DocFX