ironbridgecorp / hl7-standard Goto Github PK
View Code? Open in Web Editor NEWSimple, Lightweight HL7 module for tranforming, manipulating, or creating HL7 messages.
License: Apache License 2.0
Simple, Lightweight HL7 module for tranforming, manipulating, or creating HL7 messages.
License: Apache License 2.0
First of all, thank you for this wonderful library; it has helped me immensely in parsing hl7 messages.
One thing that I would like to ask:
When dealing with fields the only way seems to be using the get
method which only returns the first field, while with segments there are 2 different methods getSegment
and getSegments
. In order to handle this I'm currently doing something like the following:
let pidSegment = hl7.getSegment("PID");
const pid3Length = pidSegment["data"]["PID.3"].length;
for (let i = 0; i < pid3Length; i++) {
// process fields using pidSegment["data"]["PID.3"][i]
}
Is this the proper way to do it? I would assume that directly changing the "data" part of the segment is not a good idea (since all other data changes are encouraged to use the built-in methods like set
) but I can't find any other way to do it.
The documentation does not present any example of how to handle an array of fields but it focuses mostly on the segment part of the features.
Thanks in advance for any insight that you might be able to provide.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.