Question Dikshit Sharma · Mar 18

Convert XML message to HL7 message

Hi Communtiy,
I am a begineer who is working and trying to understand Intersystems. I am developing an Ensemble interface which receives a XML message and converts it into HL7 format without using enslib.HL7 classes. 
Requirement


1. My file consists of patient details which needs to be updated in a sql table whenever the same patient arrives. We need to check if the patient exists and convert it into a pId segment.
2. we have encounter, observation details and need to convert these in HL7 ADT ^A01 message, please find the xml example below

<patient>
 <firstname>John</firstname>
 <givenname>Doe</givenname>
 <age>40</age>
 <mrn assigningAuthority="HospitalSystem">MRN12345</mrn>
 <address>
   <street>123 Main Street</street>
   <city>New york</city>
   <state>New york</state>
 </address>
</patient> 
<encounter>
 <encounterNumber>1234</encounterNumber>
 <type>Inpatient</type>
</encounter> 
<observation>
 <type>BloodPressure</type>
 <value>120/80</value>
 <unit>mmHg</unit>
</observation> 
<observation>
 <type>Temperature</type>
 <value>98.6</value>
 <unit>F</unit>
</observation>

let me know how to convert this message.

Product version: IRIS 2025.3
$ZV: IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2025.3 (Build 226U)

Comments

Julian Matthews · Mar 18

What's the reason for not using the EnsLib.HL7 classes for your Ensemble interface?

0
Dikshit Sharma · Mar 20

I am using edition and learning how services,process,operation works in objectscript

0
Dikshit Sharma · Mar 23

Any suggestions? I am just curious if there is any other way of doing this because the edition version that i am using right now runs using a docker image and i don't see any HL7 specific libraries

0
Luis Angel Pérez Ramos  Mar 23 to Dikshit Sharma

IRIS doesn't have specific libraries to work with health standards like HL7 or DICOM, you need IRIS for Health distribution.

0