Comments (3)
I've done some more comparisons this time using IKVM to load the hapi-base-2.3.jar
into my dotnet unit test project so I could compare the output and here are the results.
Looks like I haven't made a mistake in the porting process as they both return the same results give then example above.
from hapi-hl7v2.
I believe this will fix it, I have made the change in the nhapi port and it seems to fix it (proven with unit tests), assuming that's the expected behaviour and I am not misunderstanding it.
public boolean numbersLessThan(DatumPath other)
{
DatumPath extendedCopyThis = new DatumPath(this);
extendedCopyThis.setSize(s_maxSize);
DatumPath extendedCopyOther = new DatumPath(other);
extendedCopyOther.setSize(s_maxSize);
boolean lessThan = false;
for(int i=1; !lessThan && (i<s_maxSize); ++i) {
int this_i = ((Integer)extendedCopyThis.get(i));
int other_i = ((Integer)extendedCopyOther.get(i));
// this following line is the fix
// if this_i is greater than other_i then just stop iterating as the answer is clearly false.
if(this_i > other_i) break;
lessThan = (this_i < other_i);
}
return lessThan;
}
I would create a PR however I have yet been successful in actually building hapi never mind running the test suite.
from hapi-hl7v2.
@jamesagnew did you see this?
from hapi-hl7v2.
Related Issues (20)
- Library Security support HOT 1
- Thread blocking on DefaultEscaping class while retrieving the String HOT 1
- Absence of generic class MDM_TXX and ORU_RXX HOT 2
- `NonGreedyMode` causing issues parsing `ORU^R01`
- Test Panel won't run with non-Oracle JRE on Windows HOT 1
- [test panel 2.5.1]Exception in the startup the testpanel
- Hl7InputStreamMessageStringIterator returns silently on non HL7 content
- Unable to use confgen plugin to create sources for a custom message HOT 1
- Latest version of test panel listed on the website doesn't load messages HOT 2
- Test panel 2.5.1 doesn't run on linux HOT 3
- module-info (or no duplicate packages) HOT 2
- Handling ORU^R31 and ORU^R32
- Manipulation of batch messages using terser
- Terser issues with HL7 v2.3.1
- Cannot set timeout for connection establishment of Client HOT 1
- Message type HL7 v2.6 - SDN_S36
- HTTP Response is 401 When It Should Be 400
- HL7 over HTTP spec error
- High memory consumption of HAPI messages
- How to create a node js server for handling hl7 over http?
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 hapi-hl7v2.