Michel Bruyère · Nov 2, 2021 go to post
 DO pRequest.SetValueAt($REPLACE(pRequest.GetValueAt("NTE:3"),$C(13,10),$C(32)),"NTE:3")
Michel Bruyère · Oct 28, 2021 go to post

Not sure what you want ?

If request is 'request As EnsLib.HL7.Message' then request.DocType.
 

Michel Bruyère · Oct 28, 2021 go to post
IF (request.GetValueAt("PID:3.4.1")="CAC")&&(request.GetValueAt("PID:3.5")="JHN")
{
     SET PID31=request.GetValueAt("PID:3.1")
}
Michel Bruyère · Oct 26, 2021 go to post

When you use 'Studio', you are recognised like an administrator (nt authority\system) and not a local user.
Don't use $ZF(-1) : $ZF(-1) is a deprecated function. All new code development should use $ZF(-100).
What about your python with the new recommendation?

Michel Bruyère · Oct 14, 2021 go to post

I use 'Cache for Windows 2018.1.4'.

The 'SetTraceMask' method of '%Net.SSH.Session' does not seem to exist: it is not in my documentation, nor proposed when encoding in VS.

Although in the console, it is accepted?!?

Michel Bruyère · Oct 13, 2021 go to post

You can manipulate object.city, for example like a string :

w $E(object.city,5,*)
w object.city_"*"
Michel Bruyère · Oct 13, 2021 go to post

If the string variable 'stra' contains the XData bloc.

$E(stra,$F(stra,"<p>"),$F(stra,"</p>")-5)

The tags '<p>' and '</p>' must be in lowercase.

Michel Bruyère · Oct 12, 2021 go to post

If this change is to be made in a multitude of classes, I advise writing a computer program that will perform this task.
But is it necessary to do it?

Michel Bruyère · Oct 7, 2021 go to post

I see 'Multi-Line Options'.
What can we specify ? I guess it's related to CR and/or LF. Try it with the different options.

Michel Bruyère · Oct 6, 2021 go to post

Strange, the %IO class belongs to our production/development namespace.

We use 'Cache for Windows 2018.1.4'.

Michel Bruyère · Oct 6, 2021 go to post
  • The idea being that we would than implement an OnDelete that would remove the file when the HL7 message is purged.

When and how will the HL7 message be purged ? Shell batch ?

Michel Bruyère · Oct 5, 2021 go to post

Thanks.
I will use :

&SQL(SELECT Category INTO :itemCat FROM Ens_Config.Item WHERE Name=:%Ensemble("ConfigName"))
Michel Bruyère · Oct 1, 2021 go to post

The class can be ' citadelle.labo.bs.FileXmlTransLaboIn ' in COS.

In case of a problem, an email is sent to the IT cell and currently, the category is a parameter of the connector.

Sample code (in French) :

SET msg.Body = msg.Body_"<br/><u>Infos pour le service EAI</u> :<br/>Le connecteur de 'Service' en charge de cette tâche est répertorié dans la catégorie '"_.."Catégorie"_"'.<br/>"

SET msg.Body = msg.Body_"Il se dénomme '"_..%ClassName()_"' et le package/classe : '"_$CLASSNAME()_"'.<br/><br/>"

I want to stop using this parameter.

Michel Bruyère · Oct 1, 2021 go to post

Currently I can find out with this SQL query :

Select Category
From Ens_Config.Item
Where ClassName Like 'citadelle.labo.bs.FileXmlTransLaboIn%'

I would like to do this using the existing classes of 'Ens' or 'EnsLib'.

Michel Bruyère · Oct 1, 2021 go to post

Thank you for your answer.

But what I want to have as a result is: by giving a class name (..%ClassName()) or package name ($CLASSNAME()), the name of the portal category is provided to me.

How to know the ID?

Michel Bruyère · Oct 1, 2021 go to post

Thank you for your answer.

But what I want to have as a result is: by giving a class name (..%ClassName()) or package name ($CLASSNAME()), the name of the portal category is provided to me.
How to know the ID?

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 · 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 · 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 · 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

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

Unfortunately, it does not work. sad