// <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, JObject hl7metadata = null) { var xmld = HL7ToXmlConverter.ConvertToXmlDocument(sHL7, hl7metadata); if (xmld != null) { string json = JsonConvert.SerializeXmlNode(xmld); JObject o = JObject.Parse(json); return(o); } return(null); }
/// <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, JObject hl7metadata = null) { return(HL7ToXmlConverter.ConvertToXmlDocument(sHL7, hl7metadata).OuterXml); }