HL7 via SFTP

By: Johnathon Wright on: February 20, 2013

This page documents the process of creating an HL7 interface between my client's "micro-EMR" and a medical laboratory named "BioReference":bioreference.com

BioReference presented me with two interface options: * install software on my windows machine. Their software would dump files into a directory of my choosing. * SFTP

Since our application runs on Linux, I had to choose SFTP. Per my contact, Raxit, they did not have any other available interfaces.

h2. On whether or not SFTP is a good idea

I recently compared passing messages via FTP to sending emails by opening up a share and typing those messages in notepad. It's a good analogy -- I can say it was me that sent it, and it probably was, but in the end, even though email is obviously just as insecure if not less secure, the lack of a "sender" really bothers me.

h3. Pros * widely used * easy-ish to implement (though I have to check for new files and that's kinda sloppy... ) * Of the one option presented to me, this was one of them. * Unlike SMTP, messages will not sit on a business partner's machine, waiting for me to retrieve them. * SFTP sits on top of SSH which is unquestionably very secure in terms of preventing outside parties from reading the data while in transmission, barring a man-in-the-middle attack.

h3. Cons * there is no queue to be checked; no intrinsic marking things as read. * If the server goes, this goes too, and no way to know what was lost. * though in the end, this app isn't (to use NASA terminology) "man-rated" (no human lives depend on it.) * not clear to me that it conforms strictly to HIPPA standards. However, all the major companies use it, and they have more lawyers than my client, so it seems safe to assume it has been vetted. * no way to send an ACK * I am supposed to log who sent the file. Unlike SMTP or whatever, there is no listed sender. (Though of course, SMTP senders can be faked... )

h2. Security Concerns

Do I really want to give these people a user account on my server? NO.

Under normal FTP conditions (or SFTP), a user who FTPs into your machine will have read-only access to many, many files, such as those in /var and /etc. Since locking down Linux is not my full time job, this seems like a pretty terrible idea to me. Fortunately, the people at RackSpace (long may they live) had some suggestions to help me make this more secure.

change port Change your SFTP port to something obscure to decrease attempts to access your machine.

shroot is a tool that allows you to change the apparent root for a user so that users see only the files in a specific directory, and nothing outside it.

h2. Other Utilities

tripwire is a program that I may be able to use to simulate a better interface... it should be able to watch this directory and notify my app, perhaps by posting to a URL or something, that a new file is ready for processing.

h2. Implementation

h2. References

http://instagrati.com/tag/subsystem-request-failed-on-channel-0/ http://www.faqs.org/docs/securing/chap15sec122.html http://www.pureftpd.org/project/pure-ftpd





Comments:

hermes said: A lot of thanks for your whole effort on this site. Betty take interest in engaging in internet research and it is obvious why. All of us learn all of the lively form you present priceless guidelines through the website and therefore attract response from other people about this situation and our own simple princess is in fact starting to learn so much. Have fun with the rest of the new year. You are doing a very good job. hermes [url=http://www.hermesonlineshop.com]hermes[/url]

goyard handbags said: I intended to create you the bit of observation to say thanks again on your extraordinary strategies you've shared here. It has been really extremely generous with people like you in giving unreservedly exactly what a lot of people could possibly have supplied for an e-book to help make some profit for themselves, primarily now that you could have tried it in case you decided. The inspiring ideas as well acted as the fantastic way to be certain that other individuals have a similar keenness like mine to learn lots more when it comes to this condition. Certainly there are numerous more pleasurable periods in the future for folks who look into your blog post. goyard handbags

nike 270 said: I intended to write you a very small observation to thank you very much the moment again with your amazing pointers you have shared on this website. It is simply shockingly open-handed of you giving unhampered all many individuals could have offered as an ebook in order to make some dough for their own end, especially considering the fact that you might have tried it if you ever considered necessary. These secrets also worked to be a easy way to be sure that the rest have similar interest similar to my very own to understand a whole lot more with regards to this issue. I'm certain there are millions of more fun situations in the future for individuals who view your site. nike 270

cheap jordans said: I am glad for commenting to let you know of the superb encounter my wife's daughter had visiting your site. She noticed lots of issues, most notably what it's like to have a great coaching character to get many others without hassle completely grasp chosen grueling subject matter. You actually did more than our own expected results. Many thanks for churning out these good, safe, edifying not to mention fun tips on this topic to Jane. cheap jordans

nike air max 2018 said: My spouse and i got absolutely happy when Jordan could deal with his homework from the ideas he discovered from your own web pages. It is now and again perplexing to just happen to be making a gift of ideas that the rest might have been trying to sell. And we also discover we have the website owner to give thanks to for this. These explanations you've made, the straightforward web site menu, the relationships you can aid to foster - it is many extraordinary, and it's leading our son and the family understand that subject is fun, and that is especially vital. Thanks for all the pieces! nike air max 2018

kevin durant shoes said: I simply wanted to compose a comment so as to say thanks to you for these magnificent steps you are posting at this site. My prolonged internet research has at the end of the day been compensated with pleasant know-how to talk about with my great friends. I 'd mention that many of us site visitors are truly fortunate to live in a magnificent place with many marvellous individuals with useful techniques. I feel very privileged to have seen your website and look forward to many more awesome minutes reading here. Thanks a lot again for everything. kevin durant shoes

off white hoodie said: I want to show my appreciation to the writer for bailing me out of this challenge. Just after exploring through the the net and seeing ideas which are not helpful, I believed my life was over. Living devoid of the strategies to the difficulties you have fixed as a result of your main guide is a serious case, and ones which may have negatively affected my career if I had not discovered the blog. Your actual understanding and kindness in maneuvering a lot of stuff was tremendous. I'm not sure what I would have done if I hadn't discovered such a stuff like this. I can also at this moment look ahead to my future. Thanks for your time very much for this reliable and sensible guide. I will not be reluctant to refer the sites to anyone who should receive assistance about this area. off white hoodie

cheap jordans said: You must take part in a contest for among the finest blogs on the web. I'll recommend this website! cheap jordans

lebron 16 said: There may be noticeably a bundle to learn about this. I assume you made sure good points in features also. lebron 16

supreme hoodie said: I found your blog web site on google and test a number of of your early posts. Proceed to maintain up the excellent operate. I simply further up your RSS feed to my MSN Information Reader. In search of forward to studying extra from you later on!? supreme hoodie

cheap jordans said: Your place is valueble for me. Thanks!? cheap jordans

kevin durant shoes said: It is best to participate in a contest for among the best blogs on the web. I will suggest this web site! kevin durant shoes

golden goose said: Would you be fascinated by exchanging links? golden goose

longchamp handbags said: Can I just say what a aid to find somebody who really knows what theyre speaking about on the internet. You definitely know the way to carry an issue to light and make it important. Extra folks have to read this and understand this side of the story. I cant believe youre not more common because you positively have the gift. longchamp handbags

golden goose sneakers said: The subsequent time I learn a blog, I hope that it doesnt disappoint me as a lot as this one. I mean, I do know it was my choice to learn, however I truly thought youd have one thing fascinating to say. All I hear is a bunch of whining about one thing that you would repair if you happen to werent too busy searching for attention. golden goose sneakers

jordan 12 said: You made some respectable points there. I appeared on the internet for the difficulty and found most people will associate with along with your website. jordan 12

kyrie 6 shoes said: This actually answered my downside, thanks! kyrie 6 shoes

balenciaga shoes said: An fascinating dialogue is value comment. I feel that it is best to write more on this subject, it may not be a taboo subject but generally individuals are not enough to talk on such topics. To the next. Cheers balenciaga shoes

balenciaga said: There is noticeably a bundle to find out about this. I assume you made certain nice factors in features also. balenciaga

supreme said: I was very happy to seek out this web-site.I needed to thanks to your time for this glorious learn!! I definitely enjoying every little bit of it and I've you bookmarked to take a look at new stuff you blog post. supreme

calvin klein said: I enjoy you because of every one of your effort on this blog. My mother loves setting aside time for investigation and it is simple to grasp why. My spouse and i notice all of the dynamic method you make very useful suggestions through your website and encourage participation from other people on that issue then our favorite daughter has always been starting to learn a great deal. Have fun with the rest of the year. You are always doing a very good job. calvin klein

jordan 1 off white said: A lot of thanks for every one of your work on this web site. Debby loves setting aside time for research and it is simple to grasp why. Most of us notice all about the compelling form you provide efficient solutions by means of this web blog and therefore invigorate contribution from people on the theme and our daughter is without question discovering a lot. Take pleasure in the rest of the year. You're doing a remarkable job. jordan 1 off white

stone island said: I'm also writing to let you be aware of of the fantastic discovery my cousin's princess undergone reading through your web site. She noticed too many issues, which included what it's like to possess a very effective giving mindset to get certain people without difficulty know precisely specific problematic subject areas. You really did more than our expected results. I appreciate you for producing such invaluable, safe, educational and even cool guidance on the topic to Gloria. stone island

moncler said: I'm also writing to make you understand what a remarkable experience my wife's child found viewing your blog. She came to find some details, which include what it is like to have an excellent helping style to have many people clearly master selected grueling subject matter. You really did more than readers' expectations. I appreciate you for producing these useful, trustworthy, explanatory and cool guidance on this topic to Mary. moncler

supreme new york said: I am just writing to make you understand what a exceptional discovery my princess obtained checking the blog. She realized lots of things, most notably how it is like to possess an excellent teaching heart to let many more with no trouble know several multifaceted matters. You truly exceeded my expected results. Thanks for presenting such beneficial, safe, informative and also fun guidance on that topic to Ethel. supreme new york

jordans said: I just wanted to jot down a small word to be able to express gratitude to you for those remarkable points you are writing at this website. My time consuming internet look up has now been honored with reputable concept to share with my visitors. I would tell you that we visitors actually are extremely lucky to exist in a useful place with so many special individuals with useful advice. I feel pretty happy to have seen the web page and look forward to many more enjoyable moments reading here. Thanks once again for all the details. jordans

yeezy boost 350 said: I actually wanted to write down a small note to be able to thank you for those superb facts you are showing on this website. My extensive internet search has at the end of the day been rewarded with wonderful tips to talk about with my co-workers. I would assume that we website visitors actually are unquestionably lucky to dwell in a wonderful network with so many lovely individuals with great pointers. I feel very blessed to have seen the site and look forward to really more awesome times reading here. Thank you once more for everything. yeezy boost 350

kobe 9 said: A lot of thanks for your own work on this site. My niece delights in working on research and it is easy to understand why. All of us hear all of the powerful ways you provide priceless thoughts through this web blog and even welcome participation from other individuals on the idea and our favorite simple princess is undoubtedly starting to learn so much. Enjoy the remaining portion of the new year. You have been conducting a really good job. kobe 9

yeezy said: I simply wanted to compose a brief remark so as to say thanks to you for some of the wonderful ideas you are showing on this site. My extensive internet search has finally been honored with awesome details to write about with my family. I 'd believe that we site visitors actually are unquestionably blessed to exist in a fantastic website with many perfect individuals with helpful secrets. I feel truly happy to have come across your weblog and look forward to so many more cool moments reading here. Thank you once again for everything. yeezy

yeezy 380 said: Needed to send you one very small note to finally say thank you as before for those fantastic ideas you have contributed in this case. It was quite wonderfully generous of you to provide easily just what a few individuals could possibly have marketed for an electronic book to end up making some cash for their own end, most notably considering that you might have done it if you desired. These techniques additionally served like a great way to know that many people have a similar zeal the same as my very own to grasp a good deal more around this issue. I'm sure there are millions of more pleasurable moments ahead for folks who looked at your site. yeezy 380

pandora outlet said: I actually wanted to develop a remark to appreciate you for these magnificent guidelines you are posting here. My extended internet lookup has finally been compensated with extremely good strategies to write about with my great friends. I would express that most of us visitors actually are undoubtedly fortunate to live in a good community with so many wonderful people with insightful advice. I feel pretty blessed to have seen your entire web page and look forward to tons of more exciting moments reading here. Thanks once again for everything. pandora outlet

off white x jordan 1 said: I simply needed to appreciate you once again. I am not sure the things that I might have tried in the absence of the type of advice revealed by you directly on such question. It has been an absolute fearsome setting in my circumstances, however , looking at the very professional technique you processed the issue forced me to weep for happiness. I'm just happier for your advice and thus expect you are aware of a great job you have been doing instructing the mediocre ones by way of your webpage. I am certain you have never met all of us. off white x jordan 1

bape hoodie said: Thank you a lot for providing individuals with a very spectacular possiblity to check tips from this site. It is often very pleasurable plus full of amusement for me and my office peers to search your blog minimum 3 times a week to read through the fresh guides you will have. And definitely, I'm also certainly satisfied with the eye-popping secrets served by you. Some 3 tips in this posting are truly the most suitable I have ever had. bape hoodie

yeezy boost 350 said: Thank you for all of your effort on this web page. Kate enjoys getting into investigation and it's really easy to see why. My partner and i notice all relating to the compelling ways you produce reliable tips and tricks by means of your web blog and even boost contribution from others on the area of interest while our princess is learning a lot of things. Have fun with the remaining portion of the new year. You are doing a glorious job. yeezy boost 350

lebron james shoes said: Needed to compose you a little note so as to give thanks again over the breathtaking strategies you have provided on this site. It's so surprisingly open-handed with people like you to supply easily all that a few people could possibly have made available as an electronic book to help make some dough for themselves, principally considering the fact that you might have tried it if you ever wanted. Those suggestions additionally worked to be the good way to fully grasp that other individuals have the same keenness the same as my very own to figure out much more pertaining to this problem. I am sure there are thousands of more enjoyable moments in the future for individuals who scan your blog post. lebron james shoes

yeezy boost 350 said: I and also my friends were found to be looking through the best solutions from the website and immediately I got a terrible suspicion I had not thanked the site owner for them. All of the guys appeared to be as a result glad to learn them and have without a doubt been making the most of those things. Appreciate your being so thoughtful and then for considering certain helpful subject matter most people are really wanting to be aware of. Our honest regret for not expressing gratitude to sooner. yeezy boost 350

jordan shoes said: I wanted to put you the little note so as to thank you the moment again for those great strategies you have contributed here. It was wonderfully generous with you to offer unreservedly exactly what many people would've made available as an e-book in order to make some cash on their own, certainly given that you might well have tried it in case you wanted. The basics in addition served as a easy way to fully grasp other people online have the identical desire really like my own to see a good deal more regarding this issue. I know there are millions of more fun sessions in the future for people who go through your blog. jordan shoes

stephen curry shoes said: A lot of thanks for all your valuable work on this web page. Ellie take interest in working on investigations and it's easy to see why. A lot of people know all concerning the powerful manner you convey sensible techniques on your blog and therefore attract contribution from some other people on this area of interest while our favorite girl is in fact studying a lot. Have fun with the rest of the new year. You're conducting a splendid job. stephen curry shoes

curry 7 shoes said: I'm just writing to let you understand of the superb discovery my wife's daughter found checking yuor web blog. She mastered many pieces, including what it is like to possess an excellent teaching character to get other people without difficulty grasp specified extremely tough topics. You truly did more than visitors' desires. Thanks for rendering these powerful, safe, informative and also easy guidance on this topic to Mary. curry 7 shoes

yeezy shoes said: I definitely wanted to write a small comment to thank you for all of the fantastic facts you are posting here. My considerable internet look up has finally been recognized with high-quality facts and techniques to talk about with my contacts. I would repeat that many of us website visitors are rather endowed to exist in a very good place with so many lovely individuals with good guidelines. I feel extremely lucky to have discovered your web pages and look forward to many more excellent minutes reading here. Thanks a lot again for all the details. yeezy shoes

air jordan said: I truly wanted to write down a remark so as to express gratitude to you for those marvelous hints you are giving on this website. My extended internet research has finally been recognized with pleasant insight to go over with my two friends. I would claim that we visitors are rather fortunate to dwell in a really good community with many marvellous individuals with useful principles. I feel somewhat fortunate to have used your entire site and look forward to many more cool moments reading here. Thanks a lot again for everything. air jordan

canada goose said: I would like to show my appreciation for your generosity giving support to persons that must have guidance on the field. Your real dedication to getting the message throughout appears to be extraordinarily powerful and have frequently allowed girls like me to reach their objectives. Your entire insightful information can mean this much a person like me and even further to my mates. Regards; from each one of us. canada goose

moncler said: Thank you for your entire effort on this site. My aunt enjoys doing investigation and it is easy to see why. A lot of people learn all about the dynamic tactic you provide very important solutions by means of the website and even increase participation from people on this idea then my simple princess is really becoming educated a lot of things. Enjoy the remaining portion of the year. You have been conducting a useful job. moncler

cheap jordans said: Thanks a lot for providing individuals with an extraordinarily special possiblity to check tips from this site. It really is very excellent and packed with fun for me and my office co-workers to visit the blog no less than thrice weekly to read through the newest stuff you will have. And lastly, I'm at all times fulfilled with your unbelievable methods you serve. Certain 4 ideas in this post are definitely the most beneficial we have all ever had. cheap jordans

moncler outlet said: I wanted to create you that tiny word just to thank you very much again on your wonderful opinions you have featured in this article. It's so particularly open-handed with people like you to give openly just what a number of us could have sold as an electronic book to help make some money for themselves, certainly considering the fact that you could possibly have tried it in the event you considered necessary. The ideas in addition worked as a good way to know that other people online have the identical dream similar to my own to find out a great deal more with regards to this problem. I think there are lots of more enjoyable times up front for folks who go through your blog. moncler outlet

kawhi leonard shoes said: I as well as my buddies came examining the nice guides located on your website and so instantly I got a terrible suspicion I had not expressed respect to the site owner for those secrets. Those people were definitely for that reason passionate to learn all of them and already have definitely been using them. We appreciate you turning out to be very helpful as well as for picking this form of good subject matter millions of individuals are really desirous to be informed on. My honest regret for not expressing appreciation to sooner. kawhi leonard shoes

westbrook shoes said: I wanted to write you a tiny word in order to give thanks again for your unique suggestions you've contributed above. This has been really seriously open-handed with people like you to provide extensively precisely what numerous people might have advertised for an e-book to end up making some bucks on their own, certainly seeing that you could possibly have tried it in the event you wanted. Those good ideas likewise acted to become a easy way to be sure that some people have the same eagerness just as my personal own to know the truth more and more in terms of this problem. I am certain there are several more fun situations ahead for individuals who browse through your blog. westbrook shoes

jordans said: I want to point out my admiration for your kind-heartedness giving support to folks that actually need help with this particular subject. Your real commitment to getting the solution all around had become extraordinarily invaluable and have always made professionals like me to realize their objectives. Your entire useful guide entails a whole lot a person like me and still more to my fellow workers. Many thanks; from all of us. jordans

balenciaga said: My wife and i got absolutely happy Edward managed to conclude his investigation by way of the ideas he received from your very own web page. It's not at all simplistic just to always be offering hints which usually some others have been trying to sell. We really do know we've got the blog owner to appreciate because of that. The main explanations you made, the straightforward blog navigation, the friendships your site make it easier to foster - it is everything great, and it's really letting our son in addition to us consider that that content is satisfying, which is rather essential. Thank you for the whole lot! balenciaga

off white said: Thanks for each of your hard work on this web site. My mother take interest in conducting internet research and it's easy to understand why. Most of us hear all concerning the powerful method you offer both useful and interesting tips and hints on this web blog and even cause contribution from other individuals on that topic and my girl is studying a whole lot. Take advantage of the rest of the year. You are always carrying out a great job. off white

canada goose jacket said: My husband and i ended up being joyful Albert could finish off his inquiry via the ideas he grabbed when using the web page. It is now and again perplexing just to possibly be freely giving secrets that people might have been trying to sell. And we acknowledge we have the writer to appreciate for this. The entire illustrations you made, the straightforward site navigation, the relationships you can make it possible to create - it's everything incredible, and it is helping our son and our family feel that this concept is enjoyable, which is quite indispensable. Thank you for the whole thing! canada goose jacket
Back