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

FHIR : How to check whether the exposed JSON is in proper FHIR standard

We have created a patient resource using FHIR, is there any tool or mechanism to validate whether the created JSON Object is in proper FHIR standard ,
Shuail_CR007
  • 292
  • 1
  • 15
2
votes
1 answer

How Can I Access A Patient's Id?

Please have a look at the following Patient response that I received from http://fhirtest.uhn.ca/baseDstu3. I would like to access the 4081340 value in the id tag but I have been unable to find it in the org.hl7.fhir.dstu3.model.Patient API. Would…
Verticon
  • 2,419
  • 16
  • 34
2
votes
1 answer

How to validate a large value set within HAPI-FHIR framework

I have a custom implementation of org.hl7.fhir.dstu3.hapi.validation.IValidationSupport module for validating all my profiles and value sets/code systems. I am trying to figure out a way to use the same validation API to support validation of very…
2
votes
0 answers

Is it possible to get the HAPI FHIR server to generate a StructureDefinition for a custom type defined with HAPI annotations?

I've got a number of extensions which I add locally to a base resource type. I do that using the technique described at http://hapifhir.io/doc_extensions.html under the heading Custom Resource Types. For the server code and client code this is…
knockerjungle
  • 170
  • 1
  • 11
2
votes
1 answer

How to pull all search results quickly from a FHIR server

I am using the fetchAll function on an instance of an FHIR Client (specifically, I'm using the HAPI FHIR server). I am trying to collect all observations with a certain LOINC code. From my understanding, a request is sent to the server telling it…
2
votes
1 answer

Conditional References in HAPI FHIR

HL7 FHIR Release 3 (STU) introduced the concept of Conditional References in transaction bundles: When constructing the bundle, the client may not know the logical id of a resource, but it may know identifying information - e.g. an identifier. This…
dedek
  • 7,981
  • 3
  • 38
  • 68
2
votes
1 answer

How do I add Medication names autocompletion functionality to my EHR using [MedlinePlus, Dailymed, NLM, RxNorm]

I want to develop an EHR but I am stuck at the medication autocompleting functionality by typing the medication name in input box using one of the api's that I mentioned at the title of this question so, I want to type medication name for example…
user2620132
  • 155
  • 1
  • 1
  • 10
2
votes
1 answer

HAPI FHIR Validating against custom structuredefinition

Okay, I am working with HAPI FHIR APi's and I am trying to figure out how to validate and object/ against a custom StructureDefinition json or resourcetext. I have no problems creating a default validator and validating against the default…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
2
votes
2 answers

Iterating over a paged fhir response

I've ran a query on a hapi fhir database which has returned a paged result back to me. I'm using hapi base in java to actually do the search, as per the documentation here: http://hapifhir.io/doc_rest_client.html Bundle bundle =…
Andy
  • 3,228
  • 8
  • 40
  • 65
2
votes
1 answer

Why isn't my fhir resource validating against a profile?

I'm trying to validate an instance of the resource type 'Basic' against the following profile which I've created: https://simplifier.net/Crew/questionResponse I have uploaded the profile to my local HAPI server, I then try to upload a resource and…
Andy
  • 3,228
  • 8
  • 40
  • 65
2
votes
1 answer

Failed to Call Access Method Exception when Creating a MedicationOrder in FHIR

I am using this http://fhirtest.uhn.ca/baseDstu2 test FHIR server and it worked okay so far. Now I am getting an HTTP-500 - Failed to Call Access Method exception. Anyone has any idea on what has gone wrong?
2
votes
1 answer

Accessing a resource within a Bundle HL7-FHIR

I was just wondering if there is a way to access a resource within a bundle. I.E FhirContext ctx = FhirContext.forDstu3(); String baseSite= "http://fhirtest.uhn.ca/baseDstu3/"; IGenericClient client =…
Georgrio
  • 91
  • 2
  • 14
2
votes
0 answers

Error when setting the date of setissue

I am getting the error java.lang.NoSuchMethodError: org.apache.commons.lang3.time.FastDateFormat.parse(Ljava/lang/String;)Ljava/util/Date; while setting the date of setIssued in HAPI FHIR Observation. I have added commons-lang3-3.3.2.jar in the…
1
vote
1 answer

HAPI FHIR OpenAPI Document - Modifying Responses

I have an OpenAPI document for HAPI FHIR that I am using to build a custom extension in Watson Assistant. Currently, when I make a call using this document, I only receive a "success" response. However, when I am examining the JSON response in the…
C Chen
  • 25
  • 4
1
vote
1 answer

Created new custom resource type through the HAPI JPA Server Starter code but unable to make a request to this new resource

I created new custom resource type through the HAPI JPA Server starter code by following steps but unable to make a call to this new resource type: Create a custom resource type class extending Resource class with two parameters name and…
1 2
3
16 17