CONVERT HL7 MESSAGE INTO JSON USING MS .NET C#


https://aifazkh.gumroad.com/l/SpNOcN

This is pretty straight forward and fast way to parse HL7 message into JSON string then can be uses as their needs as in Mobile APP or Web App or Automation services at any part of healthcare.

It is fast because, it uses C# 4.5 async and await feature and neat, slick and smooth WPF windows APP.

How to Use :

1) Select or Browse HL7 Message file with only .hl7 extension from drive

2) Then just click on Convert button and within a second corresponding output with JSON format will be ready.





to view formatted JSON just go to the JSONLINT and paste Json output and click on validate Json, after json validation results will be like below :

{
"hl7": {
"@xml-space": "preserved",
"MSH": {
"@fieldDelimiter": "|",
"@componentDelimiter": "^",
"@repeatDelimiter": "~",
"@escapeDelimiter": "\\",
"@subcomponentDelimiter": "&",
"field": ["CERNER", null, "PriorityHealth", null, null, null, {
"#text": "ORU",
"component": "R01"
}, "Q1000000000000", "P", "2.3", null]
},
"PID": {
"field": [null, null, "001677980", null, {
"#text": "LAST",
"component": "FIRST"
}, null, "19680219", "M", null, null, null, null, null, null, null, null, null, "929645156318", "123456789", null]
},
"PD1": {
"field": [null, null, null, {
"#text": "1234567890",
"component": ["LAST", "FIRST", "M", null, null, null, null, "NPI"]
}, null]
},
"OBR": {
"field": ["1", {
"#text": "341856649",
"component": "HNAM_ORDERID"
}, "000002006326002362", {
"#text": "648088",
"component": "Basic Metabolic Panel"
}, null, null, "20061122151600", null, null, null, null, null, null, null, null, {
"#text": "1620",
"component": ["TempHooker", "BRobert", "L"]
}, null, null, null, null, null, "20061122154733", null, null, "F", null, null, null, null, null, null, null, null, null, null, "20061122140000", null]
},
"OBX": {
"field": ["1", "NM", {
"#text": "GLU",
"component": "Glucose Lvl"
}, "59", "mg/dL", {
"#text": "65-99",
"component": ["65", "99"]
}, "L", null, null, "F", null, null, "20061122154733", null]
}
}
}

Further information about HL7 messaging can be found on http://www.hl7.org.

PS: HL7 sample picked from http://www.priorityhealth.com/provider/manual/office-mgmt/data-exchange/hl7/hl7-samples

if anyone required to use this app or source code please let me know, I also would like welcome feedback and suggestions on this how improve and make more generic.

Thanks
Aifaz

Comments

  1. What happens if the HL7 has two OBX segments?

    ReplyDelete
    Replies
    1. It will handle all segments and its generic utility

      Delete
  2. Hello Aifaz, could please share Source code ?

    ReplyDelete
  3. Nice! you are sharing such helpful and easy to understandable blog. i have no words for say i just say thanks because it is helpful for me.

    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery




    ReplyDelete
  4. NIce.. Can i get this source code

    ReplyDelete
  5. hi can you share souce code , the above is opening as image and i cannot convert from hl7 to json
    can you please help ?

    ReplyDelete
  6. hi can you share souce code , the above is opening as image and i cannot convert from hl7 to json
    can you please help ?

    ReplyDelete
  7. The Casino at Oasis - Mapyro
    Oasis Casino 김해 출장마사지 At Oasis 대구광역 출장안마 - Hotels in 제주 출장안마 Oasis, CA. Find reviews and 김해 출장마사지 discounts for AAA/AARP 충청북도 출장안마 members, seniors, groups & military.

    ReplyDelete

Post a Comment

Popular posts from this blog

Installing latest DCM4CHEE and Weasis web viewer with MS SQL or My SQL

Create 270 X12 Eligibility Request Message using C# (MS .NET)