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
14
votes
4 answers

HL7 version 3 parsing

I was parsing HL7 version 2.x messages through HAPI. Now I want to parse HL7 version 3 messages, which are in XML format. HAPI does not support HL7 version 3, so how can I do this?
Vishal Zanzrukia
  • 4,902
  • 4
  • 38
  • 82
9
votes
2 answers

How to parse the Multiple OBR Segment in HL7 using HAPI TERSER

How to parse the Multiple OBR Segment in HL7 using HAPI using terser I have sample hl7 message like this MSH|^~\&|SENDERAPP|SENDERFAC|COVCDR|COVCDR|20130212221503||ORU^R01|1676326503009050|P|2.5 PID|1||MRN101||DOE^JOHN^A||20000101|M||W|1 Campus…
dreambigcoder
  • 1,859
  • 4
  • 22
  • 32
8
votes
2 answers

check if an input variable is string or array using joi

I have an api that in the past developments would receive comma separated strings as valid input and used the following as the validator: Joi.string() But now I want to implement the same variable using array of strings as mentioned here…
Jasjeet Kaur
  • 145
  • 1
  • 11
8
votes
2 answers

How to modify HAPI validation rules for phone numbers?

The following dependencies are being used from the maven central repository in this example: ca.uhn.hapi hapi-base
axiopisty
  • 4,972
  • 8
  • 44
  • 73
7
votes
3 answers

Hapi.js Cannot read property 'statusCode' of null

I'm creating a node.js api server using hapi.js and mongodb and I'm having some trouble to get it working on Amazon EC2. Running it locally works, but if I run it on an EC2 instance I'm getting the error TypeError: Cannot read property 'statusCode'…
Francesco Re
  • 836
  • 6
  • 22
7
votes
2 answers

Firebase admin Can't read property 'cert' of undefined

I writing a hapi backend api with firebase admin. I can't find a fix for this error. TypeError: Cannot read property 'cert' of undefined at ModuleJob.run (internal/modules/esm/module_job.js:109:37) at async Loader.import…
GrepThis
  • 642
  • 1
  • 11
  • 22
7
votes
4 answers

Error after upgrading Joi to latest version - Schema can only contain plain objects (name)

After upgrading Joi to the latest version @hapi/Joi(17.1.1) my server is not staring I am getting below error on startup. Seems there were some breaking changes in recent versions. Not able to get any clue yet, any help is appreciated. Error: Schema…
amyst
  • 616
  • 1
  • 10
  • 22
6
votes
1 answer

HL7V2 HAPI parser exception while receiving data via TCP/IP

I'm using the HAPI hapi-structures-v25 library with version 2.3 to parse HL7v2 message & convert that into FHIR resources. I'm facing a strange issue while receiving and parsing the HL7V2 message using HAPI via TCP listener. Determine encoding for…
Vibin Guevara
  • 778
  • 10
  • 27
6
votes
1 answer

Updating node version of a project from v6x to v12x

I have a node js project running in node v6.12.0 and I need to update the project to node v12.18. These are some of the dependencies tagged to the project in package.json: { "hapi": "^8.8.0" "joi": "^6.4.1" "mocha": "^2.4.5" "ioredis":…
LGAP
  • 2,365
  • 17
  • 50
  • 71
6
votes
1 answer

How to search for a fhir resource by Identifier?

I've notice most if not all fhir resource types have a property 'identifier', which is of type identifier. I have set this on my resources to have a system, and a value, I'm wondering how I now search for resources with a given identifier? Ideally I…
Andy
  • 3,228
  • 8
  • 40
  • 65
6
votes
2 answers

Need to parse HL7 message

I need to parse HL7 message ,firstly ,validate the message and then parse. XMLParser xmlParser = new DefaultXMLParser(); //encode message in XML String hl7MessageInXML = null; try { hl7MessageInXML = xmlParser.encode(message); }…
MaNn
  • 745
  • 4
  • 11
  • 22
5
votes
1 answer

Filter with multiple values with multiple operators using mongoose query?

I have array of filter options with multiple operators. Here i provided sample datas and structure. user can select more than one filter with any combination. sample JSON structure i have given below. what is the effective way to get datas using…
Rekha
  • 433
  • 7
  • 22
5
votes
3 answers

Uncaught ReferenceError: SwaggerUIBundle is not defined at window.onload

In my localhost, my swagger UI working well. localhost:3030/documentation This UI was working on the server also but from today on the server it is not working https://digitalpathshalabd.com/documentation Errors
5
votes
1 answer

How to parse HL7 multiple segments(ORC/OBR/OBX) using HAPI Frame work?

How to parse HL7 multiple segments(ORC/OBR/OBX) using HAPI Framework. I am also facing issue related to parsing the multiple lab order and also facing issue related to special character(MSH|^~\&#|) encoding . MSH|^~\&|NIST Test Lab APP|NIST Lab…
Sitansu
  • 3,225
  • 8
  • 34
  • 61
5
votes
1 answer

HAPI HL7 Validator does not validate parsed messages

The scenario when I parse and validate HL7 message at once works as expected: HapiContext hapiContext = new DefaultHapiContext(); PipeParser parser = hapiContext.getPipeParser(); Message message =…
Yuriy
  • 1,384
  • 1
  • 11
  • 17
1
2 3
27 28