public static DPersonName FromEastenName(string pyFamilyName, string pyFirstName, string familyName, string firstName) { DPersonName name = new DPersonName(null); return(name); }
public static DPersonName FromDicomString(string strPersonName) { if (strPersonName == null) { return(null); } DPersonName name = new DPersonName(null); bool endwithequal; if (strPersonName.EndsWith("=")) { endwithequal = true; } else { endwithequal = false; } //if (strPersonName.Length > 0) //{ // if ((int)strPersonName[0] >= 128) strPersonName = GroupDelimiter + strPersonName; //} string[] gList = strPersonName.Split(GroupDelimiter); if (endwithequal) { gList[gList.Length - 2] = gList[gList.Length - 2] + "="; } if (gList.Length > 0) { string strGroup = gList[0]; string[] cList = strGroup.Split(ComponentDelimiter); } if (gList.Length > 1) { string strGroup = gList[1]; string[] cList = strGroup.Split(ComponentDelimiter); } if (gList.Length > 2) { string strGroup = gList[2]; string[] cList = strGroup.Split(ComponentDelimiter); } return(name); }