Reply
Frequent Visitor
Posts: 3
Registered: ‎03-14-2017

ElasticSearch with HL7

I'm trying to use PowerBI with connection to an ElasticSearch database (with Hl7 messages).
I can already see the data, but some of those are only (as far as I can see)  in the Raw_message and Message column.

 


I can split this column into several by indicating the carriage return as a separator and indicating the number of columns to create.

after this i got lines with :

 

MSH|^~`&|XXX REPORTING|ROLIN|ROY|ROLIN|20170318050440||ORI^P01|20170318050440|X|7.1
PID|||999999999||TEST^ME||18450101|M
OBX||ST|12000.4^PR INTERVAL(MSEC)^CPT8|2|218|MSEC
OBX||ST|33000.5^QRS - INTERVAL(MSEC)^CPT9|3|78|MSEC

 

how can i disregard some lines ( for instance lines begin with 'MSH') ?

i can i work with this information ?

do you have any experience whit this ?

 

best regards

Sumsang

 

Moderator
Posts: 2,848
Registered: ‎03-06-2016

Re: ElasticSearch with HL7

@SumSang

You could try to add a custom column and filter on that column.

 

Text.Start([raw_message],Text.PositionOf([raw_message],"|"))

 

Capture.PNG