Show / Hide Table of Contents

Class FhirSlicing

FHIR Slicing information.

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

Constructors

| Improve this Doc View Source

FhirSlicing(FhirSlicing)

Declaration
public FhirSlicing(FhirSlicing source)
Parameters
Type Name Description
FhirSlicing source
| Improve this Doc View 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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

DefinedById

Gets the identifier of the defined by.

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

The identifier of the defined by.

| Improve this Doc View Source

DefinedByUrl

Gets URL of the defined by.

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

The defined by URL.

| Improve this Doc View Source

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).

| Improve this Doc View Source

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.

| Improve this Doc View Source

FieldOrder

Gets the field order.

Declaration
public int FieldOrder { get; }
Property Value
Type Description
System.Int32

The field order.

| Improve this Doc View Source

HasDifferentialSlices

Gets a value indicating whether this object has differential slices.

Declaration
public bool HasDifferentialSlices { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

Slices

Gets the slices.

Declaration
public List<FhirComplex> Slices { get; }
Property Value
Type Description
List<FhirComplex>

The slices.

| Improve this Doc View Source

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 Source

AddSlice(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.

| 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>, 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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

SetInDifferential(String)

Sets in differential.

Declaration
public void SetInDifferential(string sliceName)
Parameters
Type Name Description
System.String sliceName

Name of the slice.

  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • FhirSlicing(FhirSlicing)
    • FhirSlicing(String, Uri, String, Boolean, FhirSlicing.FhirSlicingRule, Dictionary<String, FhirSliceDiscriminatorRule>, List<FhirComplex>, HashSet<String>)
    • FhirSlicing(String, Uri, String, Boolean, Int32, FhirSlicing.FhirSlicingRule, Dictionary<String, FhirSliceDiscriminatorRule>, List<FhirComplex>, HashSet<String>)
    • FhirSlicing(String, Uri, String, Nullable<Boolean>, String, IEnumerable<FhirSliceDiscriminatorRule>)
  • Properties
    • DefinedById
    • DefinedByUrl
    • Description
    • DiscriminatorRules
    • FieldOrder
    • HasDifferentialSlices
    • IsOrdered
    • Item[String]
    • Slices
    • SlicingRules
  • Methods
    • AddSlice(String, FhirComplex)
    • Clone()
    • DeepCopy(Dictionary<String, String>, Boolean, Boolean, Dictionary<String, ValueSetReferenceInfo>)
    • HasSlice(String)
    • IsSliceInDifferential(String)
    • SetInDifferential(String)
Back to top Generated by DocFX