Advanced Programmatic FHIR Execution in InterSystems IRIS: Bypassing REST for ObjectScript Integration
Advanced Programmatic FHIR Execution in InterSystems IRIS: A Deep Dive into ...
Summary
InterSystems IRIS for Health allows developers to perform FHIR CRUD operations directly from ObjectScript routines, bypassing the standard HTTP REST layer. This method utilizes `HS.FHIRServer.Service` to achieve high performance by enabling native query construction, schema validation, and storage-level resource access.
Details
Standard FHIR implementations typically process requests through an incoming HTTP/REST pipeline. This article details how ObjectScript can bypass this standard web server dispatch layer entirely to interact directly with the core FHIR repository engine. This approach allows developers to build native query objects, manage sort parameters, validate schemas, and run storage-level searches or read records directly. The guide explains two methods for programmatically constructing query parameters: manual construction using `AddParameter()` for internal business logic, and automatic parsing using `CreateFromQueryString()` when handling raw HTTP requests. Furthermore, it details how to explicitly control advanced search features like sorting (`_sort`) and linking (`_include`/`_revinclude`) without relying on external HTTP endpoints.
Original content copyright by respective publishers