Question Thembelani Mlalazi · Jun 3 FHIR Deserialize JSON FHIR to object Model I am trying to work with the FHIR Object Model where I convert an incoming HL7v2 to SDA then FHIR. From here I would like to be able to process the FHIR Object by deserializing it to a Bundle object using the following code my problem is I keep on getting an error which is not explaining much about what is wrong with what I am doing any help will be appreciated thanks. #FHIR #HL7 #JSON #Ensemble #HealthShare #InterSystems IRIS for Health 0 3 0 179
Question Thembelani Mlalazi · May 18, 2023 How to understand the HTTPRequest Error Object reference required I am trying to call to a website that renders a xml structure as a response.if I put the url on the browser an xml rendered page is returned but if i call to this using the below code I get an object reference error which I am finding had to understand is there anyone who could help understand this error or point me in the right direction thanks. Set tSC=$$$OK #ObjectScript #XML #Caché 0 2 0 273
Question Thembelani Mlalazi · Apr 17, 2023 How to Download files using %Net.HttpRequest I am using the %Net.HttpRequest class to download a file from the internet .using the following code. When a file is returned in the DOM I am able to read the file content and save it to the desired location but when my response is a download dialog nothing is returned in the HttpResponse. Am I doing something wrong here is where I have gotten to so far any help appreciated. current code #.NET #Business Operation #REST API #Ensemble 0 1 0 297
Question Thembelani Mlalazi · Sep 28, 2022 How to secure a REST API I am trying to secure a rest service but I lack the understanding of how to achieve this if anyone will explain in details how I could achieve the following: Securing The REST Service with Basic Auth (username and password) if any one has a sample code on this will appreciate #Access control #Authentication #REST API #Caché 0 2 0 474
Question Thembelani Mlalazi · Sep 16, 2022 REST Service how to accept a Json request I have a REST Service that I want it to receive a json string request I have set up my URLMap as follows the top URL when populated and requested works fine but I would like my request to be a json string and that is not working I am getting a 500 error am I missing something please advice. #Business Service #JSON #REST API #Caché 0 5 0 406
Question Thembelani Mlalazi · Jul 19, 2022 SQL ODBC Warnings On Null Values in a Stored Procedure I am calling a stored procedure over an ODBC connection and every time I call it there are several warnings written to the log event {Found no Parameter 1 (used as 1) for query}.I seem to be getting this on every query executed and that seems to happen a number of times the query parameters are per query and its filling up my disc. 1) Is there a way to suppress these warnings as the query seems to be executed and data written to the database? #Databases #ODBC #SQL #Caché 1 1 0 236
Question Thembelani Mlalazi · Mar 16, 2021 SQL ODBC Connection query running longer than expected I have a SQL query that I want to run against MS SQL from cache ensemble using the SQL outbound adapter. If I run this query direct from MS SQL Studio it take about 7 seconds MAX and returns about half a million rows. The row only contains one column it is a number all same size and if I run this query in the production in ensemble it takes for ever the production finishes without getting the response back. The same query run in cache outside the ensemble environment writing results to a file it returns results taking about 3minutes to complete. #Databases #ObjectScript #ODBC #SQL #Caché #Ensemble #HealthShare 0 1 0 259
Question Thembelani Mlalazi · Mar 12, 2021 How to delete files classes in cache 2018 In previous versions of cache I used to be able to write click on a class and get a delete class option but in this version I can not find the delete class option was wondering if there is another way to delete a class if you wanted to do some house keeping. N.B. These are the classes I create not the ones that comes with cache. #ObjectScript #Caché 0 1 0 540
Question Thembelani Mlalazi · Feb 1, 2021 REST Consumer sending and Receiving Files I am trying to write a REST consumer the API that I am talking to expects a file to be sent over and in response I will get a file back if anyone out there has ever had a similar use case please could you kindly guide us or share some sample code please #Business Operation #JSON #REST API #Ensemble 0 2 0 366
Question Thembelani Mlalazi · Jul 15, 2020 How to Create an XML from Serial Classes with populated segments leaving out empty elements Lets say I have a serial Class A ,Serial Class B,Serial C and Persistent Class Ens.Request #XML #Ensemble 0 4 0 267
Question Thembelani Mlalazi · Nov 28, 2019 Does IRIS have %Library.CachePopulate I have a class that inherits from %Library.CachePopulate #InterSystems IRIS 0 4 0 219
Question Thembelani Mlalazi · Sep 25, 2019 Soap Service How to pass a Stream Response I have been trying to pass a %Global character stream back on a Soap Response has anyone one out there done it before please help with guide lines on how to achieve this thanks in advance just some working sample code and will take it from there thanks again #API #SOAP #Caché 0 5 0 673
Question Thembelani Mlalazi · Sep 23, 2019 How to return Stream a Soap response I am trying to return a stream soap response using web services I can call my web service supply it with a xml string which works fine . I then work on that XML and try to return a Stream but all works in the production when my service receives the stream after I get the error as if its trying to copy stream to a variable and I am confused as to where that operation happens. #API #SOAP #Ensemble 0 3 0 899
Question Thembelani Mlalazi · Aug 15, 2019 List property I have a list property that I query from the database to get the values contained in that list using $LISTFROMSTRING() when the list is returned the list values contain a rectangle like character similar to when you copy past something to the Terminal and it has a preceding space .The problem is I need to compare those values to other values and they do not match because of this value I have tried to use $EXTRACT(value,*W) and *P but this is not striping the preceding character how do I get rid of this character any ideas please. #Databases #ObjectScript #Studio #Caché 0 3 0 535
Question Thembelani Mlalazi · Jun 13, 2019 How to send commands to the Window Command prompt directly is there a way to send commands to the CMD in windows form COS I would like to run an application within COS by sending a command to the CMD #Microsoft Windows #ObjectScript #Terminal #Caché 0 2 0 1.2K
Question Thembelani Mlalazi · Jun 10, 2019 How to generate a pdf file from an XLFO in Ensemble In my production I receive an XLFO stream and I would like to pass that to the FOP pdf rendering engine to produce pdf files .So far in my research that can be achieved through ZEN .I would like to create an operation that will take advantage of that and be able to pass my XLFO stream to the operation and create pdf files I found something similar here but for some reasons I get errors like below if any one understands what they mean please advice or someone who had to do something sim #Business Operation #Java #ZEN #Ensemble 0 2 0 597
Question Thembelani Mlalazi · Jun 3, 2019 How to extract data from a list property Say I have a property in a persistent class that stores list of colours and I would like to query that field and return a list and be able to loop that list to get individual colours how will l go about achieving this I have tried something like this but its not working as expected &sql(SELECT colour INTO :colourList FROM favouritecolours) While (SQLCODE = 0) { for i=1:1:$LENGTH($P(colourList,",")) { set fvalue=$P(colourList,",",i) write "the first"_fvalue,i, } } #Coding Guidelines #Databases #SQL #Caché 0 1 0 514
Question Thembelani Mlalazi · Apr 16, 2019 Error 5823 when purging record map batch I have an above error when purging record map batches and was wondering if anyone out there has ever experienced this and if they have please any advice Failed to purge body for header 9747192, BodyClassname='******.Batch':ERROR #5823: Cannot delete object, referenced by '*****.Record.%ParentBatch' #Beginner #Management Portal #System Administration #Ensemble 0 1 0 444
Question Thembelani Mlalazi · Apr 11, 2019 CSP how to auto refresh with COS I have a query that I would like to have refreshing at certain intervals lets say every 30 seconds with out refreshing the page content using the META TAGSrefreshes the whole page but I have a jquery function that will run at those intervals that I can use the problem is getting the jquery to call my COS function or is the way to do it with pure COS #CSP #JavaScript #ObjectScript #Frontend #Caché 0 2 0 405
Question Thembelani Mlalazi · Apr 10, 2019 Base64 Encoding Errors I am trying to base64 encode a string with non standard characters encoded in utf-8 also tried windows 1252 and I am getting error like so ERROR <Ens>ErrException: <ILLEGAL VALUE>zEncodeStream+18^ -- logged as '-' number - @' set encString = $TRANSLATE($SYSTEM.Encryption.Base64Encode(streamString),$C(10,13))' any help appreciated if anyone has faced this before #Business Operation #ObjectScript #HealthShare 1 2 0 779