镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Discussion options

You must be logged in to vote

If you don't want to risk adding any segments during these checks you can do something like

oruMessage.PATIENT_RESULTs
.SelectMany(patientResult => patientResult.GetAll("PATIENT").Cast<ORU_R01_PATIENT>())
.SelectMany(patient => patient.GetAll("VISIT").Cast<ORU_R01_VISIT>())
.SelectMany(visit => visit.GetAll("PV1").Cast<PV1>());

which will return 0 if there is no PV1 and will not create or throw an error if there is no VISIT, PATIENT or PATIENT_RESULTS group created yet.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@bilago
Comment options

Answer selected by sse-jtc
@milkshakeuk
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