static ElementDefinition.BaseComponent createBaseComponent(FhirString maxElement, Integer minElement, FhirString pathElement)
        {
            var result = new ElementDefinition.BaseComponent()
            {
                MaxElement  = (FhirString)maxElement?.DeepCopy(),
                MinElement  = (Integer)minElement?.DeepCopy(),
                PathElement = (FhirString)pathElement?.DeepCopy()
            };

            result.SetCreatedBySnapshotGenerator();
            return(result);
        }