Class FhirSlicing
FHIR Slicing information.
Inheritance
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Models
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public class FhirSlicing : ICloneable
Constructors
| Improve this Doc View SourceFhirSlicing(FhirSlicing)
Declaration
public FhirSlicing(FhirSlicing source)
Parameters
Type | Name | Description |
---|---|---|
FhirSlicing | source |
FhirSlicing(String, Uri, String, Boolean, FhirSlicing.FhirSlicingRule, Dictionary<String, FhirSliceDiscriminatorRule>, List<FhirComplex>, HashSet<String>)
Initializes a new instance of the FhirSlicing class.
Declaration
public FhirSlicing(string definedById, Uri definedByUrl, string description, bool isOrdered, FhirSlicing.FhirSlicingRule slicingRules, Dictionary<string, FhirSliceDiscriminatorRule> discriminatorRules, List<FhirComplex> slices, HashSet<string> slicesInDifferential)
Parameters
Type | Name | Description |
---|---|---|
System.String | definedById | The identifier of the defined by. |
Uri | definedByUrl | The defined by URL. |
System.String | description | The description. |
System.Boolean | isOrdered | True if ordered, false if not. |
FhirSlicing.FhirSlicingRule | slicingRules | Rules associated with this slicing group. |
Dictionary<System.String, FhirSliceDiscriminatorRule> | discriminatorRules | The discriminator rules for this slicing group. |
List<FhirComplex> | slices | The slices. |
HashSet<System.String> | slicesInDifferential | The slices in differential. |
FhirSlicing(String, Uri, String, Boolean, Int32, FhirSlicing.FhirSlicingRule, Dictionary<String, FhirSliceDiscriminatorRule>, List<FhirComplex>, HashSet<String>)
Initializes a new instance of the FhirSlicing class.
Declaration
public FhirSlicing(string definedById, Uri definedByUrl, string description, bool isOrdered, int fieldOrder, FhirSlicing.FhirSlicingRule slicingRules, Dictionary<string, FhirSliceDiscriminatorRule> discriminatorRules, List<FhirComplex> slices, HashSet<string> slicesInDifferential)
Parameters
Type | Name | Description |
---|---|---|
System.String | definedById | The identifier of the defined by. |
Uri | definedByUrl | The defined by URL. |
System.String | description | The description. |
System.Boolean | isOrdered | True if ordered, false if not. |
System.Int32 | fieldOrder | The field order. |
FhirSlicing.FhirSlicingRule | slicingRules | Rules associated with this slicing group. |
Dictionary<System.String, FhirSliceDiscriminatorRule> | discriminatorRules | The discriminator rules for this slicing group. |
List<FhirComplex> | slices | The slices. |
HashSet<System.String> | slicesInDifferential | The slices in differential. |
FhirSlicing(String, Uri, String, Nullable<Boolean>, String, IEnumerable<FhirSliceDiscriminatorRule>)
Initializes a new instance of the FhirSlicing class.
Declaration
public FhirSlicing(string definedById, Uri definedByUrl, string description, bool? isOrdered, string slicingRules, IEnumerable<FhirSliceDiscriminatorRule> discriminatorRules)
Parameters
Type | Name | Description |
---|---|---|
System.String | definedById | The identifier of the defined by. |
Uri | definedByUrl | The defined by URL. |
System.String | description | The description. |
System.Nullable<System.Boolean> | isOrdered | True if ordered, false if not. |
System.String | slicingRules | Rules associated with this slicing group. |
IEnumerable<FhirSliceDiscriminatorRule> | discriminatorRules | The discriminator rules for this slicing group. |
Properties
| Improve this Doc View SourceDefinedById
Gets the identifier of the defined by.
Declaration
public string DefinedById { get; }
Property Value
Type | Description |
---|---|
System.String | The identifier of the defined by. |
DefinedByUrl
Gets URL of the defined by.
Declaration
public Uri DefinedByUrl { get; }
Property Value
Type | Description |
---|---|
Uri | The defined by URL. |
Description
Gets the text description of how slicing works (or not).
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The text description of how slicing works (or not). |
DiscriminatorRules
Gets the element values that are used to distinguish the slices.
Declaration
public Dictionary<string, FhirSliceDiscriminatorRule> DiscriminatorRules { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, FhirSliceDiscriminatorRule> | The element values that are used to distinguish the slices. |
FieldOrder
Gets the field order.
Declaration
public int FieldOrder { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The field order. |
HasDifferentialSlices
Gets a value indicating whether this object has differential slices.
Declaration
public bool HasDifferentialSlices { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOrdered
Gets a value indicating whether elements must be in same order as slices.
Declaration
public bool IsOrdered { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if elements must be in same order as slices, false if not. |
Item[String]
Indexer to get slices based on name.
Declaration
public FhirComplex this[string sliceName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | sliceName | Name of the slice. |
Property Value
Type | Description |
---|---|
FhirComplex | The indexed item. |
Slices
Gets the slices.
Declaration
public List<FhirComplex> Slices { get; }
Property Value
Type | Description |
---|---|
List<FhirComplex> | The slices. |
SlicingRules
Gets how slices are interpreted when evaluating an instance.
Declaration
public FhirSlicing.FhirSlicingRule SlicingRules { get; }
Property Value
Type | Description |
---|---|
FhirSlicing.FhirSlicingRule | How slices are interpreted when evaluating an instance. |
Methods
| Improve this Doc View SourceAddSlice(String, FhirComplex)
Adds a slice.
Declaration
public void AddSlice(string sliceName, FhirComplex slice)
Parameters
Type | Name | Description |
---|---|---|
System.String | sliceName | Name of the slice. |
FhirComplex | slice | The slice. |
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. |
DeepCopy(Dictionary<String, String>, Boolean, Boolean, Dictionary<String, ValueSetReferenceInfo>)
Deep copy.
Declaration
public FhirSlicing DeepCopy(Dictionary<string, string> primitiveTypeMap, bool copySlicing, bool canHideParentFields, Dictionary<string, ValueSetReferenceInfo> valueSetReferences)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System.String, System.String> | primitiveTypeMap | The primitive type map. |
System.Boolean | copySlicing | True to copy slicing. |
System.Boolean | canHideParentFields | True if can hide parent fields, false if not. |
Dictionary<System.String, ValueSetReferenceInfo> | valueSetReferences | [in,out] Value Set URLs and lists of FHIR paths that reference them. |
Returns
Type | Description |
---|---|
FhirSlicing | A FhirSlicing. |
HasSlice(String)
Query if 'name' has slice.
Declaration
public bool HasSlice(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.Boolean | True if slice, false if not. |
IsSliceInDifferential(String)
Query if 'name' is slice in differential.
Declaration
public bool IsSliceInDifferential(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.Boolean | True if slice in differential, false if not. |
SetInDifferential(String)
Sets in differential.
Declaration
public void SetInDifferential(string sliceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | sliceName | Name of the slice. |