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

How can I base my Spring Boot app on an external Servlet?

I'm trying to turn this example into a Spring Boot application, the problem lying in that RestfulServer is a servlet, and I"m not really trying to make a separate app, but a single one that, more or less extends that servlet. Problem I seem to be…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
1
vote
1 answer

Deleting a MedicationOrder by identifier in FHIR DSTU2 HL7

I am creating FHIR MedicationOrder resources providing a unique identifier. When deleting those MedicationOrders, I want to perform a conditional delete by this identifier. Below is the code I…
1
vote
1 answer

Binding multiple value sets to a single extension element

I'm wondering if there is a way to bind multiple value sets to a single extension element in fhir. Here's an example of what I'm trying to achieve: ... ...
Andy
  • 3,228
  • 8
  • 40
  • 65
1
vote
1 answer

How to limit a Quantity element's unit type in FHIR

I'm writing a few profiles in fhir, and to them I've added an element with type Quantity. In the documentation it states that Quantity is like a special case of a code, where you can state the unit type/dimension of the quantity (e.g. it's a…
Andy
  • 3,228
  • 8
  • 40
  • 65
1
vote
1 answer

How to define a FHIR CodeScheme (DSTU2)

TL;DR: does fhir DSTU2 contain a mechanism for formally defining CodeSystems? I'm trying to port over a bunch of resources to a fhir server from a proprietary system with very similar design goals. In the old system it had a build in method for…
Andy
  • 3,228
  • 8
  • 40
  • 65
1
vote
2 answers

Validating FHIR profiles

I'm wondering if there is a way to validate FHIR profiles? By this I mean validate the xml definition of my profile/extensions are valid, not validate a resource against my profile. I'm asking this because I've build a tool for producing profiles,…
Andy
  • 3,228
  • 8
  • 40
  • 65
1
vote
1 answer

How to search in contained resources?

I'm looking into FHIR and stumbling over the search query for resources containing resources. I'm using the HAPI JPA Examples server and have some DiagnosticReports stored there. Some of them containing a Organization with a certain name. I really…
HUlrich
  • 13
  • 3
1
vote
1 answer

How to upload resource instances against a profile

As the title says really. I've authored some extensions, and some profiles around those. Now I'm not really sure how to upload a resource instance to that profile. All the profiles are based on the basic resource, and from what I understand I…
Andy
  • 3,228
  • 8
  • 40
  • 65
1
vote
1 answer

Error in Fhirbase api

I want to use Fhirbase api for my project and i refer http://fhirbase.github.io/installation.html (Local) this link to install fhirbase server and follow all the steps which is given in document, but when i try to execute first api SELECT…
1
vote
1 answer

FHIR Sandboxes are of low quality

I'm currently building an application that leverages FHIR via the HAPI-FHIR api. Up till now I've been going through the sandboxes listed at hl7.org fhir sandboxes but I have found most of them to have a lot of incomplete/corrupt data. Can anyone…
Morgan Dowell
  • 267
  • 5
  • 11
1
vote
2 answers

HAPI FHIR Patient Bundle Request

I am working with a HAPI FHIR Server and am somewhat new to the java client. What I am hoping to accomplish is to create FHIR Patient Bundles that include a single identifying patient resource and all of their other resources in one complete bundle…
Pylander
  • 1,531
  • 1
  • 17
  • 36
1
vote
2 answers

FHIR New Patient Appointment booking (no patient yet created in system)

Suppose a new patient is trying to book an appointment using FHIR APIs , how should I get his/her first name, last name, dob, phone number in my system ? The appointment resource just specifies actor reference which is an Id to Patient resource in…
1
vote
1 answer

Does HAPI FHIR Java API support chained parameters?

I am trying to form a request like : http://host/api/FHIR/DSTU2/Schedule?Schedule.actor:Practitioner=1234&Schedule.actor:Practitioner.location=5678&slottype=urn:oid:1.2.3|PrimaryCare&start=2016-08-08 Using HAPI FHIR Java API, how can I parse…
1
vote
2 answers

Cast json to hapi fhir object

I have an appointment json which I need to cast to DSTU2 HAPI FHIR json object. Any standard library available for the same ? Google gson library works but does not give value to object in fields { "resourceType": "Appointment", "id": "", …
1
vote
1 answer

Adding HAPI-FHIR dependencies into gradle Android project

I am trying to add following dependencies into my android studio project, but it seems something goes wrong which I don't understand! compile 'ca.uhn.hapi.fhir:hapi-fhir-base:1.4' compile…
Jasmine
  • 222
  • 2
  • 12