Article Kate Lau 路 Jan 5 3m read

Hi, now I would like to continuous on the topic that we talk about previously

Using Postman for testing the OAuth2.0 of the InterSystems FHIR repository - Part1

 


Question 1: Where is my client_id and client_secret come form?

Short answer: Authentication Server.

 

If you don't have an Authentication Server, you may set up one as following

 

Provide the hostname (the host must support Https), at least 1 grand type (we choose client credential here), and SSL/TSL configuration

 

Input the scopes (here we input user/*.read and user/*.

3
2 133
Article Kate Lau 路 Jan 1 4m read

Hi all, it's me again for sharing what I am studying recently.馃槗

 

Recently, I am studying how to setup OAuth2 authentication for the InterSystems FHIR repository. And I found the following articles are very good and easy to follow.馃榿

SMART on FHIR EHR Launch with IRIS for Health

Building an FHIR Repository + OAuth2 Authorization Server/Resource Server Configuration on IRIS for Health Part 2

 

For me, as a user who do not have much knowledge about OAuth2.0. I think it quite difficult to understand how to setup the whole OAuth2.0 environment before knowing how's it look like (what is it?

0
5 116
Article Kate Lau 路 Dec 12, 2025 3m read

Hi everyone. Long time no see. Again, I would like to share what I am studying recently Create Foreign Tables Using SQL via JDBC.

Since I am learning about the IRIS BI at the same time, so I started with this Sample-BI docker environment

https://github.com/intersystems/Samples-BI

 

After starting the environment, login to the management portal http://localhost:52773/csp/sys/UtilHome.csp  with the user Superuser.

Switch the namespace to IRISAPP.

 

馃榾 We will find out that all the sample data are stored in this namespace IRISAPP.

0
1 83
Article Kate Lau 路 Oct 13, 2025 5m read

Hi all,

 

It's me again 馃榿. In the pervious article Writing a REST api service for exporting the generated FHIR bundle in JSON, we actually generated a resource DocumentReference, with the content data encoded in Base64

 

Question!! Is it possible to write a REST service for decoding it? Because I am very curious what is the message data talking about馃馃馃

OK, Let's start!

1. Create a new utility class datagen.utli.decodefhirjson.cls for decoding the data inside the DocumentReference
 

Class datagen.utli.decodefhirjson Extends %RegisteredObject
{
}

2. Write a Python function decodebase64docref to 
a

2
2 166
Article Kate Lau 路 Oct 13, 2025 13m read

 

Hi all,

 

Let's do some more work about the testing data generation and export the result by REST API.馃榿

Here, I would like to reuse the datagen.restservice class which built in the pervious article Writing a REST api service for exporting the generated patient data in .csv

This time, we are planning to generate a FHIR bundle include multiple resources for testing the FHIR repository.

Here is some reference for you, if you want to know mare about FHIR The Concept of FHIR: A Healthcare Data Standard Designed for the Future

 

OK... Let's start馃槅

1. Create a new utility class datagen.utli.

6
0 169
Article Kate Lau 路 Oct 9, 2025 6m read

Hi,

 

It's me again馃榿, recently I am working on generating some fake patient data for testing purpose with the help of Chat-GPT by using Python. And, at the same time I would like to share my learning curve.馃槕

1st of all for building a custom REST api service is easy by extending the %CSP.REST

Creating a REST Service Manually

Let's Start !馃槀

1. Create a class datagen.restservice which extends  %CSP.REST 

Class datagen.restservice Extends %CSP.REST
{
Parameter CONTENTTYPE = "application/json";
}

 

2.

3
1 132
Announcement Kate Lau 路 Aug 12, 2025

#InterSystems Demo Games entry


鈴笍 Data Transformation Adventures with InterSystems IRIS

Navigating interoperability and healthcare can be an exciting adventure. In this demo, we will show you how InterSystems IRIS can be the perfect tool to get data - wherever it may lie, in whatever format, into a format of your choice, including FHIR! Once that is done, analytics is a piece of cake with the FHIR SQL Builder and Deep See Web. Let the questing begin!

Presenters:
馃棧 @Kate Lau, Sales Engineer, InterSystems
馃棧 @Merlin Wijaya, Sales Engineer, InterSystems
馃棧 @Martyn Lee, Sales Engineer, InterSystems
馃棧 @Bryan Hoon, Sales Engineer, InterSystems

0
0 86
Article Kate Lau 路 May 28, 2025 6m read

Hi everyone,

 

It's me again馃榿. As usual I would like to share something I study recently, and today, I would like to share about the document DB馃榿.

1st of all, let's go to the documentation https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GDOCDB_intro
Well, I must say, this one is much better to follow than the others, which I read before. 馃槶 Finally馃槶馃槶

 

Ok, let's start walking through it together

Here we go馃榾, we start a terminal from VSCode to connect to our IRIS

We are going to created Document DB demo.docpatient
 

 

1.

0
5 292
Article Kate Lau 路 Jan 2, 2025 5m read

Last Chapter: Creating a REST client to get Tracks from Spotify REST API - Part4 Save the Search Result

Git link: https://github.com/ecelg/InterSystems-IRIS-as-a-Spotify-REST-client

 

OK.... based on what I have done.... I am able to 

1. Query Track information by making use of the Spotify API

2. Store the necessary data into my own album, artists, and track table

 

so.... what next?馃 How about I set up my own REST API service on my IRIS for the other people to query my table?馃馃え

0
0 149
Article Kate Lau 路 Dec 31, 2024 8m read

Last Chapter: Creating a REST client to get Tracks from Spotify REST API - Part3 Get some data (e.g. Artists)

Git link: https://github.com/ecelg/InterSystems-IRIS-as-a-Spotify-REST-client

 

OK we create a method to get data and lets try to get some Tracks 馃榿

Now open a terminal and test the code

Run the following line

w ##class(rest.utli.requestUtli).getdata("Spotify","/search","offset=5&limit=10&query=Shape%20of%20you&type=track&market=SG")

ooooo no seems there is huge among of data returns.....馃槬

I would like to know what information can be found in 1 track.

0
0 152
Article Kate Lau 路 Dec 30, 2024 2m read

Last Chapter: Creating a REST client to get Tracks from Spotify REST API - Part2 Save and Refresh Token

Git link: https://github.com/ecelg/InterSystems-IRIS-as-a-Spotify-REST-client
 

Ok, now I am pretty sure i have a valid token for making query.馃榾

Shall we try to query something from the API.

Again, its time to go through the API document https://developer.spotify.com/documentation/web-api/tutorials/getting-started

Search for Request artist data

the suggested code is like the following

curl "https://api.spotify.
0
0 199
Article Kate Lau 路 Dec 30, 2024 2m read

Last Chapter:  Creating a REST client to get Tracks from Spotify REST API - Part1 Check out token

Git link: https://github.com/ecelg/InterSystems-IRIS-as-a-Spotify-REST-client

 

Ok... Now we can check out a token but it will be expired in 3600 seconds.

There are 2 questions come up馃

1. How to save this token????馃檮

2. How to refresh this token????馃え馃 

 

Lets come back to the API document https://developer.

0
0 216
Article Kate Lau 路 Dec 29, 2024 4m read

Git link: https://github.com/ecelg/InterSystems-IRIS-as-a-Spotify-REST-client

 

Recently, I come up an idea in my mind that how can I put my playlist on IRIS.馃

At the same time, I was told to pay for my Spotify subscription馃捀馃捀... ooo.. how about to get some data from the Spotify API... so I started to do study about it.

 

Like most of the development, let's start from Documentation of  the API https://developer.spotify.com/documentation/web-api

In order to get the data, i am required to request an access token from for the token endpoint URL.馃

curl -X POST "https://accounts.
2
2 323
Article Kate Lau 路 Oct 28, 2024 8m read

I am just writing something to share what I encountered last night, which is the IRIS 2024.3 does not comes with Python by default any more!!!

Which means that I need to install it by myself!!馃槄 The pros is, I can select my python version馃榿馃き馃拑 The trouble is.... at the first place.... I don't know what I should do馃槬. By going through the community (I am much more prefer than the official document, sorry InterSystems document team馃槗 ), I found the following piece 

https://docs.intersystems.com/iris20242/csp/docbook/DocBook.UI.

0
0 353
Article Kate Lau 路 Mar 15, 2023 2m read

In this article, I am trying to walk through my deploying step of IAM on my EC2(ubuntu).

What is IAM?

IAM is InterSystems API Manager
you may reference to the link below to get more idea about IAM

https://docs.intersystems.com/components/csp/docbook/Doc.View.cls?KEY=PAGE_apimgr

generated description: apimgr description.jpg

 

Before deploying IAM

Check the license of your API host

 

Enable the User IAM

 

Deploy IAM

Reference 

https://community.intersystems.com/post/introducing-intersystems-api-manager

 

Download the image from the following link

https://wrc.intersystems.com/wrc/coDistGen.

2
0 525
Article Kate Lau 路 Mar 12, 2023 1m read

Add a credential to login the FHIR REST interface - in this case only consider a basic authentication

 

 

Add Service Registry  - in this case only consider a basic authentication

- setup a HTTP service

- input the Path to the FHIR Server

- input the URL to the FHIR service

- use the credential profiled
 

 

Add a "HS.FHIRServer.Interop.HTTPOperation"

Choose the Service Name

 

Test the FHIR Client

 

Trace the test result

6
1 726