All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ======================================
You can use %Z.tcp.open(^!,ip_address,port) where ip_address is (for example) "128.2.0.146" and port is (for example) "3200". In this situation the prefex ! is open to the socket connection, and "hello there"_D(13)_D(10)^! would send the message "hello there" along with a linefeed/carriage return to whoever is listening on the other side. Conversely, !^X would take whatever is being sent from the connection and put it in the variable X. From the other side - say you are using VB - you could use SocketWrench freeware to assist in the TCP/IP connectivity, or tools in VB .NET that make this kind of connection relatively easy. Needless to say you need some protocol and parsing for both sides to communicate. Meditech, in OPS, has some built in `open systems' communication capabilities - whereby a `listener' can be set up on the Meditech side that will evoke some user designated Magic program if any communication is `heard' on a specified TCP/IP address/port. For this you will need some Magic skills. >>> "Henry Hansen" <[EMAIL PROTECTED]> 03/31/06 4:45 PM >>> All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== After reading the list server archives, I was encouraged to see one possible way of Meditech interop with other applications is to read/write from a socket inside an NPR report. Here is a snippet from that thread: Subject: [MEDITECH-L] Z.tcp.open in Client/Server Yes there is. I got this to work: ZZ%OP(!,xxx.xxx.xxx.xxx.pppp_"S") <open statement> ZZ%CL(!) <close statement> ~~~ I've tried this, and the ZZ%OP cannot be found when translating the macro. I'm beginning to suspect that Meditech has neutered CS so badly that very few good things will work. Any examples of reading / writing from sockets would be the real cat's pajamas, and would make it possible to write a report in NPR which incorporates data from a SQL database. Thank you, Henry Hansen @ Palliser Health. _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l
