I am getting
i need to edit the file in business service and send to process
- Log in to post comments
I am getting
i need to edit the file in business service and send to process
Do you know any native api i can install for python installation
Thank you,
do we have any documentation where i can install python from scratch
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.")
}
screenshot of base64 converted stream which has CRLF at the end
.png)
just and example what i am getting at the end of every line
ok thank you for help
My transformation is pretty much simple actually
<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
hi ,
this is how i am converting pdf to base 64
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.")
}
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
I am using TCP business service
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
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
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?
Thank you for helping now i am able to resolve my issue
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?
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 ?
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
Thank you it is working
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
Yes thank you,
Can we do that by using date function $ZDATE,$ZDATEH,$ZDATETIMEH?
Thank you Oliver
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()
Hi Oliver Wilms
I have used
So if i use %Persistent Extension class for Patient.PatientDBReq class do i need to call %Save() for saving data into SQL table?
Smythe
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
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
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
Hi
can anyone please explain how can apply early binding and late binding to data transformation?
Thank you for sharing
I am new for FHIR transformation can you please few basics for Starting FHIR transformations
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'" |