예제 #1
0
        public virtual void ShouldGetHl7TypeName()
        {
            Hl7TypeName typeName = StandardDataType.AD_BASIC.TypeName;

            Assert.AreEqual("AD.BASIC", typeName.ToString(), "name");
            Assert.AreEqual("AD", typeName.UnspecializedName, "unqualified name");
        }
예제 #2
0
        private bool ContainerOfTn(string fromDataTypeName)
        {
            bool containerOfTn             = false;
            IList <Hl7TypeName> parameters = Hl7TypeName.Parse(fromDataTypeName).Parameters;

            if (parameters != null && !parameters.IsEmpty())
            {
                foreach (Hl7TypeName parameter in parameters)
                {
                    if (StandardDataType.TN.RootType.Equals(parameter.RootName))
                    {
                        containerOfTn = true;
                    }
                }
            }
            return(containerOfTn);
        }