// <span class="code-SummaryComment"><summary></span> /// Converts an HL7 message into a JOject Object from it's XML representation of the same message. /// <span class="code-SummaryComment"></summary></span> /// <span class="code-SummaryComment"><param name="sHL7">The HL7 to convert</param></span> /// <span class="code-SummaryComment"><returns>JObject with root of hl7message</returns></span> public static JObject ConvertToJObject(string sHL7) { string json = JsonConvert.SerializeXmlNode(HL7ToXmlConverter.ConvertToXmlDocument(sHL7)); JObject o = JObject.Parse(json); return(o); }
/// <span class="code-SummaryComment"><summary></span> /// Converts an HL7 message into an XML representation of the same message. /// <span class="code-SummaryComment"></summary></span> /// <span class="code-SummaryComment"><param name="sHL7">The HL7 to convert</param></span> /// <span class="code-SummaryComment"><returns>XML String with root of hl7message</returns></span> public static string ConvertToXml(string sHL7) { return(HL7ToXmlConverter.ConvertToXmlDocument(sHL7).OuterXml); }