查找

お知らせ
· 2025年2月27日

Noticias de InterSystems Ideas #19

Hola Comunidad!

Bienvenidos al número 19 del boletín Ideas de InterSystems. Esta edición destaca las últimas noticias del Portal de Ideas, tales como:

✓ Estadísticas generales
✓ Nuevo sorteo «Búsqueda DC
✓ Nuevas ideas para apoyar

   He aquí algunas cifras del mes de enero. Durante este mes, tuvimos

8 nuevas ideas
1 idea aplicada
8 comentarios
24 votos
👏 Gracias a todos los que contribuyeron de alguna manera al Portal de Ideas el mes pasado.

Tras el rotundo éxito del sorteo anterior, hemos lanzado uno nuevo dedicado a la búsqueda en DC. Comparte tu(s) idea(s) sobre cómo podemos mejorar nuestra búsqueda y participa en la carrera para ganar un premio. Más detalles en el anuncio.

 Para terminar este boletín, echad un vistazo a las ideas enviadas al Portal de Ideas el mes pasado. Tal vez encontréis algo por lo que votar o incluso poner en práctica.

Idea Autor Estado
Tipo de datos JSON nativo exclusivo para JSON Ashok Kumar Consideración futura
Opción para asignar append a escape automáticamente en el editor DTL Mark OReilly Necesita revisión
Añadir envoltorio InterSystems para Supabase Evgeny Shvarov Oportunidad de la Comunidad
Proporcionar lista para exportación Lewis Houlden Necesita revisión
Cargar datos en VSCode Yuri Marx Oportunidad de la Comunidad
Concurso de "soluciones arquitectónicas" IRIS Yuri Marx Necesita revisión
Introducir soporte para Flyway en IRIS Evgeny Shvarov Oportunidad de la Comunidad
Añadir soporte para SQL Host Variables Robert Cemper Hecha por la comunidad

✨ Compartid vuestras ideas, apoyad vuestras favoritas con comentarios y votos, ¡y dad vida a las que creáis que más importan a la comunidad de desarrolladores! 🙏

ディスカッション (0)0
続けるにはログインするか新規登録を行ってください
質問
· 2025年2月27日

Searching InterSystems FHIR Server for specific Encounter (based on peroid)

Hi guys,

I am looking for a way to search for FHIR Encounter resources from an InterSystems FHIR server where there period.start is before or after a certain time. I can´t get my head around which would be a correct way to do this since docs and FHIR spec is not clear to me which fields can be used for searching with wich prefixes.

In my local InterSystems FHIR server I have a set of Encounter ressources, each set with a period.start and (possibly) a period.end. I´d like to retrieve all Encounters with a start date time prior to a given datetime. I did a little testing with URL parameters.

// retrieve encounters with a start prior to 2024-10-25T15:30:00Z
http://localhost:54107/csp/healthshare/ukerhirservernew/fhir/r4/Encounte...
http://localhost:54107/csp/healthshare/ukerhirservernew/fhir/r4/Encounte...

But none of the calls returned the correct set of encounters I expected. I´am not sure If I get the whole idea of searching for periods wrong or if it has something to do with the way period (datatype) information are stored and indexed within the InterSystems FHIR server.

Any idea or hint would be hihgly apreciated.

Best regards,
sebastian

7 Comments
ディスカッション (7)2
続けるにはログインするか新規登録を行ってください
記事
· 2025年2月27日 7m read

Iris における Flask アプリケーションの実行

Flask_logo

説明

これは、ネイティブウェブアプリケーションとして IRIS にデプロイできる Flask アプリケーションのテンプレートです。

インストール

  1. リポジトリをクローンする
  2. 仮想環境を作成する
  3. 要件をインストールする
  4. docker-compose ファイルを実行する
git clone
cd iris-flask-template
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
docker-compose up

使用法

ベース URL は http://localhost:53795/flask/ です。

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
質問
· 2025年2月26日

Program read answers from a OS file

Hi,
I want to automate a menu based program for which I don't have the source

If I run it interactively I do this:
do ^<program>

It presents a menu and then you can go down further menus

Based on the selection it may ask for answers to other questions.

Is there some way I give the program a "response" file?

If not would I be able to use I/O redirection for this task?
Inputs would come from a file.
Output should go to the terminal (so I monitor how far the process has gone)

I have seen some examples of redirection code and it seems quite complicated.

IRIS runs on a Linux server

4 Comments
ディスカッション (4)1
続けるにはログインするか新規登録を行ってください
記事
· 2025年2月26日 2m read

埋め込みSQL &SQL( select xxx into :var from ... ) としたとき、出力ホスト変数varに意図しない値が格納される場合があります

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

埋め込みSQLの出力ホスト変数は、SQLCODE=0(埋め込みSQL正常終了)の場合のみ、正しい値が設定されていることが保証されます。

InterSystems製品のバージョンによっては、SQLCODEが0以外の場合(該当データがない100やエラー等)で値が設定される場合もありますが、その値は無効です。

特に、IRIS2021.1以降のバージョンでは、SQLCODE=100 の場合、INTO 節で指定された出力ホスト変数は NULL("") にクリアされますので注意が必要です。

Cacheや、IRIS2020.x 以前のバージョンでは、明示的な値のクリアを行っておりませんでしたが、こちらについても値は保証されるものではありません。

埋め込みSQLを使用する場合は、必ずSQLCODEを確認してエラーチェックを行うようにして下さい。
また、エラーチェック以外でも、SQLCODE = 0(データあり) の場合と SQLCODE = 100(データなし) の場合は処理を分けるようにし、SQLCODE = 100 の場合は出力ホスト変数を参照しないようご注意ください。


例)
誤った使用例:

  &sql( select name into :name from sample.person where id = 1001 )
  If $Get(name)'="" { // <-- SQLCODE=0以外でnameの値は保証されない
      Write !,"Name = ", name
  } Else {
      Write !,"No such person"
  }



上記の変更例(正しい使用例):

  &sql( select name into :name from sample.person where id = 1001 )
  If SQLCODE=0 {
      Write !,"Name = ", name
  } ElseIf SQLCODE=100 {
      Write !,"No such person"
  } Else {
      Write !,"SQL ERROR: ",SQLCODE
  }


以下ドキュメントをご参照ください。
埋め込みSQLのホスト変数について【IRIS】
埋め込みSQLのホスト変数について


ホスト変数の値には以下のような制限事項があります。

  • 入力ホスト変数は、埋め込み SQL で変更されることはありません。 
  • 出力ホスト変数は、SQLCODE = 0 のときに埋め込み SQL の後でのみ有効性が保証されます。 
ディスカッション (0)0
続けるにはログインするか新規登録を行ってください