internal static string GetAckTypeFromRequest(string name, string version) { if (string.IsNullOrEmpty(name)) { return(null); } if (name.StartsWith("ACK")) { return(null); } string responseType = null; if (!PipeParser.ValidVersion(version)) { throw new HL7apiException("Invalid HL7 Version"); } NameValueCollection p = GetMapFromRequest(name, version); if (!p.AllKeys.Contains(name)) { return("ACK"); } responseType = p.Get(name); if (responseType == null) { return(null); } else { if (responseType.Split(' ').Length > 1) { responseType = responseType.Split(' ')[1]; } else { return(null); } } return(responseType); }