Class FhirComplex
A class representing a FHIR complex type.
Implements
Inherited Members
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Models
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public class FhirComplex : FhirModelBase
Constructors
| Improve this Doc View SourceFhirComplex(FhirArtifactClassEnum, String, String, String, String, String, String, String, Uri, String, String, Nullable<Int32>, Boolean, String, String, String, List<String>, Boolean, String, String, String, String, Dictionary<String, FhirStructureDefMapping>, Dictionary<String, List<FhirElementDefMapping>>)
Initializes a new instance of the Fhir
Declaration
public FhirComplex(FhirArtifactClassEnum artifactType, string id, string name, string path, string explicitName, string baseTypeName, string baseTypeCanonical, string version, Uri url, string publicationStatus, string standardStatus, int? fmmLevel, bool isExperimental, string shortDescription, string purpose, string comment, List<string> contextElements, bool isAbstract, string validationRegEx, string narrative, string narrativeStatus, string fhirVersion, Dictionary<string, FhirStructureDefMapping> mappings, Dictionary<string, List<FhirElementDefMapping>> rootElementMappings)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
artifactType | Type of artifact this complex object represents. |
System. |
id | The id of this resource/data type/extension. |
System. |
name | The 'name' of this model. |
System. |
path | |
System. |
explicitName | Explicit name for this complex structure, if provided. |
System. |
baseTypeName | Base type name for this complex structure, if provided. |
System. |
baseTypeCanonical | Base type canonical of this complex structure, if provided |
System. |
version | Version of this definition. |
Uri | url | URL of the resource. |
System. |
publicationStatus | The publication status. |
System. |
standardStatus | The standard status. |
System. |
fmmLevel | The FHIR Maturity Model level. |
System. |
isExperimental | If this complex type is marked experimental. |
System. |
shortDescription | Information describing the short. |
System. |
purpose | The definition. |
System. |
comment | The comment. |
List<System. |
contextElements | The context elements. |
System. |
isAbstract | If the complex structure is an abstract type. |
System. |
validationRegEx | Validation regex pattern for this definition. |
System. |
narrative | Narrative content for this object. |
System. |
narrativeStatus | Status of any included narrative content. |
System. |
fhirVersion | FHIR Version specified by this object. |
Dictionary<System. |
mappings | Mapping definitions for links to external specifications. |
Dictionary<System. |
rootElementMappings |
FhirComplex(FhirArtifactClassEnum, String, String, String, String, String, String, String, Uri, String, String, Nullable<Int32>, Boolean, String, String, String, String, String, String, String, Dictionary<String, FhirStructureDefMapping>, Dictionary<String, List<FhirElementDefMapping>>)
Initializes a new instance of the Fhir
Declaration
public FhirComplex(FhirArtifactClassEnum artifactType, string id, string name, string path, string explicitName, string baseTypeName, string baseTypeCanonical, string version, Uri url, string publicationStatus, string standardStatus, int? fmmLevel, bool isExperimental, string shortDescription, string purpose, string comment, string validationRegEx, string narrative, string narrativeStatus, string fhirVersion, Dictionary<string, FhirStructureDefMapping> mappings, Dictionary<string, List<FhirElementDefMapping>> rootElementMappings)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
artifactType | FHIR artifact type of this Complex object. |
System. |
id | The id of this resource/datatype/extension. |
System. |
name | Name of this definition. |
System. |
path | The dot-notation path to this resource/datatype/extension. |
System. |
explicitName | Explicit name for this complex structure, if provided. |
System. |
baseTypeName | Base type of this complex structure, if provided. |
System. |
baseTypeCanonical | Base type canonical of this complex structure, if provided |
System. |
version | Version of this definition. |
Uri | url | URL of the resource. |
System. |
publicationStatus | The publication status. |
System. |
standardStatus | The standard status. |
System. |
fmmLevel | The FHIR Maturity Model level. |
System. |
isExperimental | If this complex resource is flagged as experimental. |
System. |
shortDescription | Information describing the short. |
System. |
purpose | The purpose. |
System. |
comment | The comment. |
System. |
validationRegEx | Validation Regular Expression for this structure. |
System. |
narrative | Narrative content for this object. |
System. |
narrativeStatus | Status of any included narrative content. |
System. |
fhirVersion | FHIR Version specified by this object. |
Dictionary<System. |
mappings | Mapping definitions for links to external specifications. |
Dictionary<System. |
rootElementMappings | Mapping values from the root element. |
FhirComplex(FhirArtifactClassEnum, String, String, String, String, String, String, Uri, String, String, Nullable<Int32>, Boolean, String, String, String, String, String, String, String, Dictionary<String, FhirStructureDefMapping>, Dictionary<String, List<FhirElementDefMapping>>)
Initializes a new instance of the Fhir
Declaration
public FhirComplex(FhirArtifactClassEnum artifactType, string id, string elementName, string sliceName, string path, string explicitName, string version, Uri url, string publicationStatus, string standardStatus, int? fmmLevel, bool isExperimental, string shortDescription, string purpose, string comment, string validationRegEx, string narrative, string narrativeStatus, string fhirVersion, Dictionary<string, FhirStructureDefMapping> mappings, Dictionary<string, List<FhirElementDefMapping>> rootElementMappings)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
artifactType | Type of artifact this complex object represents. |
System. |
id | The id of this resource/data type/extension. |
System. |
elementName | The element name this model is defined by (e.g., the path to a backbone element). |
System. |
sliceName | Name of this slice. |
System. |
path | Path to this definition. |
System. |
explicitName | Explicit name for this complex structure, if provided. |
System. |
version | Version of this definition. |
Uri | url | URL of the resource. |
System. |
publicationStatus | The publication status. |
System. |
standardStatus | The standard status. |
System. |
fmmLevel | The FHIR Maturity Model level. |
System. |
isExperimental | If this complex type is marked experimental. |
System. |
shortDescription | Information describing the short. |
System. |
purpose | The definition. |
System. |
comment | The comment. |
System. |
validationRegEx | Validation regex pattern for this definition. |
System. |
narrative | Narrative content for this object. |
System. |
narrativeStatus | Status of any included narrative content. |
System. |
fhirVersion | FHIR Version specified by this object. |
Dictionary<System. |
mappings | Mapping definitions for links to external specifications. |
Dictionary<System. |
rootElementMappings |
FhirComplex(FhirComplex)
Initializes a new instance of the Microsoft.Health.Fhir.CodeGenCommon.Models.FhirComplex class.
Declaration
public FhirComplex(FhirComplex source)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
source | Source for the. |
Properties
| Improve this Doc View SourceComponents
Gets the components.
Declaration
public Dictionary<string, FhirComplex> Components { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
The components. |
Constraints
Gets the constraints.
Declaration
public IEnumerable<FhirConstraint> Constraints { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Fhir |
ConstraintsByKey
Gets the constraints by key.
Declaration
public Dictionary<string, FhirConstraint> ConstraintsByKey { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ContextElements
Gets the context elements.
Declaration
public List<string> ContextElements { get; }
Property Value
Type | Description |
---|---|
List<System. |
The context elements. |
Elements
Gets the elements.
Declaration
public Dictionary<string, FhirElement> Elements { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
The elements. |
ExplicitName
Gets the explicit name of this structure, if provided.
Declaration
public string ExplicitName { get; }
Property Value
Type | Description |
---|---|
System. |
InstanceOperations
Gets the instance operations.
Declaration
public Dictionary<string, FhirOperation> InstanceOperations { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
The instance operations. |
IsAbstract
Gets a value indicating whether this object is abstract.
Declaration
public bool IsAbstract { get; }
Property Value
Type | Description |
---|---|
System. |
IsPlaceholder
Gets or sets a value indicating whether this object is placeholder.
Declaration
public bool IsPlaceholder { get; set; }
Property Value
Type | Description |
---|---|
System. |
True if this object is placeholder, false if not. |
Mappings
Gets the mappings - external specifications that the content is mapped to.
Declaration
public Dictionary<string, FhirStructureDefMapping> Mappings { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
Parent
Gets or sets the parent.
Declaration
public FhirComplex Parent { get; set; }
Property Value
Type | Description |
---|---|
Fhir |
ParentArtifactClass
Gets or sets the parent artifact class.
Declaration
public FhirArtifactClassEnum ParentArtifactClass { get; set; }
Property Value
Type | Description |
---|---|
Fhir |
ResolvedParentDirective
Gets or sets the resolved parent directive.
Declaration
public string ResolvedParentDirective { get; set; }
Property Value
Type | Description |
---|---|
System. |
RootElement
Gets the root element.
Declaration
public FhirElement RootElement { get; }
Property Value
Type | Description |
---|---|
Fhir |
RootElementMappings
Gets the root element mappings.
Declaration
public Dictionary<string, List<FhirElementDefMapping>> RootElementMappings { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
SearchParameters
Gets the search parameters.
Declaration
public Dictionary<string, FhirSearchParam> SearchParameters { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
Search Parameters defined on this resource. |
SliceName
Gets or sets the name of the slice.
Declaration
public string SliceName { get; set; }
Property Value
Type | Description |
---|---|
System. |
The name of the slice. |
TypeOperations
Gets the type operations.
Declaration
public Dictionary<string, FhirOperation> TypeOperations { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
The type operations. |
Methods
| Improve this Doc View SourceAddComponentFromElement(String)
Adds a component from an element.
Declaration
public bool AddComponentFromElement(string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Name of the element. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
AddConstraint(FhirConstraint, Boolean)
Adds a constraint.
Declaration
public void AddConstraint(FhirConstraint constraint, bool copyIfNew = false)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
constraint | The constraint. |
System. |
copyIfNew | (Optional) True to copy if new. |
AddContextElement(String)
Adds a context element.
Declaration
public void AddContextElement(string element)
Parameters
Type | Name | Description |
---|---|---|
System. |
element | The element. |
AddOperation(FhirOperation)
Adds an operation.
Declaration
public void AddOperation(FhirOperation operation)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
operation | The operation. |
AddRootElement(FhirElement)
Adds a root element.
Declaration
public void AddRootElement(FhirElement element)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
element | The element. |
AddSearchParameter(FhirSearchParam)
Adds a search parameter.
Declaration
public void AddSearchParameter(FhirSearchParam searchParam)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
searchParam | The search parameter. |
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>, Boolean, Boolean, Dictionary<String, ValueSetReferenceInfo>, Dictionary<String, FhirNodeInfo>, Dictionary<String, FhirCapSearchParam>, Dictionary<String, FhirCapSearchParam>, Dictionary<String, FhirCapOperation>, Dictionary<String, FhirCapOperation>, Boolean)
Deep copy - cannot use Clone because of needed parameters.
Declaration
public FhirComplex DeepCopy(Dictionary<string, string> primitiveTypeMap, bool copySlicing, bool canHideParentFields, Dictionary<string, ValueSetReferenceInfo> valueSetReferences, Dictionary<string, FhirNodeInfo> typeMapByPath, Dictionary<string, FhirCapSearchParam> supportedSearchParams = null, Dictionary<string, FhirCapSearchParam> serverSearchParams = null, Dictionary<string, FhirCapOperation> supportedOperations = null, Dictionary<string, FhirCapOperation> serverOperations = null, bool includeExperimental = false)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System. |
primitiveTypeMap | The primitive type map. |
System. |
copySlicing | True to copy slicing. |
System. |
canHideParentFields | True if can hide parent fields, false if not. |
Dictionary<System. |
valueSetReferences | Value Set URLs and lists of FHIR paths that reference them. |
Dictionary<System. |
typeMapByPath | Type mappings by path. |
Dictionary<System. |
supportedSearchParams | (Optional) Options for controlling the supported search. |
Dictionary<System. |
serverSearchParams | (Optional) Options for controlling the server search. |
Dictionary<System. |
supportedOperations | (Optional) The supported operations. |
Dictionary<System. |
serverOperations | (Optional) The server operations. |
System. |
includeExperimental | (Optional) True to include, false to exclude the experimental. |
Returns
Type | Description |
---|---|
Fhir |
A FhirComplex. |
GetParentAndFieldName(String, String[], String[], out FhirComplex, out String, out String)
Gets the parent and field name.
Declaration
public bool GetParentAndFieldName(string url, string[] idComponents, string[] pathComponents, out FhirComplex parent, out string field, out string sliceName)
Parameters
Type | Name | Description |
---|---|---|
System. |
url | URL of the resource. |
System. |
idComponents | The id components. |
System. |
pathComponents | The path components. |
Fhir |
parent | [out] The parent. |
System. |
field | [out] The field. |
System. |
sliceName | [out] Name of the slice. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetExplicitName(String, out String, Int32)
Attempts to get an explicit name for a component path.
Declaration
public bool TryGetExplicitName(string path, out string explicitName, int startIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Name of the element. |
System. |
explicitName | [out] Explicit name for this complex structure, if provided. |
System. |
startIndex | (Optional) The start index. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |