Skip to content

mwaseem75/iris-embedded-python-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

InterSystems FHIR Client Get Resources information from FHIR Server. Command Line utility and Web interface.

Application Layout

image

Online Demo

https://medicaldatasets.demo.community.intersystems.com/csp/datasets/index.csp by using SuperUser | SYS

Datasets List

Features

  • Retrieve all the resource list
  • Retrieve already defined resources
  • List Resource details
  • List Resource details from command prompt and from web interface
  • Patient and Observation resource CRUD operations
  • Interoperability PEX
  • Programatically add any open source FHIR Web server
  • Smart on FHIR application details

Recommendation

How to Run

To start coding with this repo, you do the following:

  1. Clone/git pull the repo into any local directory
git clone https://github.com/mwaseem75/DataSetProj.git
  1. Open the terminal in this directory and run:
docker-compose build
  1. Run the IRIS container with your project:
docker-compose up -d

Installation with ZPM

zpm "install dataset-medical"

Repo Contents

  • Dockerfile, docker-compose.yml, and Installer.cls to create container
  • iris.script, contains script to execute during container initialization
  • /src with source files
  • /.vscode/settings.json for automatic server connections when opened in VS Code.

Requirements:

Getting Started

Importing DataSet from Terminal

Connect to IRIS Terminal
docker-compose exec iris iris session iris
Change Namespace to DATASETS
ZN "DATASETS"
Run below command to import Synthetic Medical Data dataset by passing dataset ID(1)
do ##class(dc.data.medical.utility).ImportDS(1)

image 11 Tables are created, 83,341 Records Loaded successfully, 140 errors Reported

Use of %SQL_Diag.Result and %SQL_Diag.Message to check errors

As you noticed previous LOAD DATA returns 140 errors. To check the error details we will use %SQL_Diag.Result and %SQL_Diag.Message tables. We need diag ID to check detail which in our case is 5 (Last column in previous snapshot)

We will use Management Portal SQL to check the details

Open Management Portal SQL and type below SQL command to check details in %SQL_Diag.Result table against Diag ID

SELECT * FROM %SQL_Diag.Result WHERE ID = 5

image and to check the details of 140 errors type below SQL command

SELECT * FROM %SQL_Diag.Message WHERE severity = 'error' and diagResult = 5

image System is displaying details of 140 errors. Please note that we are passing same %SQL_Diag.Result ID to diagResulg column

Importing DataSet from Web Application

Navigate to http://localhost:52773/csp/datasets/index.csp and press Install DataSet button image image

Dataset is imported successfully

image

View Data from Web Application

Navigate to http://localhost:52773/csp/datasets/index.csp and click any table from sidebar

image

Export Data from Web Application

Navigate to View Datasets and select particular dataset, click Excel,CSV or PDF button to export data

image

Removing DataSet from Terminal

Run below command to Remove Synthetic Medical Data dataset by passing dataset ID(1)
do ##class(dc.data.medical.utility).RemoveDS(1)

image

Removing DataSet from Web Application

Navigate to http://localhost:52773/csp/datasets/index.csp and press Remove DataSet button

image

Dataset is removed successfully

image

Importing all DataSets at once

Run below command to Import all datasets by passing ID 999
do ##class(dc.data.medical.utility).ImportDS(999)

image

Removing all DataSets at once

Run below command to Remove all datasets by passing ID 999
do ##class(dc.data.medical.utility).RemoveDS(999)

image

Check Status of DataSet

Run below command to check the status of particular DataSet by passing DataSet ID,
do ##class(dc.data.medical.utility).GetStatusDS(1)

image

Run below command to check the status of all Datasets
do ##class(dc.data.medical.utility).GetStatusDS(999)

Other information

Template used in web application is from Bootstrap 4 Admin Dashboard and it is free to use to develop non-commercial applications.

Thanks

About

The simplest template to run embedded python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 68.6%
  • Python 14.0%
  • CSS 9.2%
  • ObjectScript 7.8%
  • Dockerfile 0.4%