go to post David Reche · Dec 15, 2018 Hello Lassi,You should create a new Business Service class extending the HL7 Business Service of your election (TCP, HTTP, etc) and after overwrite this method:method OnConstructReply(Output pReplyDoc As EnsLib.EDI.Document, pOriginalDoc As EnsLib.EDI.Document, ByRef pReplyCode As %String, ByRef pSC As %Status, pEarlyAck As %Boolean) as %StatusOverride this method to construct a customized reply document. Inputs are the original document and the reply code and the status code that the framework produced in processing the original document. If you change the status code but do not construct a reply document, the framework will use the new value to construct a standard reply document. If you construct a non-HL7 object it must still have a property called 'Envelope'. Piece:2 of this value will be written verbatim.Consider this example (I didn't test it):method OnConstructReply(Output pReplyDoc As EnsLib.EDI.Document, pOriginalDoc As EnsLib.EDI.Document, ByRef pReplyCode As %String, ByRef pSC As %Status, pEarlyAck As %Boolean) as %Status{ Set pReplyDoc=pOriginalDoc.NewReplyDocument(,..LocalFacilityApplication) Set pReplyDoc.Source=pOriginalDoc.%Id() Do:..#UseOriginalControlId pReplyDoc.SetValueAt(pOriginalDoc.GetValueAt("1:10"),"1:10") ; copy the control id to the ack control id Set tAckMSA=##class(EnsLib.HL7.Segment).%New($LB("",1)) Set tAckMSA.Separators=pReplyDoc.Separators Do tAckMSA.SetValueAt("MSA",0) Do tAckMSA.SetValueAt("CE",1) Do tAckMSA.SetValueAt(pOriginalDoc.GetValueAt("1:10"),2) Do:$G($$$ExpectedSequenceNumber) tAckMSA.SetValueAt($$$ExpectedSequenceNumber,4) Do pReplyDoc.AppendSegment(tAckMSA) Set pReplyDoc.IsMutable=0 Quit $$$OK}
go to post David Reche · Dec 15, 2018 Hello Fabian,You can get it from WRC, go to the Online Distributions options, choose the Components option and after filter using 'node':Also, maybe my post Create a Node/Express BackEnd and connect it to IRIS in less you say 'Mississippi' can help you a bit.Regards
go to post David Reche · Nov 13, 2018 Not sure if helps but in order to compile the class use View/Command Palette and after choose COS: Import and compile
go to post David Reche · Nov 13, 2018 Hello @Jeff Fried, quick question.The CD releases will be Docker Images downloadables only from WRC or will be another public site? (Docker marketplace)Thanks
go to post David Reche · Oct 24, 2018 @Evgeny can you tell me:How to edit an application (title, image, description, etc.) after published? I can't find the option.And also, how to you publish new versions?many thanks!
go to post David Reche · Oct 21, 2018 BINGO!!It works like a charm!!davidreche$ node test.jsIntersystems IRIS instance: IRIS {}Open result: { ok: 1, result: 1, iris_pid: '9511' }Version: Node.js Adaptor for InterSystems IRIS: Version: 1.1.161 (CM); IRIS Version: 2019.1 build 284Set global ^nodeTest(1) result: { ok: 1, global: 'nodeTest', subscripts: [ '1' ], data: 'At Sun, 21 Oct 2018 19:12:52 GMT: global set from Node.js', defined: 1 } Thanks!!
go to post David Reche · Oct 21, 2018 Generated files are hidden by default, and the .disp class is marked as generated. However to show the class, you have to click the little arrow on the row of buttons at the top right of the Server Explorer to open the customization menu. It’s this one:From there, choose “Filters and Customization” and then uncheck the “Generated files” option (to disable the filter that hides generated classes) and click OK. After that to can added to the Git repo without problem.
go to post David Reche · Oct 19, 2018 Hello @Ward De Backer, Have you tested this with IRIS?I am trying to run it using your guide and the documentation (https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=BXJS_connect), and I have this error: var db = new irisobj.Iris(); ^ TypeError: irisobj.Iris is not a constructor I am using node v8.6.0 and iris.800.node. My code is almost the same as yours: let irisobj = require('iris'); var db = new irisobj.Iris(); console.log('Intersystems IRIS instance: ', db); Thanks
go to post David Reche · Sep 12, 2018 Create an IRIS instance in 5 minutes video... https://youtu.be/f_uVe_Q5X-c
go to post David Reche · Jul 17, 2018 Yeah... that is not funny but is true. You have to add the "files" and not the "packages" in order to get the files inside the XML project file
go to post David Reche · Jul 17, 2018 I guess you are using Studio (Not Atelier) in order to create the Studio Project. Right?Then the idea is simple. You have to create a new Studio Project, add any class to the project, save the project from "File/Save Project As..." and after use the Project from the Deployment Page at Management Portal.What's the thing not working?
go to post David Reche · May 16, 2018 Laura Blázquez you can do that with JSON because JSON is schema less but XML objects need a schema in a explicit or implicit way you need to define how the object is represented by the XML notation and viceversa.
go to post David Reche · Apr 25, 2018 Thank you Pili !!Yes, we only use DNI (our national identifier) in Spain but your method still being useful for a lot of DC users... I hope more and more :-D
go to post David Reche · Feb 22, 2018 Yes you are true in your observation. There are severals things to improve.Regarding get several files in an easy way you can use an Studio Project in order to pack everything you need and select the project in the Deployment screen.
go to post David Reche · Feb 15, 2018 Take a look to this simple example:https://github.com/drechema/isc-coffe-shopMaybe it helps to detect the problem