public virtual void ShouldGetHl7TypeName() { Hl7TypeName typeName = StandardDataType.AD_BASIC.TypeName; Assert.AreEqual("AD.BASIC", typeName.ToString(), "name"); Assert.AreEqual("AD", typeName.UnspecializedName, "unqualified name"); }
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); }