Michel Bruyère · Nov 9, 2018 go to post

Thanks for your answer.

The second possibility is the one I use but we are never sure that the field will be fulfil (SetIDOBX).

The first one, I didn’t know that “RawContent” is available this way. That’s the one that definitely I choice.

Michel Bruyère · Jan 9, 2019 go to post

Your "SendRequestAsync" method is only available for Process.

And to be purist, in that case, it must be:

set tSC = ..SendRequestAsync(..JSONOperation,stream,"0",,..MetadataContext) /// send the stream to operation

Nothing to do with the reponse parameter.

Best Regards.

Michel Bruyère · Feb 26, 2019 go to post

These files require transformation. They are HL7 messages and need segment changes according to the directories.
I don’t see any property that will also give a directory name: Attributes ("filename") is not the solution, unfortunately

>>> They should be deleted from the sftp server once transferred?
It’s already been done.

Any COS example will be very helpful.

Michel Bruyère · Feb 27, 2019 go to post

The solution is for a "EnsLib.HL7.Service.FTPService" service :

Method OnProcessInput(request As %Stream.Object, Output response As %RegisteredObject) As %Status
request.Attributes("FTPDir")

Michel Bruyère · Aug 9, 2019 go to post

Don't rely too much on this !

w $System.SQL.CEILING(1.000000000000000001)

2

w $System.SQL.CEILING(1.0000000000000000001)

1

Michel Bruyère · Aug 23, 2019 go to post

I don't have a great knowledge about InterSystems plans.

But, generally, you just should first delete your plan and then recreate the index.

35 seconds were quite important!

How much records or mostly probably different jointures on tables?

Michel Bruyère · Sep 30, 2019 go to post

1) $replace(pRequest.GetValueAt("MSH::MessageType.MessageType),"^","") instead of pRequest.GetValueAt("MSH::MessageType.MessageStructure",,tSC)

2) $e($zdt($h,8),1,8) instead of $tr($zdt($h,3),"-: ","")

Michel Bruyère · Nov 29, 2019 go to post

I modified the process to:
Class ??? Extends (Ens.BusinessProcess, %XML.Adaptor)

Unfortunately, it does not work. sad

Michel Bruyère · Nov 29, 2019 go to post

In the process for example:

  • Prod environment:
    SET date = hl7.GetValueAt("MSH:DateTimeOfMessage.Time")
  • Dev environment:
    SET date = hl7.GetValueAt("MSH:DateTimeOfMessage.timeofanevent")
Michel Bruyère · Nov 29, 2019 go to post

How to do the close ? I don't see any method for that.

Snippet of the code:

SET lineStream = ##class(%Stream.FileCharacter).%New()

...

SET streamCont=##class(Ens.StreamContainer).%New(lineStream)
$$$TOE(sc,..SendRequestSync(..TargetConfigName, streamCont))

Michel Bruyère · Dec 2, 2019 go to post

The glitch is related with the browser and probably also the Ensemble's version.

If I use another browser, I got :

If I read the HTML source, I can see my data. So, I have a solution. smiley

Michel Bruyère · Dec 17, 2019 go to post

OS/Shell specific wildcard characters such as * and ? for fetching files.
 

Is not possible!!!

Michel Bruyère · Aug 21, 2019 go to post

"AdmitDateTime.timeofanevent" is the correct specification.

Also is better to write ="0000" but it's work your way.

Michel Bruyère · Sep 9, 2019 go to post

You don't need a function.

Length(HL7.{PIDgrpgrp().ORCgrp().OBXgrp().OBX:ObservationIdentifier.identifier},)=0

Best Regards.

Michel Bruyère · Sep 12, 2019 go to post

SELECT TOP ALL FirstName||' '||LastName AS DisplayName, UserType, IsActive, RoleName, DOB FROM LISDB.ExternalUsers
Where FirstName||' '||LastName Like '%Praja%'