Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

dealing with batch messages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dealing with batch messages

    Hi,

    I have to deal with batch messages - see example below. I want to get some info out of the observation request and and observation result nodes to insert into a database. However I'm having issues with understanding how to accomplish this.
    I can cope with the nultiple OBX's, I could just loop through msg..OBX and do an insert for each one. However there are multiple OBR's with multiple OBX's. Anyone got any ideas on how I can implement this?

    Regards
    Simon

    Code:
    MSH|^~\&|dvscnr|vmhmdvip|LABRESULT|caradata|200307211731|PKI|ORU|591249|P|2.1
    MSA|AA|591249
    PID|1|1|2|3|Duck^Donald^D||19761010|M|||12 Disney Pl^Fantasy Land^Disneyland^USA 
    PV1||O|""
    OBR|1||M047507-07211730-01|T0301^General Micro Report^L|NM||200307190000|||||||200307190000||04498^Arator^Axel||||04498^Arator^Axel||200307211730
    OBX|1|FT|0301^General Micro Report^L||SPECIMEN: Faeces, No 2 in series\.br\\.br\MACROSCOPIC APPEARANCE: Semiformed ; Normal colour\.br\\.br\MICROSCOPIC EXAMINATION:\.br\- No intestinal parasites\.br\\.br\ROTAVIRUS: Negative\.br\GIARDIA SPECIFIC ANTIGEN - Negative.\.br\\.br\OCCULT BLOOD - Positive by peroxidase method. Negative by specific anti-\.br\human haemoglobin antibody method.\.br\This suggests proximal G.I.T. bleed or diet/drug interference.           ***\.br\\.br\CULTURE:\.br\\.br\       No Salmonella, Shigella, Campylobacter or Yersinia isolated. ---\.br\|||""|||F
    PID|2|1|2|3|Duck^Donald^D||19761010|M|||12 Disney Pl^Fantasy Land^Disneyland^USA 
    PV1||O|""
    OBR|1||L4920450-07211730-01|1918^Received from Health Waikato L^L|NM||200307081115|||||||200307080000||21892^Arator^Axel||||23460^Match^Footy||200307211730
    OBX|1|ST|1004324^Specimen^L||THROAT||||||F
    OBX|2|ST|1006800^VIRAL CULTURE^L||""||||||F
    OBX|3|ST|1005632^ Respiratory Culture^L||NEGATIVE||||||F
    NTE|1||  No Virus Isolated
    PID|3|1|2|3|Duck^Donald^D||19761010|M|||12 Disney Pl^Fantasy Land^Disneyland^USA 
    PV1||O|""
    OBR|1||L4934336-07211730-01|30^Complete Blood Count^L|NM||200307211220|||||||200307210000||29045^Day^Doris||||29045^Day^Doris||200307211730
    OBX|1|ST|8003^Haemoglobin^L||129|g/L|( 115 - 155 )||||F
    OBX|2|ST|8002^  RBC^L||4.11|x10\S\12/L|(3.60 - 5.50)||||F
    OBX|3|ST|8004^  Hct^L||0.37||(0.34 - 0.45)||||F
    OBX|4|ST|8005^  MCV^L||89.8|fL|(80.0 - 99.0)||||F
    OBX|5|ST|8006^  MCH^L||31.3|pg|(27.0 - 34.0)||||F
    OBX|6|ST|8010^ESR^L||4|mm/Hr|(   1 - 30  )||||F
    OBX|7|ST|8007^Platelet Count^L||248|x10\S\9/L|( 160 - 400 )||||F
    OBX|8|ST|8009^Platelet Morphology^L||Normal||||||F
    OBX|9|ST|8001^Total WBC^L||7.1|x10\S\9/L|( 4.0 - 11.0)||||F
    OBX|10|ST|8016^  Neutrophils Seg^L||4.64|x10\S\9/L|( 2.0 - 7.0 )||||F
    OBX|11|ST|8017^  Lymphocytes^L||1.53|x10\S\9/L|( 1.0 - 4.0 )||||F
    OBX|12|ST|8018^  Monocytes^L||0.62|x10\S\9/L|( 0.2 - 1.0 )||||F
    OBX|13|ST|8019^  Eosinophils^L||0.24|x10\S\9/L|( 0.0 - 0.6 )||||F
    OBX|14|ST|8020^  Basophils^L||0.04|x10\S\9/L|( 0.0 - 0.2 )||||F
    OBR|2||L4934336-07211730-02|42^Renal^L|NM||200307211220|||||||200307210000||29045^Day^Doris||||29045^Day^Doris||200307211730
    OBX|1|ST|1540^S. Uric Acid^L||0.14|mmol/L|( 0.18-0.47 )|L|||F
    PID|4|1|2|3|Duck^Donald^D||19761010|M|||12 Disney Pl^Fantasy Land^Disneyland^USA 
    PV1||O|""
    OBR|1||L4933563-07211730-01|15^Serological Tests for Syphilis^L|NM||200307210900|||||||200307210000||29045^Day^Doris||||29045^Day^Doris||200307211730
    OBX|1|ST|4505^TPHA^L||NEGATIVE||||||F
    PID|5|1|2|3|Duck^Donald^D||19761010|M|||12 Disney Pl^Fantasy Land^Disneyland^USA 
    PV1||O|""
    OBR|1||L4933563-07211730-01|15^Serological Tests for Syphilis^L|NM||200307210900|||||||200307210000||29045^Day^Doris||||23460^Match^Footy||200307211730
    OBX|1|ST|4505^TPHA^L||NEGATIVE||||||F
Working...
X