Skip to content

How to extract PID #578

Answered by milkshakeuk
alberk8 asked this question in Q&A
Aug 8, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

you could also try the SegmentFinder Class.

var hl7 = parser.Parse(message);
var finder = new SegmentFinder(hl7);

var pid = (PID)finder.FindSegment("PID", 0);
var id = pid.PatientID.IDNumber.Value;

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@alberk8
Comment options

@jakubsuchybio
Comment options

@alberk8
Comment options

@milkshakeuk
Comment options

Answer selected by alberk8
@milkshakeuk
Comment options

@alberk8
Comment options

@milkshakeuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants