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
1 answer

How to register hapi cron with the latest version of hapi.js

I have my server registered with hapijs. Here is my index.js composer((err, server) => { if (err) throw err server.initialize((errInit) => { if (err) throw errInit const register = (hapiRaven, options, next) => { return next() …
Profer
  • 553
  • 8
  • 40
  • 81
0
votes
0 answers

Handle multiple ORC OBR repetitions on OML_O33 message as OML_O33_ORDER instances

I'm generating a OML_O33 (for the IHE LAB-63 profile) HL7 v25 message using the Java HAPI v2.3. The message should support multiple ORDER groups (ihe message profile) but due to an ambiguous definition of the ORC/OBR sequences in the ORDER and…
pirods
  • 43
  • 1
  • 7
0
votes
2 answers

PDS2 Stripe Success Webhook and other issues

This is in danger of being TLDR - so my question is: On successful payment - stripes sends a "success" payload to my success webhook. Looking through the payload, I am unable to see anything which I can use to find which payment was successful.…
Rob
  • 1,576
  • 3
  • 22
  • 52
0
votes
3 answers

Getting double quotes when returning html

I have below route to return privacy policy for my app. const html = `
dsfdsfsfdsfsfsdfdsf
` const handler = (request, reply) => { try { return reply(html) } catch (err) { return reply({ success: false,…
Profer
  • 553
  • 8
  • 40
  • 81
0
votes
1 answer

what is difference between vhdir-organization and r4.organization on FHIR resources?

There are two resources Organization, but different profiles, How the profiles will make the difference? And how it is different from r4.organization ? @ResourceDef(name="Organization",…
Syed Rafi
  • 825
  • 2
  • 12
  • 35
0
votes
1 answer

Get Hapi to Register @Hapi/Good Plugin Only Once

Hapi (v17 & 18) states that I can specify an option on server.register to make the plugin on get initialized once, regardless of however many times server.register is called with that plugin - link to docs. However, I have been unable to get this to…
technogeek1995
  • 3,185
  • 2
  • 31
  • 52
0
votes
1 answer

Hapijs Joi reference schema keys to reuse in other models or in routes

I have an example model constructed like so: const MyModelResponse = Joi.object().keys({ id: Joi.number().integer().required() .description('ID of the example model'), description: Joi.string() .description('Description of the example…
HailZeon
  • 954
  • 9
  • 17
0
votes
1 answer

HAPI - Custom model class that is also canonical?

I have an application that currently uses a custom model with custom message types and Z segment classes. For example, i have a DFT_P03 class in my v25 package that extends AbstractMessage and declares segments, also in the same package, as such…
Martin
  • 1,977
  • 5
  • 30
  • 67
0
votes
1 answer

HAPI FHIR custom search response

I am building a restful FHIR search API which requires a custom response. This is different from a custom resource. The API must return all Patients as follows: { "Patients":[ { "patientid": "pat1", "gender":…
sotn
  • 1,833
  • 5
  • 35
  • 65
0
votes
1 answer

data: null in hapi.js preResponse, if Error was thrown

I'm throwing and error like this somewhere in mode code: throw new Error({ name: 'notFound', message: 'Book not found' }); And I have a onPreResponse server extension: server.ext('onPreResponse', async ({ response }, h) => { if…
Mehdi Hoseini
  • 407
  • 1
  • 4
  • 12
0
votes
1 answer

how to get array when using hapi, vision and ejs

i am posting checked values as an object via jquery post to nodejs. im not sure how to do request.payload.card as i get the following result content of request.payload [Object: null prototype] { 'card[]': '2S' } I have tried to use parse(...) from…
shorif2000
  • 2,582
  • 12
  • 65
  • 137
0
votes
1 answer

Error while testing delete method in NodeJs with Mocha

I'm developing a billboard app to learn new technologies and i'm currently having problems trying to test the DELETE method of the API using Mocha. I've been trying different approaches for it, but i couldn't find a solution yet. I'm using NodeJs…
lucas laroz
  • 1
  • 1
  • 2
0
votes
1 answer

How to validate array which is dynamic in nature Like sometime string and some time objects

I am Using @hapi/joi. I have an array which store value dynamically, it store string, empty string (an empty array) or an Objects ({"userid": "111jh2jh322j3h2j3h", "msg": 1}). So it will be like this: type1-> member: [] type2-> member:…
Aks
  • 1,092
  • 3
  • 12
  • 29
0
votes
2 answers

Hapi HL7 how to get a count of how many times a segment or field repeats

I am working with the HAPI HL7 Libraries, and I am attempting to find out how to get the count for how many times a segment or field repeats in the original message. The terser path assumes 0 if the field/segment repeats and no index is given, but I…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
0
votes
1 answer

What does HapiFhir toListOfResourcesOfType() method do?

I have this getPatients() method where I get the patients whose family's names matches "Goodwin32". This is my code: public List getPatients(){ Bundle bundle = client.search().forResource(Patient.class) .where(new…
Sook Lim
  • 541
  • 6
  • 28