go to post Luis Angel Pére... · Oct 2, 2023 Have you tried InsertList method? https://docs.intersystems.com/iris20232/csp/documatic/%25CSP.Documatic.c...
go to post Luis Angel Pére... · Sep 28, 2023 Well, I guess that you just need to call the BO/endpoint form the WHILE loop: Set tSC = ..SendRequestSync(outbound, pRequest, .pResponse)
go to post Luis Angel Pére... · Sep 27, 2023 We know that you can do it @Dmitry Maslennikov , it is not necessary to rub it in our faces.
go to post Luis Angel Pére... · Sep 19, 2023 FHIR Adapter is the solution for your problem, but it's available from IRIS 2022.1: https://docs.intersystems.com/irisforhealth20232/csp/docbook/DocBook.UI....
go to post Luis Angel Pére... · Sep 18, 2023 You are right, you have to create the properties before to use %FindDocuments...BUT...it doesn't work for arrays of data. I've found this answer to a similar question: https://community.intersystems.com/post/how-query-data-docdb-through-pyt... I was testing the behaviour with this example: DO db.%CreateProperty("type","%String","$.PhoneNumber.type") SET dynAbObj = { "FullName":"John Smith", "FirstName":"John", "Address":{ "street":"101 Main Street", "city":"Mapleville", "state":"NY", "postal code":10234 }, "PhoneNumber": [ {"type":"home","number":"212-456-9876"}, {"type":"cell","number":"401-123-4567"}, {"type":"work","number":"212-444-5000"} ] } $$$TRACE(dynAbObj.%ToJSON()) SET jstring = dynAbObj.%ToJSON() // dynamic abstract object to JSON string DO db.%FromJSON(jstring) // JSON string inserted into document database $$$TRACE(db.%FindDocuments(["type","cell","="]).%ToJSON()) $$$TRACE(db.%FindDocuments(["type","home","="]).%ToJSON()) This is the answer for the first search: {"sqlcode":100,"message":null,"content":[]} And this is the answer for the second search: {"sqlcode":100,"message":null,"content":[{"%Doc":"{\"FullName\":\"John Smith\",\"FirstName\":\"John\",\"Address\":{\"street\":\"101 Main Street\",\"city\":\"Mapleville\",\"state\":\"NY\",\"postal code\":10234},\"PhoneNumber\":[{\"type\":\"home\",\"number\":\"212-456-9876\"},{\"type\":\"cell\",\"number\":\"401-123-4567\"},{\"type\":\"work\",\"number\":\"212-444-5000\"}]}","%DocumentId":"1","%LastModified":"2023-09-18 10:13:30.694"}]} As you can see, it only works fine for the first value of the array, the definition of the property doesn't allow to define an array of values.
go to post Luis Angel Pére... · Sep 16, 2023 db.%FindDocuments({["PhoneNumber.type","cell","="],["PhoneNumber.number","401-123-4567","="]})
go to post Luis Angel Pére... · Sep 15, 2023 Here you can find the answer: https://community.intersystems.com/post/fixing-iris-service-did-not-star...
go to post Luis Angel Pére... · Sep 14, 2023 Take a look here: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
go to post Luis Angel Pére... · Sep 13, 2023 Use Docker is not neccessary, Docker is just to deploy the code and test it, but I think that you can just follow the article to create and deploy your own REST service.
go to post Luis Angel Pére... · Sep 13, 2023 To receive REST call directly into a Business Service is not the most recommended because you can't apply any kind of access restriction to the service. What I always recommend is to create a web application managed by a class that extends from %CSP.Rest and resend the JSON received to the Business Service. You can see an example on this article: https://community.intersystems.com/post/creating-rest-service-iris
go to post Luis Angel Pére... · Sep 13, 2023 Well, I think that nothing has changed, maybe it's a different configuration of the browser or some other subjective circumstance, but I remember to have this situation with Ensemble for long time ago.
go to post Luis Angel Pére... · Sep 12, 2023 And if you want to autostart the production: set production = "Your.Production" set ^Ens.Configuration("csp","LastProduction") = production do ##class(Ens.Director).SetAutoStart(production)
go to post Luis Angel Pére... · Sep 12, 2023 Well, if your IRIS doesn't support Embedded Python you can do the following (if you are using a Linux Server): Install some application like ImageMagick in your server From your Business Operation use $ZF(-100) function to execute in the server the magick command to convert the PDG to JPG, something like: $ZF(-100,"","magick","\usr\image.pdf","\usr\image.jpg") Maybe it takes some time to finish, you can wait to the end of the execution or just create a business service to get all the new pdf files.
go to post Luis Angel Pére... · Sep 11, 2023 Take a look at the following documentation: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
go to post Luis Angel Pére... · Sep 11, 2023 Here you can find a similar question from @Evgeny Shvarov https://community.intersystems.com/post/how-can-i-change-production-sett...