Rechercher

Anúncio
· Jul. 31

[Video] What Is InterSystems FHIR Server?

Hi, Community!

Are you building applications in a healthcare setting? See how InterSystems FHIR Server can help:

What Is InterSystems FHIR Server?

InterSystems Product Manager @Elijah Cotterrell explains how InterSystems FHIR Server helps you store, manage, and query healthcare data. In a brief demo, Elijah shows how you can:

  • Deploy a FHIR server.
  • Configure OAuth authentication.

You will also learn about two key tools—the Bulk FHIR Coordinator and FHIR SQL Builder—which allow you to scale your applications and perform analytics!

Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· Jul. 31 3min de leitura

Avoiding SQL Injection in InterSystems IRIS: The Case for Secure Query Practices

SQL injection remains one of the most critical vulnerabilities in database-driven applications, allowing attackers to manipulate queries and potentially access or compromise sensitive data. In InterSystems IRIS, developers have access to both Dynamic SQL and Embedded SQL, each with distinct characteristics. Understanding how to use them securely is essential for preventing SQL injection.

The Problem: Dynamic SQL and SQL Injection

Dynamic SQL constructs queries as strings at runtime. While this offers flexibility, it also creates a vulnerability if user input is not handled correctly. For example:

Set query = "SELECT Name, Age FROM Patients WHERE Age > "_age
Set statement = ##class(%SQL.Statement).%New()
Set status = statement.%Prepare(query)

If age is user-provided, concatenating it directly into the query string exposes the application to injection. An attacker might supply a malicious value such as 0; DROP TABLE Patients, with disastrous results.

The Solution: Parameterised Queries

Parameterised queries are the best defence against SQL injection. Rather than concatenating inputs into the query, user values are bound as parameters. Here is a secure approach using Dynamic SQL:

Set query = "SELECT Name, Age FROM Patients WHERE Age > ?"
Set statement = ##class(%SQL.Statement).%New()
Set status = statement.%Prepare(query)
If status {
    Set result = statement.%Execute(age)
    While result.%Next() {
        Write "Name: ", result.Name, ", Age: ", result.Age, !
    }
}

Here, the ? placeholder ensures the age value is treated strictly as data rather than executable code, significantly reducing the risk of injection.

Embedded SQL: Built-in Safety

Embedded SQL integrates SQL directly into ObjectScript, inherently protecting against SQL injection. The host variable syntax (:variable) securely binds parameters at compile time:

&sql(SELECT Name, Age INTO :name, :age FROM Patients WHERE Age > :minAge)

With Embedded SQL, there is no mechanism to concatenate raw user input directly into the query, thereby preventing injection.

Comparing Embedded SQL and Dynamic SQL

Feature Embedded SQL Dynamic SQL
Security Safe from injection due to host variables Secure if parameterised; risky if not
Flexibility Limited (static queries only) Highly flexible for dynamic scenarios
Searchability Easy to locate in class definitions Harder to analyse; queries are in strings
Performance Compiled at class compile time Parsed and optimised at runtime

When to Use Dynamic SQL

Dynamic SQL is useful when query structures must be determined at runtime, for example when adding optional filters:

Set query = "SELECT Name, Age FROM Patients"
If includeGender {
    Set query = query_" WHERE Gender = ?"
}
Set statement = ##class(%SQL.Statement).%New()
Set status = statement.%Prepare(query)
If status {
    Set result = statement.%Execute("Male")
}

Always remember to use parameterisation (?) for these dynamically built queries to maintain security.

Conclusion

Dynamic SQL allows for flexible query building but demands responsible usage to avoid SQL injection risks. Parameterised queries address this risk effectively. Meanwhile, Embedded SQL comes with built-in safeguards, making it an excellent choice for static queries. By using these approaches appropriately, developers can build robust, secure applications with InterSystems IRIS.

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Jul. 31

Has anyone built a tool to generate a %Installer Manifest from an existing IRIS system?

Hi everyone,

I’m working with an existing InterSystems IRIS server that hosts several web applications and namespace-specific code and data. I’d like to reverse-engineer the current environment into a %Installer.Manifest file so I can store it in Git and manage its changes.

My goal is to:

  • Track the application setup and configuration in version control
  • Rebuild environments consistently (namespaces, CSP apps, security roles, etc.)
  • Possibly automate deployments later on

I understand that %Installer is declarative and wasn’t necessarily designed to reflect a running system. But before I start building a tool or writing scripts to extract pieces (like web apps, packages, globals, roles…), I wanted to ask:

Has anyone already built something like this — a generator, exporter, or script that helps create a %Installer manifest based on the current state of an IRIS instance?

Even partial tools, tips, or lessons learned would be greatly appreciated!

Thanks in advance,

Andre-Claude

1 Comment
Discussão (1)3
Entre ou crie uma conta para continuar
Artigo
· Jul. 31 1min de leitura

Trois grandes tendances tech identifiées lors de READY 2025

À l’occasion d'InterSystems Ready 2025, @Guillaume Rongier a partagé sa vision de l’évolution du numérique à l’horizon 2026.

Parmi les insights clés issus de cet événement rassemblant experts et décideurs du monde entier, voici 3 grandes tendances à suivre de près :

1️⃣ L’essor d’une IA générative locale et sans friction
L'IA générative évoluera vers des LLMs locaux spécialisés et interconnectés, avec des interfaces intuitives remplaçant les prompts par des interfaces graphiques ou de l'autocomplétion.

2️⃣ L’émergence d'un nouveau métier : les “pilotes”
Les "pilotes" seront des utilisateurs intermédiaires entre développeurs et citizens développeurs, maîtrisant les outils d'IA générative pour créer des applications sans expertise logicielle approfondie.

3️⃣ Un nouveau paradigme d’architecture
Traiter les données là où elles sont stockées en rapprochant le calcul de la donnée pour gagner en performance, en sécurité et en efficacité.

Merci à tous les participants et intervenants de READY 2025 pour ces échanges riches et inspirants !

Discussão (0)1
Entre ou crie uma conta para continuar
Discussão (3)2
Entre ou crie uma conta para continuar