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 |
---|---|---|
Fhir |
source |
FhirSlicing(String, Uri, String, Boolean, FhirSlicing.FhirSlicingRule, Dictionary<String, FhirSliceDiscriminatorRule>, List<FhirComplex>, HashSet<String>)
Initializes a new instance of the Fhir
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. |
definedById | The identifier of the defined by. |
Uri | definedByUrl | The defined by URL. |
System. |
description | The description. |
System. |
isOrdered | True if ordered, false if not. |
Fhir |
slicingRules | Rules associated with this slicing group. |
Dictionary<System. |
discriminatorRules | The discriminator rules for this slicing group. |
List<Fhir |
slices | The slices. |
Hash |
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 Fhir
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. |
definedById | The identifier of the defined by. |
Uri | definedByUrl | The defined by URL. |
System. |
description | The description. |
System. |
isOrdered | True if ordered, false if not. |
System. |
fieldOrder | The field order. |
Fhir |
slicingRules | Rules associated with this slicing group. |
Dictionary<System. |
discriminatorRules | The discriminator rules for this slicing group. |
List<Fhir |
slices | The slices. |
Hash |
slicesInDifferential | The slices in differential. |
FhirSlicing(String, Uri, String, Nullable<Boolean>, String, IEnumerable<FhirSliceDiscriminatorRule>)
Initializes a new instance of the Fhir
Declaration
public FhirSlicing(string definedById, Uri definedByUrl, string description, bool? isOrdered, string slicingRules, IEnumerable<FhirSliceDiscriminatorRule> discriminatorRules)
Parameters
Type | Name | Description |
---|---|---|
System. |
definedById | The identifier of the defined by. |
Uri | definedByUrl | The defined by URL. |
System. |
description | The description. |
System. |
isOrdered | True if ordered, false if not. |
System. |
slicingRules | Rules associated with this slicing group. |
IEnumerable<Fhir |
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. |
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. |
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. |
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. |
The field order. |
HasDifferentialSlices
Gets a value indicating whether this object has differential slices.
Declaration
public bool HasDifferentialSlices { get; }
Property Value
Type | Description |
---|---|
System. |
IsOrdered
Gets a value indicating whether elements must be in same order as slices.
Declaration
public bool IsOrdered { get; }
Property Value
Type | Description |
---|---|
System. |
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. |
sliceName | Name of the slice. |
Property Value
Type | Description |
---|---|
Fhir |
The indexed item. |
Slices
Gets the slices.
Declaration
public List<FhirComplex> Slices { get; }
Property Value
Type | Description |
---|---|
List<Fhir |
The slices. |
SlicingRules
Gets how slices are interpreted when evaluating an instance.
Declaration
public FhirSlicing.FhirSlicingRule SlicingRules { get; }
Property Value
Type | Description |
---|---|
Fhir |
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. |
sliceName | Name of the slice. |
Fhir |
slice | The slice. |
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>)
Deep copy.
Declaration
public FhirSlicing DeepCopy(Dictionary<string, string> primitiveTypeMap, bool copySlicing, bool canHideParentFields, Dictionary<string, ValueSetReferenceInfo> valueSetReferences)
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 | [in,out] Value Set URLs and lists of FHIR paths that reference them. |
Returns
Type | Description |
---|---|
Fhir |
A FhirSlicing. |
HasSlice(String)
Query if 'name' has slice.
Declaration
public bool HasSlice(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name. |
Returns
Type | Description |
---|---|
System. |
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. |
name | The name. |
Returns
Type | Description |
---|---|
System. |
True if slice in differential, false if not. |
SetInDifferential(String)
Sets in differential.
Declaration
public void SetInDifferential(string sliceName)
Parameters
Type | Name | Description |
---|---|---|
System. |
sliceName | Name of the slice. |