Nouvelle publication

Rechercher

Question
· Fév 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
Discussion (7)2
Connectez-vous ou inscrivez-vous pour continuer
Article
· Fév 27 7m de lecture

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/ です。

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Fév 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
Discussion (4)1
Connectez-vous ou inscrivez-vous pour continuer
Article
· Fév 26 2m de lecture

埋め込み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 の後でのみ有効性が保証されます。 
Discussion (0)0
Connectez-vous ou inscrivez-vous pour continuer
Annonce
· Fév 26

[Video] Unit Testing with IPM

Hey Community,

Enjoy the new video on InterSystems Developers YouTube:

⏯ Unit Testing with IPM

This is a demo of how to add unit tests to an IRIS application using the InterSystems Package Manager. Covered are how to create new unit tests, the Package Manager commands to run tests, and how to track code coverage statistics using the ObjectScript TestCoverage package.

🗣  Presenter: @Pravin Barton, Principal Applications Developer, InterSystems

Enjoy watching, and look for more videos! 👍

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