Nouvelle publication

查找

Annonce
· Mai 3, 2024

Ya está aquí el resumen del mes de abril, 2024

¿No habéis podido entrar en la Comunidad todo lo que os gustaría? ¡No os preocupéis! Os traemos un resumen de todo lo que hemos publicado en el mes. Seguid leyendo y no os lo perdáis ⬇️⬇️
Estadísticas generales
✓ publicaciones nuevas:
 10 artículos
 10 anuncios
 2 nuevas preguntas
Top 10 Publicaciones más vistas
Introducción a Kubernetes
Por Luis Angel Pérez Ramos
Top 5 Autores más populares
Todos los artículos
#InterSystems IRIS
QuinielaML - Predicciones de la 49ª jornada de la Quiniela
Por Luis Angel Pérez Ramos
Conectar Microsoft Excel a InterSystems IRIS mediante ODBC (Windows)
Por Alberto Fuentes
QuinielaML - Predicciones de la 51ª jornada de la Quiniela
Por Luis Angel Pérez Ramos
QuinielaML - Predicciones de la 53ª jornada de la Quiniela
Por Luis Angel Pérez Ramos
Cómo instalar soluciones ObjectScript sin código fuente o en modo de despliegue mediante el gestor de paquetes IPM
Por Alberto Fuentes
QuinielaML - Predicciones de la 54ª jornada de la Quiniela
Por Luis Angel Pérez Ramos
Comprobación de Versión en objetos. "ERROR:5800"
Por Ricardo Paiva
Rastreos de OpenTelemetry implementados por Servicios Web SOAP en IRIS
Por Jose-Tomas Salvador
Flujos de tareas con InterSystems IRIS Workflow Engine - Introducción
Por Luis Angel Pérez Ramos
 
#Otro
Introducción a Kubernetes
Por Luis Angel Pérez Ramos
 
Todos los anuncios
#InterSystems IRIS
 
#Comunidad de Desarrolladores Oficial
 
#Otro
 
#InterSystems Official
 
#HealthShare
 
#Global Masters
 
Todas las preguntas
abril, 2024Month at a GlanceInterSystems Developer Community
Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Mai 2, 2024

help with HL7 Transformation

Hi, 

I'm new to IS and the HL7 transformations using the DTL.  I need some clarification on the foreach action.

