Class ElementDefinitionSlicing
Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set).
Implements
Inherited Members
Namespace: fhirCsR2.Models
Assembly: fhirCsR2.dll
Syntax
public class ElementDefinitionSlicing : Element, IFhirJsonSerializable
Properties
| Improve this Doc View Source_Description
Extension container element for Description
Declaration
public Element _Description { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Discriminator
Extension container element for Discriminator
Declaration
public List<Element> _Discriminator { get; set; }
Property Value
Type | Description |
---|---|
fhir |
_Ordered
Extension container element for Ordered
Declaration
public Element _Ordered { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Rules
Extension container element for Rules
Declaration
public Element _Rules { get; set; }
Property Value
Type | Description |
---|---|
Element |
Description
A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System. |
Discriminator
Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.
Declaration
public List<string> Discriminator { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Ordered
If the matching elements have to occur in the same order as defined in the profile.
Declaration
public bool? Ordered { get; set; }
Property Value
Type | Description |
---|---|
System. |
Rules
Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.
Declaration
public string Rules { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceDeserializeJson(ref Utf8JsonReader, JsonSerializerOptions)
Deserialize a JSON object
Declaration
public void DeserializeJson(ref Utf8JsonReader reader, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options |
DeserializeJsonProperty(ref Utf8JsonReader, JsonSerializerOptions, String)
Deserialize a JSON property
Declaration
public void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options | |
System. |
propertyName |
SerializeJson(Utf8JsonWriter, JsonSerializerOptions, Boolean)
Serialize to a JSON object
Declaration
public void SerializeJson(Utf8JsonWriter writer, JsonSerializerOptions options, bool includeStartObject = true)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
writer | |
Json |
options | |
System. |
includeStartObject |