Questions tagged [hapi-fhir]

HAPI-FHIR is an open source Java API for creating HL7 FHIR clients and servers.

HAPI-FHIR is an open source Java API for creating HL7 FHIR clients and servers.

It is created and maintained by James Agnew and the University Health Network and licensed under the Apache Software License 2.0.

Inspired by HAPI, a similar Java library for the HL7v2 standard; HAPI-FHIR is for use with the next-generation protocol from HL7 called Fast Healthcare Interoperable Resources (FHIR™).

Documentation can be found at https://jamesagnew.github.io/hapi-fhir/ and the source code is available on Github at https://github.com/jamesagnew/hapi-fhir

247 questions
1
vote
1 answer

Looking for a faster way to export Resources in HAPI FHIR

Following the documentation on $export API (link), it is possible to export FHIR data, e.g. Patient, Observation, etc. However, this process is very slow (take many days) if the Resources to be exported are substantial in size. Querying database,…
JoyfulPanda
  • 867
  • 6
  • 14
1
vote
0 answers

How to use FHIR PATH to fetch the list of Immunization for a Patient?

Currently, I am fetching the list of Immunization resources for a Patient using the below code. Is this efficient method of fetching the data from FHIR Server? How to use the FHIRPATH in this case? // Create a client IGenericClient…
user1700138
  • 35
  • 2
  • 7
1
vote
1 answer

How do you express reverse chaining in a HAPI FHIR Plain server

How do we support a query like GET /base/ResearchStudy?_count=1&_has:ResearchSubject:study:individual=Patient/3635973&_elements=id using HAPI FHIR plain server? The documentation tells how to do chaining, but not reverse chaining (_has).
Eponymous
  • 6,143
  • 4
  • 43
  • 43
1
vote
0 answers

hapi-fhir ResourceVersionConflictException for Update resource

I am using hapi-fhir sdk in Android. I got ResourceVersionConflictException for Patient update. From api doc Represents an HTTP 409 Conflict response. This exception should be thrown in methods which accept a version (e.g. Update, Delete) when the…
Abu Yousuf
  • 5,729
  • 3
  • 31
  • 50
1
vote
1 answer

Accepting FHIR Resource 'Patient' as a RequestBody in spring boot

I want to accept the JSON body of Patient FHIR resource as @RequestBody in Spring boot API. I tried to do this: @RestController @RequestMapping("/api") public class DemoController { @PostMapping("/Patient/save") public String…
Sandip Pawar
  • 585
  • 4
  • 10
1
vote
1 answer

FHIR Validation in Android

I have a project in which I have to perform a a FHIR validation. I have implemented this functionality in a regular Java application using the hapi-fhir library with the Instance Validator and Schematron Validator. I am trying to do the same for…
konkouts
  • 51
  • 1
  • 6
1
vote
1 answer

Android studio hapi fhir validation, checkDebugDuplicateClasses error

I am trying to build a simple android project in which I want to use some hapi-fhir dependencies. However, despite the built is successful, when I am running the application I get a duplicate classes error. The dependencies I am trying to add are…
konkouts
  • 51
  • 1
  • 6
1
vote
1 answer

Search criteria for appointment slots in Epic FHIR

I'm using Epic's FHIR API (with Argonaut) to search for available appointments, in their private sandbox: POST /api/FHIR/STU3/Appointment/$find { "resourceType": "Parameters", "parameter": [ { "name": "startTime", …
mmathis
  • 1,610
  • 18
  • 29
1
vote
0 answers

I have created profiles in Forge, how to import them to HAPI FHIR server?

I have created an HL7 FHIR profile in Firely Forge. Let's call it MyPatient.structureDefinition.json I'm able to send this profile as REST call to public FHIR server, but I can't find out how to import this profile to my own HAPI FHIR server that…
javajunkie
  • 11
  • 1
1
vote
1 answer

Hapi FHIR: searching for patient identifier using Postman

I am using Postman to test the connectivity with the Hapi FHIR server and have have been testing different queries but nothing is working... The expected result is to get all the observations that match a certain patient identifier but, at this…
SRS
  • 11
  • 3
1
vote
1 answer

How to publish an Extension to Azure FHIR repository?

I am using Azure API for FHIR. I have a Claims payload that requires some additional fields, which I am adding to the extension structure like: extension: [ { "url": "ROW_ID", "valueString": "1" }, { "url":…
aiman
  • 1,049
  • 19
  • 57
1
vote
0 answers

unable to upload StructureDefinitions when Validation-Requests-Enabled (DSTU3)

I am experimenting with the automatic validation feature of HAPI-Fhir Server. I am using the hapi-fhir-jpaserver-starter running in a docker container. For compatibility reasons I am forced to stick at DSTU3 for the moment. My observed behavior is…
1
vote
2 answers

Getting Error : Failed to load org/hl7/fhir/instance/model/api/IAnyResource on running spark-submit

I am trying to execute spark-submit in a java which also has some HAPI-FHIR libraried needed in the project. When I execute the job I get the following error Error: Failed to load package.MainClass: org/hl7/fhir/instance/model/api/IAnyResource I…
Why So Serious
  • 129
  • 1
  • 9
1
vote
2 answers

fetching resources for a specific version

Is there a way to etxract the resources of a type for a specific version id. e.g something like this http://fhir-server/hapi-fhir-jpaserver/fhir/Organization?versionId>30 I can go to the database and execute the below query to get results but same…
1
vote
0 answers

HAPI FHIR try to use patch

I've this resource of type Paramaters as follow: { "resourceType": "Parameters", "parameter": [ { "name": "operation", "part": [ { "name": "type", "valueCode": "add" }, { …
Joe Taras
  • 15,166
  • 7
  • 42
  • 55