Encontrar

Article
· 24 min ago 1m read

Cargad datos en servidores (locales o remotos) directamente desde VS Code.

Me complace anunciar la publicación de gj :: dataLoader, una nueva extensión de VS Code que simplifica la tarea de cargar datos desde archivos CSV locales en tablas SQL de vuestros servidores InterSystems IRIS.

Aquí tenéis un vídeo introductorio:

gj :: dataLoader ya está disponible en Marketplace para su instalación directa en VS Code. Es mi propuesta para el concurso “Bringing Ideas to Reality” 2025 y lleva a la práctica esta idea: https://ideas.intersystems.com/ideas/DPI-I-667

Se agradecen vuestros comentarios.

Discussion (0)1
Log in or sign up to continue
Question
· 2 hr ago

Top Electronics to Buy in Pakistan – A Complete Guide by Yasir Electronics

Finding reliable and affordable home appliances in Pakistan can be challenging, especially with so many brands and models available. Yasir Electronics, a trusted e-commerce store for electronics and home appliances, makes this process simple by offering genuine products, fast delivery, and competitive prices. Whether you’re upgrading your kitchen, improving your home cooling system, or looking for energy-efficient appliances, here is a helpful guide to the best options available in Pakistan.

1. DC Inverter AC in Pakistan

Energy efficiency has become a top priority for every household. A Dc Inverter Ac in Pakistan is now the most popular choice because it consumes less electricity, provides faster cooling, and maintains a stable temperature. Yasir Electronics offers a variety of inverter AC brands that fit different room sizes and budgets. Whether you need a 1-ton or 1.5-ton model, you can find energy-saving options that help reduce electricity bills throughout the summer.

2. Samsung AC Price in Pakistan

Samsung is known for reliability and advanced cooling technology. If you’re looking for a premium option, checking the Samsung Ac Price in Pakistan
can help you find a model that suits your needs. Samsung ACs come with powerful compressors, smart control features, and long-term durability, making them a great investment for modern homes.

3. Fryer Price in Pakistan

Air fryers have become essential for kitchens because they offer healthier cooking with minimal oil. The Fryer Price in Pakistan
varies depending on size, features, and brand. Yasir Electronics provides a range of fryers—from compact models for small families to larger ones with multiple cooking modes. These fryers are perfect for anyone who wants fast, oil-free meals without compromising taste.

4. Samsung Refrigerator

A Samsung Refrigerator is one of the most reliable cooling appliances you can bring home. Known for strong cooling performance, modern design, and advanced features like digital inverter compressors and frost-free technology, Samsung refrigerators ensure long-lasting freshness for your food. They are available in single-door, double-door, and side-by-side options.

5. Samsung Washing Machine

Samsung is also a leader in laundry technology. A Samsung Washing Machine offers powerful washing performance, energy efficiency, and gentle fabric care. With features like eco-bubble technology, quick wash modes, and smart sensors, these machines make laundry faster and more convenient.

6. Samsung Microwave Oven

A Samsung Microwave Oven is perfect for quick cooking, reheating, and defrosting. With multiple built-in cooking programs and even heating, Samsung microwaves provide both convenience and consistency. They are ideal for busy families and modern kitchens.

7. Hitachi Refrigerator Price in Pakistan

If you prefer premium Japanese technology, checking the Hitachi Refrigerator Price in Pakistan can help you find high-end models with advanced cooling systems. Hitachi refrigerators are known for their durability, powerful compressors, and large storage capacity. They are a great choice for families who want long-lasting performance.

Discussion (0)1
Log in or sign up to continue
Announcement
· 9 hr ago

InterSystems 开发者社区中文版:每月摘要(2025年11月)

您好,欢迎了解InterSystems 开发者社区中文版2025年11月摘要信息。
统计信息
✓ 十一月共发布了 17 篇新帖子:
 10篇新文章
 7个新公告
✓ 十一月有 14 位新成员加入
✓ 截至目前共发布了 2,441 篇帖子
✓ 截至目前共有 2,305 位成员加入
热点文章
文章
#InterSystems IRIS
 
#InterSystems IRIS for Health
 
公告
十一月, 2025Month at a GlanceInterSystems Developer Community
Discussion (0)1
Log in or sign up to continue
Article
· 9 hr ago 4m read

使用IRIS互操作生产环境创建FHIR响应

当我们在 IRIS 中创建 FHIR 资源库时,我们有一个端点来访问信息、创建新资源等。但 FHIR 中有些资源可能不会出现在我们的资源库中,例如二进制资源(该资源返回文档,如 PDF)。

我创建了一个例子,当请求二进制资源时,FHIR 端点会返回一个响应,就像它存在于资源库中一样。

