Comments (2)
I've solved this before by hand, the issue is that NTE segments in results messages are actually quite complex, they can apply to either the OBR, or the OBX and are not single entities.
The solution I came up with was basically to get the segment segment list and just start accumulating NTE segments until the next OBX appears.
You could implement this into the library with something like a GetSegmentBetween(string segmentToFind, string parentSegment, int parentSegment index, but it's probably something that would be better off in a separate helper library than build directly into this library.
from hl7-dotnetcore.
Hi @Tabraizahmed
Complementing @chrismidolo response.
The Segments()
method will return a list of all the segments in the same order as coming in the HL7 message, so you can parse them in the right order by using GetAllFields()
for each segment object.
So I think you already have enough tools for doing it.
from hl7-dotnetcore.
Related Issues (20)
- Serialize with validation fails HOT 3
- Error message typo "beggining" HOT 2
- Messages are limited to 32767 segments . Have undefined results after that HOT 2
- Strong name for assembly inside nuget package HOT 1
- Accept <segment_name>(<segment_number).<field_number> request in Message.GetValue(string strValueFormat) HOT 4
- Assigned value not showing when segment printed HOT 3
- X-escape sequence decoding HOT 2
- Question: Package not built in 'Release' mode? HOT 1
- Escaping sequences HOT 2
- Modifying a MSH.7 Timestamp in ACK Message will not effect in Attribute Message.HL7Message HOT 1
- Generate a ACK bases on a HL7 message with MSH.2 = ^~& HOT 5
- Escape Character Issue HOT 7
- Parsing HL7 message in XML format HOT 1
- Parse failure with double-encoded values HOT 1
- Double Decoding Of Value HOT 3
- What does IsComponentized() do? HOT 1
- Components
- DeepCopy doesn't copy fields with values HOT 3
- NACK causes error HOT 5
- \.br\ is not properly serialized leading to ParseMessage failure HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hl7-dotnetcore.