发布新帖

查找

问题
· 二月 5

Splitting stream into HL7 messages

Hi,

I want to consume an API that provides HL7 messages. To achieve this, I have thought of the following workflow:

I have created a business service that periodically triggers a business process. The trigger request is forwarded to a business operation. There, a %Net.HttpRequest is assembled from scratch and then sent to the API endpoint. The corresponding HttpResponse then contains several HL7 messages encoded in UTF-8 in the message body. To further process the HL7 messages, the operation sends the HttpResponse back to the business process as EnsLib.HTTP.GenericMessage.

The raw data looks like this:

MSH|^~\&|Doctolib||Doctolib||20251028154100||SIU^S12|d50f01e649cda79faf29|P|2.5.1|||||FRA|UTF-8
SCH||20771389^Doctolib||||Vor.Tagesk^Vorgespräch für Tagesklinik|||||^^15^202511101000|||||117134^Mustermann^Stefan||||Doctolib|||||Booked
NTE|||Hier der Inhalt des Notizfeldes.  Achten Sie auf Umlaute: ä ö ü   (UTF-8)
PID|||56834111^^^Doctolib^PI||Testfrau^Liselotte^^^^^L||19690722|F|||||+4917612345678^^^liselotte@test.de~+4940123456
RGS|1
AIG|1|||Vorg-Tagesklinik^Vorgespräche Tagesklinik
MSH|^~\&|Doctolib||Doctolib||20251028154114||SIU^S13|39e482e10fa61ccd4500|P|2.5.1|||||FRA|UTF-8
SCH||20771389^Doctolib||||Vor.Tagesk^Vorgespräch für Tagesklinik|||||^^15^202511141600|||||117134^Mustermann^Stefan||||Doctolib|||||Booked
NTE|||Hier der Inhalt des Notizfeldes.  Achten Sie auf Umlaute: ä ö ü   (UTF-8)
PID|||56834111^^^Doctolib^PI||Testfrau^Liselotte^^^^^L||19690722|F|||||+4917612345678^^^liselotte@test.de~+4940123456
RGS|1
AIG|1|||Vorg-Tagesklinik^Vorgespräche Tagesklinik
MSH|^~\&|Doctolib||Doctolib||20251028154225||SIU^S17|1e5726345c7b4257b41f|P|2.5.1|||||FRA|UTF-8
SCH||20771388^Doctolib||||Vor.Tagesk^Vorgespräch für Tagesklinik|||||^^15^202511121600|||||117134^Mustermann^Stefan||||Doctolib|||||Deleted
NTE|||Hier der Inhalt des Notizfeldes
PID|||56834102^^^Doctolib^PI||Testmann^Heinrich^^^^^L||19881211|M|||||+4917612345678^^^heinrich@test.de~+4940123456
RGS|1
AIG|1|||Vorg-Tagesklinik^Vorgespräche Tagesklinik

 

The next step would be to split the message body into individual HL7 messages and then forward them accordingly. But splitting them up is causing me problems. In the message viewer, the stream is still displayed with line breaks. First, I tried to read the stream line by line and then save the individual streams in a collection (%ListOfObjects). However, the line breaks seem to get lost in the process.

Then I tried to save it in a collection of strings using the string “MSH|” (the start of the message) to split the stream. That worked, but unfortunately there were problems when converting the string to an EnsLib.HL7.Message because the framing did not fit.

How would you go about turning a stream with multiple HL7 messages into individual HL7 messages?

Regards

Robert

2 条新评论
讨论 (2)3
登录或注册以继续
Job
· 二月 5

Intersystems Cache & Iris Developer - Object Script. Remote (UK company)

Developer required to join a team working with and extending an existing CACHE application and subsequent migration to IRIS.

4yrs Minimum experience.

Applicants must have good general knowledge of development approaches and patterns.

SQL 

Opportunity from 6 Month contract to Permanent, depending on experience. Immediate start

Applications to chris.clipston@mtivity.com

讨论 (0)1
登录或注册以继续
文章
· 二月 5 阅读大约需 14 分钟

Présentation des fonctions de fenêtre SQL (3ème partie)

Dans cette dernière partie de notre présentation des fonctions de fenêtre, nous allons explorer les fonctions restantes qui n'ont pas encore été abordées. Vous découvrirez également des conseils de performance et un guide pratique pour vous aider à décider quand il convient (ou non) d'utiliser efficacement les fonctions de fenêtre.

讨论 (0)2
登录或注册以继续
公告
· 二月 5

[Vídeo] Eliminando el miedo a FHIR: acelerando la preparación de la organización para FHIR

¡Hola comunidad!

Nos alegra compartir un nuevo vídeo de nuestro YouTube de InterSystems Developers:

Eliminando el miedo a FHIR: acelerando la preparación de la organización para FHIR @ Ready 2025

Los evangelistas de FHIR llevan más de una década promocionando el estándar, pero ¿qué se necesita para convertir la expectativa en realidad? Esta sesión explora los casos de uso específicos y las necesidades de diferentes organizaciones, destacando factores clave de éxito y lecciones aprendidas. Descubre cómo la formación basada en casos de uso puede ayudarte a aprovechar eficazmente las funcionalidades de FHIR en InterSystems IRIS for Health y HealthShare Unified Care Record.

🗣Ponente: @Chi Nguyen-Rettig, LEAD North

¿Te interesa conocer las mejores prácticas? ¡Mira el vídeo y suscríbete para ver más!

讨论 (0)1
登录或注册以继续
公告
· 二月 5

即将推出的 InterSystems CCR EHR 应用专家认证考试需招募 Beta 测试员

各位 InterSystems EHR 社区成员,大家好,

InterSystems 认证部目前正在开发针对 CCR Tier 2 用户的认证考试。如果您符合下方的考生描述,我们需要您来参与考试的 Beta 测试!该考试将于 2026年1月27日 开始进行 Beta 测试。

Beta 测试将于 2026年3月28日 结束。

作为 Beta 测试员,我的职责是什么?

作为 Beta 测试员,我们需要您在 2026年3月28日 之前安排并参加考试。考试将在免费的在线监考环境中进行(所有 Beta 测试员均免除每门考试 150 美元的标准费用)。

随后,InterSystems 认证团队将对所有 Beta 测试数据进行仔细的统计分析,以设定考试的通过分数。Beta 测试结果的分析通常需要 6-8 周的时间。一旦确定通过分数,您将收到来自 InterSystems 认证部的电子邮件通知,告知您结果。如果您的考试分数达到或超过通过分数,您将获得该认证!

讨论 (0)1
登录或注册以继续