public static MohawkCollege.EHR.gpmr.COR.TypeReference Parse(DatatypeRef dtr) { MohawkCollege.EHR.gpmr.COR.TypeReference retVal = new MohawkCollege.EHR.gpmr.COR.TypeReference(); retVal.Name = dtr.Name.Contains(".") ? dtr.Name.Substring(0, dtr.Name.IndexOf(".")) : dtr.Name; retVal.Flavor = dtr.Name.Contains(".") ? dtr.Name : null; // JF: Fixed the removal of the . if (dtr.SupplierBindingArgumentDatatype != null && dtr.SupplierBindingArgumentDatatype.Count > 0) { retVal.GenericSupplier = new List<MohawkCollege.EHR.gpmr.COR.TypeReference>(); foreach (DatatypeRef sba in dtr.SupplierBindingArgumentDatatype) retVal.GenericSupplier.Add(TypeReferenceParser.Parse(sba)); } return retVal; }
public static MohawkCollege.EHR.gpmr.COR.TypeReference Parse(DatatypeRef dtr) { MohawkCollege.EHR.gpmr.COR.TypeReference retVal = new MohawkCollege.EHR.gpmr.COR.TypeReference(); retVal.Name = dtr.Name.Contains(".") ? dtr.Name.Substring(0, dtr.Name.IndexOf(".")) : dtr.Name; retVal.Flavor = dtr.Name.Contains(".") ? dtr.Name : null; // JF: Fixed the removal of the . if (dtr.SupplierBindingArgumentDatatype != null && dtr.SupplierBindingArgumentDatatype.Count > 0) { retVal.GenericSupplier = new List <MohawkCollege.EHR.gpmr.COR.TypeReference>(); foreach (DatatypeRef sba in dtr.SupplierBindingArgumentDatatype) { retVal.GenericSupplier.Add(TypeReferenceParser.Parse(sba)); } } return(retVal); }