Smythe Smythee · Jan 16, 2025 go to post

I am getting "<?xml version=""1.0""> as first line i need  remove this and then save the file send to business processs

i need to edit the file in business service and send to process

Smythe Smythee · Nov 18, 2024 go to post

In Service class(by using record map as input) i am converting pdf to base 64 using below code  and the same source.encodedpdf is getting converted to HL7 in data transformation

Set pInput.LineTerminator $C(10)
Set tMax=$$$MaxLocalLength*.5\1
Set tMax=tMax-(tMax#57)
If $IsObject(pInput{
$$$TRACE("pInput = object")
Set tCurrLineLen = 0
Set tStream ##class(%Stream.FileBinary).%New()
While 'pInput.AtEnd 
$$$TRACE("Reading filestream")
Set tData pInput.Read(tMax)
Set tValue $SYSTEM.Encryption.Base64Encode(tData)
Set tSC tStream.Write(tValue)
If 'pInput.AtEnd {
Set tSC tStream.Write($C(10))
$$$TRACE("Adding terminator.")
}

Smythe Smythee · Nov 15, 2024 go to post

My transformation is pretty much simple  actually 

<assign value='"Procedure notes"' property='target.{OBXgrp(1).OBX:5.2}' action='set' />
<assign value='"PDF"' property='target.{OBXgrp(1).OBX:5.3}' action='set' />
<assign value='"base64"' property='target.{OBXgrp(1).OBX:5.4}' action='set' />
<assign value='source.EncodedPdf.Read(9999999999)' property='target.{OBXgrp(1).OBX:5.5}' action='set' />
 

how do i avoid line breaks 

Smythe Smythee · Nov 15, 2024 go to post

hi ,

this is how i am converting pdf to base 64

Set pInput.LineTerminator = $C(10)
Set tMax=$$$MaxLocalLength*.5\1
Set tMax=tMax-(tMax#57)
If $IsObject(pInput) {
$$$TRACE("pInput = object")
Set tCurrLineLen = 0
Set tStream = ##class(%Stream.FileBinary).%New()
While 'pInput.AtEnd 
$$$TRACE("Reading filestream")
Set tData = pInput.Read(tMax)
Set tValue = $SYSTEM.Encryption.Base64Encode(tData)
Set tSC = tStream.Write(tValue)
If 'pInput.AtEnd {
Set tSC = tStream.Write($C(10))
$$$TRACE("Adding terminator.")
}
 

Smythe Smythee · Jun 10, 2024 go to post

Try below steps

1.Abort the queue in Business operation 

2.Go to Business service and apply the filter for the message type you need and resend all the messages 

Smythe Smythee · Feb 17, 2024 go to post

Hi 

In my scenario i need to use only business service and Business Operation for implementation 

In the above code 

do ##class(myDt).Transform(dataEntry, .dataTransform)

In myDt i will be using data transformation class 

What i need to use in the dataEntry, .dataTransform  in these varibles 

Thanks,
Smythee

Smythe Smythee · Sep 5, 2023 go to post

Yes it is Converting to YYYY-MM-DDT00:00:00Z this format 

For some reason it is stripping of Z at the end Target message i am using HS.SDA3.Container and Birthtime i am using as target 

It is only accepting length upto 19 only

Smythe Smythee · Sep 4, 2023 go to post

Hi ,

I am able to execute the above date conversion in Ensemble data transformation 

when i am trying to do the same in IRIS i am only getting output upto 1974-11-01T00:00:00

Please refer to the below code i am using

Is there any difference i need to know in IRIS date and time conversions?

Smythe Smythee · Aug 24, 2023 go to post

Any idea how to convert date from MM-DD-YYYY to YYYY-MM-DDT00:00:00Z   without changing the property of DOB which is %Date  in Data transformation?

Smythe Smythee · Aug 24, 2023 go to post

Hi ,

I am able to execute this code in terminal but not able use the same conversion in Data transformation still for me it is throwing Datatype validation error 

The reason why cannot change property of DOB to %String the many classes are dependent on the Source message class

Is there any other way  i can convert DOB form MM/DD/YYYY to YYYY-MM-DDT00:00:00Z ?

Smythe Smythee · Aug 24, 2023 go to post

Hi,

Is there any way  i can Convert MM/DD/YYYY to YYYY-MM-DDT00:00:00Z format in data transformation by using Property for DOB as %date 

Smythe Smythee · Jun 30, 2023 go to post

Thank you 

Can you help me understand Why we used  $ZDT($ZDTH(timeAndDate,3,9),3,7)  3,9 and 3,7 while converting 

Thanks,

Smythee

Smythe Smythee · Mar 23, 2023 go to post

yes i have commented out %Save() and it worked data is saving only once in the SQL table 

and i have checked in Extended classes also but i am not able to find how it is getting saved in SQL table without even Calling %Save()

Smythe Smythee · Mar 23, 2023 go to post

Hi Oliver Wilms 

I have used   Ens.Request Extension class for Patient.PatientDBReq , the Ens.Request class is like below 

Class Ens.Request Extends (Ens.MessageBody, Ens.Util.RequestBodyMethods) -->Can you please tell how it will be saved without calling %Save()?

So if i use  %Persistent  Extension class for Patient.PatientDBReq  class do i need to call %Save() for saving data into SQL table?

Smythe

Smythe Smythee · Jan 31, 2023 go to post

Hi Ariel Arias ,

Do i need to create a new method using 

(Set smtp.UseSTARTTLS = 1 where smtp is: Set smtp=##class(%Net.SMTP).%New())

If you have any example please share with me it will be helpful

Smythee

Smythe Smythee · Jan 12, 2023 go to post

Hi ,

Let me explain in the scenario i need to apply early binding in the data transformation

Example: In the below transformation i need to normalize the value of administrative sex in the HL7 Message by using early Binding
<assign value='source.{PID:8}' property='target.{PID:8}' action='set' />

Smythe

Smythe Smythee · Jan 11, 2023 go to post

Hi Enrico,

I have tried using the class Ens.Rule.FunctionSet for changing the DOB format which is late binding 

In my scenario i need to use early binding 

Can anyone please give me an example how to use early binding in a data transformation?

Thanks,

Smythe

Smythe Smythee · Jan 11, 2023 go to post

Hi 

can anyone please explain how can apply early binding and late binding to data transformation?

Smythe Smythee · Nov 24, 2022 go to post

Thank you for sharing

I am new for FHIR transformation can you please few basics for Starting FHIR transformations

Smythe Smythee · Nov 17, 2022 go to post

Hi ,

I gave the example of the scenario i am using in my code but i am getting  Invalid Oref error

"

ERROR <Ens>ErrException: <INVALID OREF>zDischarge+3^CUSTOM.SQL.TestUtil.1 -- logged as '-' number - @' Set Obj.Discharge.DischargeFlag=DischargeFlag'"