Encontrar

Pregunta
· 18 ago, 2024

How to programmatically update a port number on multiple items.

Hello, I am total newbie when it comes to ObjectScript (just started going through the tutorial).  We have a task where we have to update the port number for 75-100 items (say for half of the items in our production).  Going through the documentation and other community posts it looks like we could utilize class method 'ApplySettings' in Ens.Production.  But we are running into an issue.  Below is what we currently have.  When we hard code the item, it works.  But, if we store the item in a variable and try it pass it through.  Then it doesn't work.  We are also not seeing an error.  Is our thought process valid or should be looking at it differently.  Can we pass a variable into pSettings list?  If so, how should our syntax be?

Step 1: Got a list of items by running a sql against Ens_Config.item to get the name and added to a file. (Each item is in a line by itself)

Step 2: Trying to run the class method below to read the file and loop through the values to update port number.

ClassMethod UpdatePort() As %String
{
set tUniqueFile = "/hs-connect/test/Jobs_To_Update.txt"
// Write the file from previous line to a stream
set tStream = ##class(%Library.FileCharacterStream).%New()
Set tSC=##class(Ens.Util.File).LinkFileStream(tUniqueFile,.tStream)
set tStream.Filename = tUniqueFile // Read the stream to gather the job values
if $$$ISERR(tSC) quit ;
    while 'tStream.AtEnd {
        set str=tStream.ReadLine()
        write !,"The Job Is: ",str
        
        //set pSettings("From_Source_Rec_Job","Adapter","FTPPort")=2022.  If we specify the job, then it works
        set pSettings(""_str_""),"Adapter","FTPPort")=2022  //If we try to pass the variable, it does not
do ##class(Ens.Production).ApplySettings("TST.Production", .pSettings)                
}
// Delete the file with the list of jobs
do ##class(%Library.File).Delete(tUniqueFile) write !
return tSC
}

Regards,

Raja

3 comentarios
Comentarios (3)1
Inicie sesión o regístrese para continuar
Artículo
· 18 ago, 2024 Lectura de 1 min

一个将导出的xml文件转换成UDL格式内容的工具

由于个人习惯,更喜欢将代码文件使用xml格式导入导出,但是有时后翻代码,xml格式的阅读体验没那么好,如果要是导入到studio又太麻烦,所以实现了一个在线工具,解析xml内容,将其转换为在Studio看到的内容,即所谓的UDL(Universal Definition Language)格式。

小工具地址

https://ttykx.com/demos/cos/xml2Udl.html

 

1.选择xml文件,读取内容。

 

2.解析项目,按项目显示原xml内容

 

3.转为UDL格式内容

 

Comentarios (0)1
Inicie sesión o regístrese para continuar
Artículo
· 17 ago, 2024 Lectura de 3 min

InterSystems IRIS 入门:全面指南

各位社区成员,大家好,

利用面向您的组织中的各个角色提供的全套 InterSystems 学习资源(在线或面授形式),您可以全面挖掘 InterSystems IRIS 的潜力,并帮助您的团队完成入门流程。 开发者、系统管理员、数据分析师和集成商可以快速上手。

学习服务提供的资源

在深入学习角色特定的资源之前,我们先来总体了解一下现有的学习资源:

Comentarios (0)0
Inicie sesión o regístrese para continuar
Artículo
· 17 ago, 2024 Lectura de 1 min

FHIR之数字健康小程序系列-- CAREN mHealth

可定制以收集全方位的身心健康数据。

Caren从可穿戴设备和护理设备点(如iHealth®、Fitbit®、Omron®、Tenovi®和Withings®)收集数据。数据显示在网络仪表板上,可以在电子病历系统内也可以独立查看。Caren可以定制,使用API从专门的医疗设备收集健康数据。

语音交互式移动应用程序提高了患者的参与度。

用户友好的语音交互式移动应用程序提供了简单、直观的设计,用户只需轻点一下即可进入或查看测量和观察结果。

公司介绍:https://www.carenmhealth.com

软件试用

目标使用者--临床医生和患者

类别--临床研究、疾病管理、远程医疗

应用程序类型--SMART ON FHIR应用程序

FHIR 版本--R4

支持的电子病历系统--Cerner、Epic等支持FHIR API的软件系统

Comentarios (0)0
Inicie sesión o regístrese para continuar
Artículo
· 16 ago, 2024 Lectura de 4 min

第二章 使用 SOAP 保护 Web 服务 - WS-Security 标头简介

第二章 使用 SOAP 保护 Web 服务 - WS-Security 标头简介

WS-Security 标头简介

SOAP 消息在 WS-Security 标头元素(SOAP <Header> 元素的 <Security> 子元素)中携带安全元素。以下示例显示了一些可能的组件:

这些元素如下:

Comentarios (0)1
Inicie sesión o regístrese para continuar