首先,我们需要一个命名空间和一个 FHIR 端点。然后,我们需要配置一个将连接到 FHIR 端点的互操作生产环境。该生产环境必须包含以下项目:

  • 业务操作:
    • HS.Util.Trace.Operations(事实上这是可选项,但非常有用)
    • HS.FHIRServer.Interop. OperationTraceOperations属性设置为 *FULL*
  • 业务服务:
    • HS.FHIRServer.Interop.ServiceTraceOperations属性设置为 *FULL*,目标配置名称设置为 HS.FHIRServer.Interop.Operation名称

生产环境如下所示:

创建此生产环境后,我们需要将其与FHIR端点连接。因此,编辑FHIR端点并将Service Config Name参数设置为业务服务(Business Process的名称:

现在,如果我们开始向 FHIR 资源库发送请求,就会在消息查看器(Message Viewer中看到所有跟踪信息:

现在,我们可以通过业务流程来控制如何处理特定路径。

在这个例子中,我们有一个业务流程来接收每个请求(现在业务服务连接到了这个业务流程,而不是业务操作),还有 2 个新的业务操作来执行稍后将解释的其他操作:

让我们来看看名为FHIRRouter 的业务流程:

如果我们查看一下,就会发现如果RequestPath包含 "Binary/",我们就会对该请求进行处理:生成我们自定义的二进制响应。否则,我们将直接把请求发送到 FHIR 资源库。

让我们来看看名为 "生成二进制 "的序列:

首先,我们创建一个HS.FHIRServer.Interop.Response 的新实例。然后从请求路径中获取文档 ID。如何获取?每次有人需要二进制资源时,都必须在 URL 路径中请求文档的 ID,比如:..../fhir/r4/Binary/XXXXX。因此,我们使用以下表达式从请求路径中提取文档 ID:

$Replace(request.Request.RequestPath,"Binary/","")

(虽然不是很优雅,但还是可以用的)。

如果有了文档 ID,我们就会调用名为 "查找(Find)" 的业务操作来查找与该文档 ID 相关的文件名:

事实上,"查找(Find)"业务操作总是返回相同的文件名:

这是我们能做什么的一个例子。

如果我们有一个文件名,那么就可以调用另一个名为File业务操作来获取以 base64 编码的文件内容:

最后,我们可以返回两种响应:

  • 如果没有文件内容(因为没有文件 ID 或找不到相关的文件名或内容),我们会返回404 响应,并给出自定义响应:
 set json = {
    "resourceType": "OperationOutcome",
    "issue": [
        {
            "severity": "error",
            "code": "not-found",
            "diagnostics": "<HSFHIRErr>ResourceNotFound",
            "details": {
                "text": "No resource with type 'Binary'"
            }
        }
    ]
 }
 set json.issue.%Get(0).details.text = json.issue.%Get(0).details.text_" and id '"_context.docId_"'"
 set qs = ##class(HS.SDA3.QuickStream).%New()
 do qs.Write(json.%ToJSON())
 set response.QuickStreamId = qs.%Id()
 set response.ContentType = "application/fhir+json"
 set response.CharSet = "UTF-8"
  • 如果有文件内容,则返回200 响应,并附带以下自定义响应:
 set json = {
  "resourceType": "Binary",
  "id": "",
  "contentType": "application/pdf",
  "securityContext": {
    "reference": "DocumentReference/"
  },
  "data": ""
 }
 set json.id = context.docId
 set json.securityContext.reference = json.securityContext.reference_json.id
 set json.data = context.content.Read(context.content.Size)
 
 set qs = ##class(HS.SDA3.QuickStream).%New()
 do qs.Write(json.%ToJSON())
 set response.QuickStreamId = qs.%Id()
 set response.ContentType = "application/fhir+json"
 set response.CharSet = "UTF-8"

这里的关键是创建一个包含 JSON 对象的HS.SDA3.QuickStream。并将此 QuickStream 添加到响应中。

现在,如果我们测试我们的端点,如果我们请求二进制文档,我们将看到响应:

如果我们请求一个不存在的二进制文档(可以通过不输入文档 ID 进行测试),我们将看到 404 响应:

总之,将我们的 FHIR 端点与互操作性连接起来,我们就可以利用 InterSystems IRIS 的所有功能做任何我们想做的事情。

Discussion (0)1
Log in or sign up to continue
Article
· 10 hr ago 5m read

OMOP Odyssey - Databricks AI/BI Genie を使ってノーコードでCDM検索(アイオロス島編)

Databricks Genie と InterSystems OMOP によるノーコード Text-to-SQL

Discussion (0)0
Log in or sign up to continue