Exemplo n.º 1
0
		///<summary></summary>
		public static void Update(HL7DefMessage hL7DefMessage) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),hL7DefMessage);
				return;
			}
			Crud.HL7DefMessageCrud.Update(hL7DefMessage);
		}
Exemplo n.º 2
0
		///<summary></summary>
		public static long Insert(HL7DefMessage hL7DefMessage) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				hL7DefMessage.HL7DefMessageNum=Meth.GetLong(MethodBase.GetCurrentMethod(),hL7DefMessage);
				return hL7DefMessage.HL7DefMessageNum;
			}
			return Crud.HL7DefMessageCrud.Insert(hL7DefMessage);
		}
Exemplo n.º 3
0
        ///<summary>Gets the message control ID of the message we are attempting to send, for TCP/IP acknowledgment.</summary>
        public static string GetControlId(HL7Msg msg)
        {
            string retval = "";

            if (msg == null)
            {
                return(retval);
            }
            int        controlIdOrder = 0;
            MessageHL7 msgHl7         = new MessageHL7(msg.MsgText);  //creates the segments
            HL7Def     def            = HL7Defs.GetOneDeepEnabled();

            if (def == null)
            {
                return(retval);
            }
            HL7DefMessage hl7defmsg = null;

            for (int i = 0; i < def.hl7DefMessages.Count; i++)
            {
                if (def.hl7DefMessages[i].MessageType == msgHl7.MsgType)
                {
                    hl7defmsg = def.hl7DefMessages[i];
                    break;
                }
            }
            if (hl7defmsg == null)           //No message definition for this type of message in the enabled def
            {
                return(retval);
            }
            for (int s = 0; s < hl7defmsg.hl7DefSegments.Count; s++)       //get MSH segment
            {
                if (hl7defmsg.hl7DefSegments[s].SegmentName == SegmentNameHL7.MSH)
                {
                    for (int f = 0; f < hl7defmsg.hl7DefSegments[s].hl7DefFields.Count; f++)               //find messageControlId field in MSH segment def
                    {
                        if (hl7defmsg.hl7DefSegments[s].hl7DefFields[f].FieldName == "messageControlId")
                        {
                            controlIdOrder = hl7defmsg.hl7DefSegments[s].hl7DefFields[f].OrdinalPos;
                            break;
                        }
                    }
                    break;
                }
            }
            if (controlIdOrder == 0)           //No messageControlId defined for this MSH segment
            {
                return(retval);
            }
            for (int i = 0; i < msgHl7.Segments.Count; i++)       //get control ID from message located in MSH segment with field determined above
            {
                if (msgHl7.Segments[i].Name == SegmentNameHL7.MSH)
                {
                    retval = msgHl7.Segments[i].Fields[controlIdOrder].ToString();
                    break;
                }
            }
            return(retval);
        }
Exemplo n.º 4
0
 ///<summary></summary>
 public static void Update(HL7DefMessage hL7DefMessage)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), hL7DefMessage);
         return;
     }
     Crud.HL7DefMessageCrud.Update(hL7DefMessage);
 }
Exemplo n.º 5
0
 ///<summary></summary>
 public static long Insert(HL7DefMessage hL7DefMessage)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         hL7DefMessage.HL7DefMessageNum = Meth.GetLong(MethodBase.GetCurrentMethod(), hL7DefMessage);
         return(hL7DefMessage.HL7DefMessageNum);
     }
     return(Crud.HL7DefMessageCrud.Insert(hL7DefMessage));
 }
Exemplo n.º 6
0
Arquivo: HL7Def.cs Projeto: mnisl/OD
		public void AddMessage(HL7DefMessage msg,MessageTypeHL7 messageType,MessageStructureHL7 messageStructure,InOutHL7 inOrOut,int itemOrder,string note) {
			if(hl7DefMessages==null) {
				hl7DefMessages=new List<HL7DefMessage>();
			}
			msg.MessageType=messageType;
			msg.MessageStructure=messageStructure;
			msg.InOrOut=inOrOut;
			msg.ItemOrder=itemOrder;
			msg.Note=note;
			this.hl7DefMessages.Add(msg);
		}
Exemplo n.º 7
0
 public void AddMessage(HL7DefMessage msg, MessageTypeHL7 messageType, MessageStructureHL7 messageStructure, InOutHL7 inOrOut, int itemOrder, string note)
 {
     if (hl7DefMessages == null)
     {
         hl7DefMessages = new List <HL7DefMessage>();
     }
     msg.MessageType      = messageType;
     msg.MessageStructure = messageStructure;
     msg.InOrOut          = inOrOut;
     msg.ItemOrder        = itemOrder;
     msg.Note             = note;
     this.hl7DefMessages.Add(msg);
 }
Exemplo n.º 8
0
 public void AddMessage(HL7DefMessage msg, MessageTypeHL7 messageType, MessageStructureHL7 messageStructure, InOutHL7 inOrOut, int itemOrder)
 {
     AddMessage(msg, messageType, messageStructure, inOrOut, itemOrder, "");
 }
Exemplo n.º 9
0
Arquivo: HL7Def.cs Projeto: mnisl/OD
		public void AddMessage(HL7DefMessage msg,MessageTypeHL7 messageType,MessageStructureHL7 messageStructure,InOutHL7 inOrOut,int itemOrder) {
			AddMessage(msg,messageType,messageStructure,inOrOut,itemOrder,"");
		}
Exemplo n.º 10
0
 public void AddMessage(HL7DefMessage msg, MessageTypeHL7 messageType, EventTypeHL7 eventType, InOutHL7 inOrOut, int itemOrder)
 {
     AddMessage(msg, messageType, eventType, inOrOut, itemOrder, "");
 }
Exemplo n.º 11
0
		public void AddMessage(HL7DefMessage msg,MessageTypeHL7 messageType,EventTypeHL7 eventType,InOutHL7 inOrOut,int itemOrder) {
			AddMessage(msg,messageType,eventType,inOrOut,itemOrder,"");
		}