HPRIM Complex RecordMap

66 views
Skip to first unread message

r.be...@solilog.fr

unread,
Jan 17, 2014, 12:24:40 PM1/17/14
to Ensemble-in...@googlegroups.com

Hello everyone ,

I've created the following complex RecordMap , in order to map and transport HPRIM ORU messages in an ensemble Production. Here is the ORU recordMap schema :



Then i used that Complexmap for creating a EnsLib.RecordMap.Service.ComplexBatchFileService ServiceOperation . I set its target as an EnsLib.RecordMap.Operation.ComplexBatchFileOperation Operation business. It's a simple routing of HPRIM message without any transformation.
The issue is that there is some problems with mapping the message , I find the following message error :

and a similar one :


and this is the input HPRIM message :

H|~^\&|||AHP~American Hospital of Paris||ORU|||RM59~PMC Urgences||P|H2.1~C|201211291225
P|1|1000115|A10052576907|120003293|REPORT~TEST||19850525|M||1 RUE DES TESTS~~PERIGUEUX~~24000|||||||||||||||~~US15
OBR|1|~5670859#RX_201211291109|~A10052576934|AMBQ0001~Radiographie : bras|R|20121129121700|20121129121700||||N|||20121129121700|SC&SCANNER&L|~~~RM59~PMC Urgences~L||||A10052576908||20121129122400||MI01~Unité de Radiologie|P|||||||921168548~ACKERMANN BONAN&Isabelle~L|
OBX|1|FIC|AMBQ0001~Radiographie : bras|A10052576934|XPLORE~A10052576934.DOC~Word||||||P
L|1

As you can see only The header and the footer segment (H and L ) have been mapped.All the other segments were ignored.

Any clues about that ? Thank you
Raouf




Joshua Goldman

unread,
Jan 17, 2014, 6:38:53 PM1/17/14
to Ensemble-in...@googlegroups.com

It’s a little hard to see what’s happening without the RecordMaps. Does the H record map specify a CRLF record terminator and does the data contain the right terminator? It is possible that if the terminator doesn’t match, the Record Map for the header considers the P1, OBR, and OBX records as part of the header. If that’s the problem, the complex record mapper won’t consider it an error because the P1, OBR, and OBX records are optional.

 

Is it possible to send the XML definitions of the complex record map and the record maps?

 

What version of Ensemble are you using? 2013.1?

 

One thing that I noticed was that the bread crumbs in the screen shot show “Ensemble, Record Mapper”, but it should show “Ensemble, Complex Record Mapper”.

 

I assume that the leading text for the record maps are “H”, “P”, “OBR”, “OBX”, and “L”.

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Joshua Goldman

unread,
Jan 18, 2014, 11:38:05 AM1/18/14
to Ensemble-in...@googlegroups.com, r.be...@solilog.fr

I generated RecordMaps using the CSV wizard and then created a complex record map. The message trace from the test production seems to show the P, OBR, and OBX records. I’ve included the XML for the message trace, record maps, complex record map, and production.  In most cases I just used the default field names from the CSV wizard. I’m running 2013.1.

 

Let me know if this helps and what problems were in your record maps, complex record map, or production. I’ll make sure that the documentation covers that area sufficiently.

 

Good luck.

 

Joshua Goldman

Ensemble documentation

 

I’m including a few screen shots, but you should be able to import the XML files.

 

My complex record map is

 

 

The Header record map starts with

 

CustOBXRM.xml
CustPRM.xml
Export-User_TestCM-20140118111239.xml
CustComplexRMtData.txt
CustLRM.xml
CustOBRRM.xml
MessageTrace.xml
CustHRM.xml

Joshua Goldman

unread,
Jan 18, 2014, 12:09:00 PM1/18/14
to Ensemble-in...@googlegroups.com, r.be...@solilog.fr

I don’t think I included the complex record map definition. This single export of the production contains all needed record maps and complex record map. You should be able to import the XML file and then start the production.

 

From: Joshua Goldman
Sent: Saturday, January 18, 2014 11:38 AM
To: Ensemble-in...@googlegroups.com
Cc: 'r.be...@solilog.fr'
Subject: RE: [InterSystems-EnsHlth] HPRIM Complex RecordMap

 

I generated RecordMaps using the CSV wizard and then created a complex record map. The message trace from the test production seems to show the P, OBR, and OBX records. I’ve included the XML for the message trace, record maps, complex record map, and production.  In most cases I just used the default field names from the CSV wizard. I’m running 2013.1.

 

Let me know if this helps and what problems were in your record maps, complex record map, or production. I’ll make sure that the documentation covers that area sufficiently.

 

Good luck.

 

Joshua Goldman

Ensemble documentation

 

I’m including a few screen shots, but you should be able to import the XML files.

 

My complex record map is

 

 

The Header record map starts with

 

 

From: Ensemble-in...@googlegroups.com [mailto:Ensemble-in...@googlegroups.com] On Behalf Of Joshua Goldman
Sent: Friday, January 17, 2014 6:39 PM
To: Ensemble-in...@googlegroups.com
Subject: RE: [InterSystems-EnsHlth] HPRIM Complex RecordMap

 

It’s a little hard to see what’s happening without the RecordMaps. Does the H record map specify a CRLF record terminator and does the data contain the right terminator? It is possible that if the terminator doesn’t match, the Record Map for the header considers the P1, OBR, and OBX records as part of the header. If that’s the problem, the complex record mapper won’t consider it an error because the P1, OBR, and OBX records are optional.

Export-User_TestCMFull.xml
Reply all
Reply to author
Forward
0 new messages