Esempio n. 1
0
 /// <summary>
 /// The write to.
 /// </summary>
 /// <param name="target">
 /// The target.
 /// </param>
 public void WriteTo(XmlWriter target)
 {
     target.WriteStartElement(nodeName.LocalName, nodeName.NamespaceName);
     try
     {
         HL7Writer.WriteHL7(target, XmlCreator.CreateMsh(parameters));
         HL7Writer.WriteHL7(target, XmlCreator.CreateMsa(parameters, batchFatalReference));
         if (errors != null)
         {
             foreach (var obj2 in errors)
             {
                 HL7Writer.WriteHL7(target, obj2);
             }
         }
     }
     finally
     {
         target.WriteEndElement();
     }
 }