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
0 answers

How to connect the MSSQL server with Hapi framework?

I am new in node and like to learn about creating an API using node. Meanwhile, I search for a good framework for that and I start with the #hapi Framework. I like to know the way to connect #hapi with the MSSQL server.
0
votes
1 answer

Hapi js as proxy server to handle api calls

Could someone please post an example of how to use Hapi js as proxy server to make api calls. Let's say I send a request to www.example.com to fetch the response. Currently I am making the api call directly from my angular application to…
0
votes
1 answer

Set params on request when testing hapi routes

I am currently writing some tests for our hapi routes. The route I want to test looks like that: server.route( { method: 'POST', path: '/', options: { tags: ['api'], cors: true, handler: async (req: Hapi.Request |…
jhen
  • 1,164
  • 1
  • 11
  • 24
0
votes
1 answer

Uploading file on Hapi.js server

I'm trying to upload file on a hapi server, and my goal would be to upload a zip file and unzip it on the server, but I currently have problems withs the upload part for a single file... my frontend is made with react and I'm selecting a file with a…
Djinnmercure
  • 1
  • 1
  • 3
0
votes
1 answer

Validate HMAC from Shopify Webhook (Using Hapijs)

I'm trying to validate Shopify's HMAC in a webhook. This is how my controller looks: newOrder: { payload: { parse: false }, handler: function(request, reply) { const hmac = request.headers['x-shopify-hmac-sha256']; …
jgauna
  • 11
  • 5
0
votes
1 answer

Will the sequelize update method create new columns in a table, if i pass an object with more properties other than the ones existing in the table?

Suppose i have a table, let's consider a table Book with columns, title and pages. And now i am calling the update method on top of the table Book with an object having title, pages as well as price. Will sequelize create a new column for the price…
0
votes
1 answer

@hapijs/lab: how to prevent creation multiple DB connections when testing the server?

I develop an API server with Hapi. I use @hapi/lab for testing. I have different test files for different API modules/routes. There is a server initialization in each test file. A DB connection is created when the server is initialized,…
ekorolev
  • 1
  • 2
0
votes
1 answer

Is it important to use FhirInstanceValidator while validating FHIR profiles?

I am trying to write validation by using HAPi validation. FhirContext fhirContext = FhirContext.forR4(); FhirInstanceValidator instanceValidator = new FhirInstanceValidator(); FhirValidator validator = fhirContext.newValidator(); …
0
votes
1 answer

FHIR one actor in two different roles

I'm creating a procedure in a transaction bundle and add practitioners as actors to the performers collection, having different functions. As far as the practitioners references are unique, all is fine. But when I'm trying to add a practitioners…
Christian
  • 21
  • 2
0
votes
1 answer

Hapi child plugin does not apply the parents route prefix

The problem: Hapi does not pass a plugins route prefix to its registered child plugins. What i did: I've got some plugins which i register with a route prefix in some kind of main plugin like this: const plugin: Hapi.Plugin = { name:…
Bodo Dackel
  • 93
  • 10
0
votes
1 answer

Unable to get OBR segment from HL7 REF^I12 message

I was working on HL7 (2.3.1) message of REF^I12 type. I'm trying to get the OBR segment from the message by using terser, but, I'm getting null whenever I try to get OBR or OBX segment values. Below is the hl7 message I'm trying to…
0
votes
1 answer

HAPI Fhir: Searching by identifier with a particular code

I want to retrieve the procedure having an identifier with value 2266 and type.coding.code of "RI" The identifier part of the procedure looks like this: "identifier": [ { "use": "usual", "type": { …
Christian
  • 21
  • 2
0
votes
1 answer

hapi-auth-bearer-token only works for an access_token in query string not as a header

How to I get hapi-auth-bearer-token to work using the access_token as an http headers instead of passing it in the query string? The documentation is pretty clear that this should work, but it does not as you can see from my screenshots below. const…
steve-o
  • 1,303
  • 1
  • 14
  • 20
0
votes
1 answer

POSTGRES sequelize ANY operator query

I want to sequelize the following query: SELECT * from TABLE_NAME where '928120' = any(COLUMN_NAME); The above query gives the desired result. Although i want to use it as a sequelize query to use it in my node(hapi) application. Can someone please…
Rohan Kangale
  • 931
  • 4
  • 11
  • 29
0
votes
0 answers

Not able to get user by id in nodejs with axios

I am using following code to get user by id --- exports.get = async function(req, resp) { let response = await axios.get('http://localhost/api/collections/get/users?token=abc',{ "params": { user_id: '123' } }); return…
Garima
  • 3
  • 2