I want to iterate over IN1 segments, and output only segments that contain certain allergy types in IN1-2 with foreach.  Inside the foreach block, I check for allergy type "FA" in IN1-2 and, if found, send the segment with only the required fields (fields #1, #2, #3, and #5 to be exact).  Please see the foreach block below:

 

I'm puzzled how come I'm getting field repetitions in the fields I populate within the foreach block  Here are the AL1 segments in the source message

AL1|1|DA~FA|NOCHOC^CHOCOLATE FLAVOR^FOODELG|Low|Itching|20220126|||Allergy
AL1|2|FA|OFOOD^OTHER (FOOD)^EXTELG|Low|Dermatitis|20220316
AL1|3|EA~DA|NOBANA^OTHER^EX|Hi|Dermatitis|20230316
AL1|4|EA~FA|NOBANA^OTHER^EX|Hi|Dermatitis|20240316

and here are the AL1 segments in the target message

  * AL1
| 1 | FA | NOCHOC ^ CHOCOLATE FLAVOR ^ FOODELG |  · | Itching
  * AL1
| ~ 2 | FA ~  · | ~ OFOOD ^ OTHER (FOOD) ^ EXTELG |  · | ~ Dermatitis
  * AL1
| ~ ~ ~ 4 | FA ~ ~ ~  · | ~ ~ ~ NOBANA ^ OTHER ^ EX |  · | ~ ~ ~ Dermatitis

I do not expect to have repeated field values in field #1, #2, #3 and #5, and it is strange that the number of field repetitions increasing progressively. 

Wai

3 Comments
Discussion (3)2
Connectez-vous ou inscrivez-vous pour continuer
Question
· Mai 2, 2024

Cache and IRIS: How to identify system namespaces?

I am trying to locate a method that would allow me to differentiate between InterSystems preinstalled/system namespaces and "our own" namespaces. I am interested both in Cache and Iris answers if they are different. Yes, I can list what to disregard, like if not HSLIB or if not DOCBOOK but hoping for a more universal and elegant answer.

3 Comments
Discussion (3)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Mai 2, 2024

Compact & Truncate

Hi Guys,

 

I never ran a Compact & truncate process before and we do have a 4.6TB database with 1.9TB free space available that I would like to recover 

 

 

but when trying to compact first it did ask me to target in MBs and not sure what this is, does it mean that I need enough space to move all my 4.6TB database to ? and given that system is running live does the Compact or Truncate process stop or affect our system from been used from our clients and any idea how long such process would take to finish (minutes or hours) ?  

 

 

 

Thanks

8 Comments
Discussion (8)2
Connectez-vous ou inscrivez-vous pour continuer
Article
· Mai 2, 2024 3m de lecture

LinuxでODBC接続を行う方法

こちらの記事では、LinuxでODBC接続の設定を行う方法をご紹介します。


はじめに、Linuxのバージョンを確認します。

$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.4 (Plow)"
:


1. yumパッケージのアップデートを行います

$ sudo yum update


2. unixODBCをインストールします

$ sudo yum install unixODBC

確認します

$ which odbcinst
/usr/bin/odbcinst
$ which isql
/usr/bin/isql
$ odbcinst -j
unixODBC 2.3.9
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /home/ec2-user/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8


3. IRISクライアントをインストールします

※Linuxのバージョンにあったインストーラを使用してください。

$ cd IRIS-2024.1.0.262.0-lnxrh9x64

$ sudo ./irisinstall_client
Your system type is 'Red Hat Enterprise Linux 9 (x64)'.
Enter a destination directory for client components.
Directory: /intersystems/iris
Directory '/intersystems/iris' does not exist.
Do you want to create it <Yes>?
Installation completed successfully


4. 構成ファイルの作成をします

※SYSTEM DATA SOURCES: /etc/odbc.ini に以下を追加します

[ODBC Data Sources]
InterSystemsODBC6435 = InterSystemsODBC6435

[InterSystemsODBC6435]
Description=InterSystems ODBC
Driver = /intersystems/iris/bin/libirisodbcur6435.so
Setup = /intersystems/iris/bin/libirisodbcur6435.so
Unicode SQLTypes = 1
Host=***.***.***.***
Namespace=USER
UID=_SYSTEM
Password=SYS
Port=1972
$ sudo vi /etc/odbc.ini 


5. 環境変数:ODBCINIの登録をします 

※すべてのユーザで使用できるよう、環境変数を永続化させます。

$ sudo vi /etc/profile

# ---- 以下を追加
export ODBCINI=/etc/odbc.ini

(設定を反映させるために、一度ログアウトして再度ログインします)

$ echo $ODBCINI
/etc/odbc.ini

※ご参考:初期化ファイルの名前と場所


6. IRISへのODBC接続確認をします

$ isql -v InterSystemsODBC6435
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> SELECT count(*) FROM INFORMATION_SCHEMA.TABLES
+---------------------+
| Aggregate_1         |
+---------------------+
| 429                 |
+---------------------+
SQLRowCount returns 1
1 rows fetched
SQL>

 

今回は、IRISクライアントインストールで試しましたが、ODBCドライバ単体のインストールも可能です。
詳細は以下のドキュメントをご覧ください。
UNIX® システムでの ODBC のインストールと検証


ODBCデータソースの定義についての詳細は、以下のドキュメントをご覧ください。
UNIX® での ODBC データ・ソースの定義
 

enlightened【ご参考】
PyODBC経由でIRISに接続するAWS Lambda関数を作成するまでの流れ
LinuxでJDBC接続を行う方法

Discussion (0)0
Connectez-vous ou inscrivez-vous pour continuer