コード例 #1
0
        /// <summary>Adds a path and checks for changes to strongest binding level.</summary>
        /// <param name="elementPath">Full pathname of the file.</param>
        /// <param name="strength">   The strength of the value set binding to the given element.</param>
        public void AddPath(
            string elementPath,
            FhirElement.ElementDefinitionBindingStrength?strength)
        {
            _paths.Add(elementPath);

            if (strength == null)
            {
                return;
            }

            if (strength < _strongestBinding)
            {
                _strongestBinding = (FhirElement.ElementDefinitionBindingStrength)strength;
            }
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ValueSetReferenceInfo"/> class.
 /// </summary>
 public ValueSetReferenceInfo()
 {
     _paths            = new List <string>();
     _strongestBinding = FhirElement.ElementDefinitionBindingStrength.Example;
 }