Questions tagged [hapi]

HAPI (HL7 application programming interface; pronounced "happy") is an open-source, object-oriented HL7 2.x parser for Java.

HAPI (HL7 application programming interface; pronounced "happy") is an open-source, object-oriented HL7 2.x parser for Java.

HL7 is a widely-used standard for electronic data exchange in the clinical and healthcare domain.

Useful links

406 questions
0
votes
2 answers

Problems with i18next language detection and integration with hapi

I'm trying to write a new language detector plugin for i18next for integration with hapi. There's an existing hapi-i18next plugin that is quite old (it uses an extemely old version of i18next, 1.7.10 ) and so mostly useless. And the i18next API…
steev
  • 916
  • 10
  • 24
0
votes
0 answers

How to take in a time value in payload in hapi?

I am creating an api using hapi framework and need to take in time as one of the data types in the payload that I receive. I have defined the validation as payload: { startTime: Joi.date().timestamp().required(), endTime:…
Abhi
  • 314
  • 1
  • 7
  • 23
0
votes
1 answer

How to catch response properly from Hapi server.inject

I want to have a catch for errors and success for the server.inject method as currently if it throws an error, it is not caught by the function doing the inject, so how would I do that with a function like this I am using hapi…
dhj
  • 4,780
  • 5
  • 20
  • 41
0
votes
1 answer

Seperate Front and Back-End - Persistent Authentication with Vue/Webpack/Hapi

I apologize in advance for the wall of text. I'm working on a project for school. We are trying to create a messenger application with a separate front/back-end. For the back-end we decided to use Hapi (NodeJS), which is now a working API that…
b0nes
  • 103
  • 1
  • 7
0
votes
0 answers

Failed to parse javax.xml.transform.dom

We are invoking the HAPI REST API to validate the resource. Internal HAPI uses ph-schematron jar file to validate the same. If we are invoking the API in simple java class by using the main method, it works with no issue. But we we execute exactly…
Hrushi
  • 163
  • 1
  • 10
0
votes
1 answer

HAPI HL7 Validation throws Exceptions

I am working on a Java endpoint that I intend to use for HL7 message validation. I have a basic app running that uses a variation of the standard HAPI HL7 validation example. If I pass in a valid message I get the "Success" response. If I pass in…
Brian Teeter
  • 844
  • 1
  • 8
  • 17
0
votes
2 answers

NHapi using C#.net

I am using nHapi in c#.net to convert hl7 messages to xml format using the following code. My code: using System; using NuGet; using NHapi.Model; using NHapi.Model.V231; using NHapi.Model.V231.Message; using NHapi.Base.Parser; using…
Sayan Sen
  • 1,654
  • 3
  • 16
  • 26
0
votes
1 answer

Find the observation with the given ID, hapi Fhir

Bundle response = client.search() .forResource("Observation") .where(....) .returnBundle(Bundle.class) .execute(); Searched a whole while and still can not get the answer. I am…
cautree
  • 35
  • 7
0
votes
1 answer

HAPI ADT A03 v2.5 message creation

I was trying to generate an ADT A03 message using HAPI API’s. I am sharing the code below. I am getting the HL7 Message generated but the message type segment looks like “ADT^A03^ADT_A03” instead of “ADT^A03”. Please help me to generate a proper…
0
votes
1 answer

How to parse DFT_P03 message with ZPM segment

I am coding a server application that will receive DFT_P03 messages with an added ZPM segment (which i have created a class for as per the HAPI documentation). Currently i am able to access this field as a generic segment when doing the following…
Martin
  • 1,977
  • 5
  • 30
  • 67
0
votes
0 answers

Error with H3DNodeDatabase PhantomDevice::database in PhantomDevice.cpp

I am using C++ to establish a connection with Sensable Phantom Omni haptic device with H3D toolkit. These lines of code give me some challenges and will not compile successfully: #include #include…
Olatunji
  • 59
  • 5
0
votes
1 answer

FHIR - Searching ALL resources

Is it possible to search for a parameter in all the resources on a FHIR based server (currently using HAPI)? {{url}}/Basic?_id=1 Returns the correct Basic resource but I want to be able to search through all resource types (Basic, Patient,…
StephenL
  • 122
  • 1
  • 11
0
votes
1 answer

HAPI v2 after terser: get entire changed message

I have an HL7 message whose content I'm manipulating slightly with the terser.set() method. Once I've done that, I see in the debugger that it's been changed just how I want it, but I can't seem to get the whole message back intact. I've tried (for…
Russ Bateman
  • 18,333
  • 14
  • 49
  • 65
0
votes
1 answer

Duplicate 'contained' elements in generated message - HAPI FHIR DSTU2HL7Org

I am using HAPI FHIR DSTU2HL7Org to create MedicationOrders in a remote server. The construction of the object is as follows. MedicationOrder[] medicationOrder = null; MedicationOrderDataWrapper[] medicationOrderWrapper = new…
0
votes
2 answers

Constructing POST request message for MEdicationOrder Resource HAPI - FHIR

I am writing a java code for generating a POST request using MedicationOrder resource in HAPI - FHIR DSTU2 HL7. I have come across several troubles. Setting the reference values for the contained resources. Contained resources are not present in…