thanks,but it`s not i want,code does not know the pid
- Log in to post comments
thanks,but it`s not i want,code does not know the pid
The client and server use different SSL protocols. You can try changing the 1.3 in the SSL configuration in iris to the highest 1.2.
i got it,the code must like this "s baseStr = ##class(%SYSTEM.Encryption).Base64Encode(byteList,1)",len must be 24*n,and len1 must be 8*n
yes, i konw it, if not Insert CR/LF after every 76 characters,when len is 24*30*2, len1 is 1920,when len is 24*30,len1 is 960, and i can get the right pdf,if the base64 data comes from others, how can i know the num of len1?
thks,i got it!
thank you,Enrico Parisi gives me a better answer!
Enrico,thanks a lot!i got it!
and how to parse "<NewClass2><OPDT>2023-11-30 11:07:02</OPDT></NewClass2>" to a object as type of Samples.NewClass2?
Ashok,thank you,this is what i asked,in fact ,i should change %Library.DateTime to and %Library.TimeStamp
Enrico,thank you in fact ,i need TimeStamp!
i would like to use JAVA to open service for iris,so i don·t care if iris not support any java version
thank you i have found it
ensemble2016,cache2016,a few new case use iris from 2022-6
thank you,because of most cases use old version cache,it don't support %Studio.SourceControl. do you know why Projections is a bad way? what disaster does it will cause? one side is backup local code,i backup it to local,and then upload to gitee, i tried to used gitee’s callback function to autobackup,but failed。and the second side is to make backuping and updating code being simplly.Implementation Engineers want a simple way.
at present situation,i work with ensemble2016 more than iris,and it seems doesn‘t support plug-in. I actually prefer to use dot syntax ,i think it shows much clearly levels。
thks, local code can use git,but in production environment,there is no git,and usually,i have the code,but not include data.
you can test this code,it will work
s B64S=##class(%GlobalCharacterStream).%New()
i '$IsObject(file) d
.s fileName=file
.s file=##class(%FileBinaryStream).%New()
.d file.LinkToFile(fileName)
.d file.Rewind()
s len=513 ; text must be divisible by 3 and 57
While 'file.AtEnd {
s text=file.Read(.len)
q:len'>0
d B64S.Write($tr($system.Encryption.Base64Encode(text),$c(10,13),""))
}
q B64S
Just parse the stream and save it
dom,did you find a good way to work out?i meet the same trouble!
thanks,%XML.TextReader could read the xml,but what i want to know is, xml 2 obj and i can reset some element`s value ,and then output the xml with new data
<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:mif="urn:hl7-org:v3/mif" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 ../sdschemas/SDA.xsd" classCode="DOCCLIN" moodCode="EVN">
<observation>
<value xsi:type="ST">xxxx</value>
</observation>
</ClinicalDocument>
it seems very complex,so far,i would like to use webservice
thank you,i know this way,but it is not a good choice

s PublicKeyFile="c:/key/pem/certself.pem"
Set filestream=##class(%FileCharacterStream).%New()
Set filestream.Filename=PublicKeyFile
Set PublicKeyStr=filestream.Read(.len)
s Plaintext="1"
Set Ciphertext=##class(%SYSTEM.Encryption).RSAEncrypt(Plaintext,PublicKeyStr)
w ##class(%SYSTEM.Encryption).RSAGetLastError(),!
Set Ciphertext=##class(%SYSTEM.Encryption).Base64Encode(Ciphertext)
w Ciphertext,!