コード例 #1
0
ファイル: AmValidator.cs プロジェクト: nickvane/OpenEHR
        internal static bool ValidateCObject(CObject cObject, ITerminologyService terminologyService)
        {
            AmValidator amValidator = new AmValidator(terminologyService);

            try
            {
                amValidator.Validate(cObject);
            }
            catch (Exception ex)
            {
                if (ex.GetType() == typeof(RmInvariantException))
                    return false;
                else
                    throw ex;
            }

            return true;
        }
コード例 #2
0
        internal static bool ValidateCAttribute(CAttribute cAttribute, ITerminologyService terminologyService)
        {
            AmValidator amValidator = new AmValidator(terminologyService);

            try
            {
                amValidator.Validate(cAttribute);
            }
            catch (Exception ex)
            {
                if (ex.GetType() == typeof(RmInvariantException))
                {
                    return(false);
                }
                else
                {
                    throw ex;
                }
            }

            return(true);
        }
コード例 #3
0
ファイル: AmValidator.cs プロジェクト: nickvane/OpenEHR
        public static void Validate(Archetype archetype, ITerminologyService terminologyService)
        {
            AmValidator amValidator = new AmValidator(terminologyService);

            amValidator.ValidateArchetype(archetype);
        }
コード例 #4
0
        public static void Validate(Archetype archetype, ITerminologyService terminologyService)
        {
            AmValidator amValidator = new AmValidator(terminologyService);

            amValidator.ValidateArchetype(archetype);
        }