发布新帖

Encontrar

文章
· 三月 23, 2022 阅读大约需 1 分钟

ObjectScript言語でイメージファイルをWEBサーバからダウンロードする方法

これは InterSystems FAQ サイトの記事です。
 

以下のコードは、https://www.intersystems.com/assets/intersystems-logo.png をダウンロードし、c:\temp\test.pngとしてファイルを保存する例になります。

以下のコードを動作させるためには、SSLTESTという名前のSSL定義を作成しておく必要があります。

 

ClassMethod download() As %Status
{
    Set sc = $$$OK
    Set httprequest=##class(%Net.HttpRequest).%New()
    set httprequest.Port = 443
    set httprequest.Https = 1
    set httprequest.SSLConfiguration = "SSLTEST"
    Set httprequest.Server="www.intersystems.com"
    Do httprequest.Get("/assets/intersystems-logo.png")
    Set httpresponse=httprequest.HttpResponse
    Set file=##class(%File).%New("c:\temp\test.png")
    Do file.Open("NWUK\BIN\")
    Do file.CopyFrom(httpresponse.Data)
    Do file.Close()
    Return sc
}
讨论 (0)1
登录或注册以继续
问题
· 三月 22, 2022

Time handling and Json

I am having trouble formatting %Time to a JSON format. I have tried configuring the parameter "FORMAT" of my property but that didn't work. For some reason, it keeps putting a Z and the end of the time. 

Property:

Property TimeCollected As %Time(FORMAT = "2");

Setting the Property through a custom function which is used in the DTL:

set convertedDateTime= ##class(Ens.Util.Time).ConvertDateTime("202203220800","%q(1)","%q(3)") //Setting to HoroLog format
set pOutput = $PIECE(convertedDateTime,",",*) //splitting to obtain seconds past midnight 

Testing the DTL, and also converting to JSON has the same result, shows:

I can't explain why it's adding the Z at the end. Am I missing something obvious?

Any help would be greatly appreciated.

2 Comments
讨论 (2)1
登录或注册以继续
讨论 (0)2
登录或注册以继续
问题
· 三月 3, 2022

Customizing SDA in HealthInsight - excluded tables

i'm trying to extend both the MemberEnrollment and the MedicalClaim objects in HS.  The CareProvider is perfect for some of my extensions (Operating provider, referring provider, third-party insurer), but the documentation says https://docs.intersystems.com/irisforhealthlatest/csp/docbook/DocBook.UI...

 

I need something that is just like a CareProvider, and I will be using the CarePRoviderType as a CodeTableDetail.  

 

Why is CareProvider excluded?  Does this mean I can't add property HS.Local.SDA3.MemberEnrollment.PHPProvider as HS.SDA3.CodeTableDetail.CareProvider?  

 

What is a better solution? Yes, this is also going to go to HealthInsight, so I'll need an analogous table in HSAA.

 

Thanks,

Laura

2 Comments
讨论 (2)1
登录或注册以继续
问题
· 三月 2, 2022

C#/.NET XEP - Storing an object array generates a Console Write "Elapsed server write time: [elapsed time]"

Calling  InterSystems.XEP.Event.Store(object[]) issues an unnecessary debug console line "Elapsed server write time:..." which is polluting the console window.
Traced it to a IRIS.xepSSNDFinish

Is there any way this can be disabled?

 

Thanks!

1 Comment
讨论 (1)0
登录或注册以继续