Esempio n. 1
0
        private bool Assert(Set<OpenEhr.AM.Archetype.Assertion.Assertion> assertions, string id)
        {
            if (assertions != null)
            {
                foreach (OpenEhr.AM.Archetype.Assertion.Assertion assertion in assertions)
                {
                    string pattern = ValidationUtility.AssertionRegExPattern(assertion);
                    if (pattern == null) continue;

                    if (Regex.Match(id, pattern, RegexOptions.Compiled).Success)
                        return true;
                }
            }
            return false;
        }