/// <summary>Factory method for creating a template parameter.</summary> /// <remarks>Factory method for creating a template parameter.</remarks> /// <param name="name">- the type name of the message part</param> /// <returns>- the newly-constructed message part</returns> public static Ca.Infoway.Messagebuilder.Xml.MessagePart CreateTemplateParameter(string name) { Ca.Infoway.Messagebuilder.Xml.MessagePart part = new Ca.Infoway.Messagebuilder.Xml.MessagePart(name); part.TemplateParameter = true; return(part); }
private String GetCategory(MessagePart messagePart) { String prefix = Ca.Infoway.Messagebuilder.StringUtils.Left(messagePart.Name, 4); if ("PRPA".Equals(prefix)) { return("cr"); } else if ("PRLO".Equals(prefix)) { return("lr"); } else if ("PRPM".Equals(prefix)) { return("pr"); } else if ("FICR".Equals(prefix)) { return("claims"); } else if ("QUCR".Equals(prefix)) { return("claims"); } else if ("COCT".Equals(prefix)) { return("common"); } else if ("MCAI".Equals(prefix)) { return("common"); } else if ("MCCI".Equals(prefix)) { return("common"); } else if ("MFMI".Equals(prefix)) { return("common"); } else if ("QUQI".Equals(prefix)) { return("common"); } else if ("RCMR".Equals(prefix)) { return("consent"); } else if ("COMT".Equals(prefix)) { return("iehr"); } else if ("REPC".Equals(prefix)) { return("iehr"); } else if ("POIZ".Equals(prefix)) { return("iehr"); } else if ("POLB".Equals(prefix)) { return("lab"); } else if ("POME".Equals(prefix)) { return("pharm"); } else if ("PORR".Equals(prefix)) { return("pharm"); } else if ("PORX".Equals(prefix)) { return("pharm"); } else { System.Console.Out.WriteLine(prefix); return(""); } }
/// <summary>Factory method for creating an abstract message part.</summary> /// <remarks>Factory method for creating an abstract message part.</remarks> /// <param name="name">- the type name of the message part</param> /// <returns>- the newly-constructed message part</returns> public static Ca.Infoway.Messagebuilder.Xml.MessagePart CreateAbstractPart(string name) { Ca.Infoway.Messagebuilder.Xml.MessagePart part = new Ca.Infoway.Messagebuilder.Xml.MessagePart(name); part.IsAbstract = true; return(part); }