Skip to content

How to parse multiple segments? #92

Closed Answered by Bugs5382
joemark0008 asked this question in Q&A
Discussion options

You must be logged in to vote

@joemark0008 See below..

MSH|^~&|MESA_RPT_MGR|EAST_RADIOLOGY|iFW|XYZ|||ORU^R01|MESA3b|P|2.4|||||||| PID|||CR3^^^ADT1||CRTHREE^PAUL|||||||||||||PatientAcct|||||||||||| PV1||1|CE||||12345^SMITH^BARON^H||||||||||| OBR|||||||20010501141500.0000||||||||||||||||||F|||||||||||||||||| OBX|1|HD|SR Instance UID||1.113654.1.2001.30.2.1||||||F|||||| OBX|2|TX|SR Text||Radiology Report History Cough Findings PA evaluation of the chest demonstrates the lungs to be expanded and clear. Conclusions Normal PA chest x-ray.||||||F|||||| CTI|study1|^1|^10_EP1

const message = new Message({ text: hl7msg}); const result = message.get('OBX[2]').toString();

Given the hl7 message above how can i get the OBX2 using …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bugs5382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants