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

Compartment Search is not working in Hapi Fhir JPA Server

I am using Hapi FHIR Jpa Server implementation for R4. I was trying compartment search on this server. It is throwing error. I am using Generic Client to perform compartment search. response = client.search() …
Sarvesh
  • 551
  • 1
  • 10
  • 25
0
votes
1 answer

FHIR Patch in a transaction bundle

In order to submit a PATCH operation in a FHIR transaction bundle, I see that we can use a resourceType as Binary and submit like this (quoted from https://smilecdr.com/docs/fhir_repository/updating_data.html), "resourceType": "Bundle", "type":…
0
votes
1 answer

Write correct JSON about PlanDefinition and ActivityDefinition on FHIR

I want to write a JSON to create a PlanDefinition resource with some ActivityDefinition resources inside it to persiste on FHIR r4 server these resources. My sandbox server is Hapi FHIR Two questions: The first: How can I write it The second: When…
Joe Taras
  • 15,166
  • 7
  • 42
  • 55
0
votes
1 answer

Adding CodeableConcept element to FHIR resource 'extension'

I am new to FHIR and HL7. I need to add a new element to ChargeItemDefinition resource and this element data type is CodeableConcept. I think we need to create a new StructureDefinition with a CodeableConcept field and then register it on the server…
Yousef Al Kahky
  • 703
  • 1
  • 8
  • 23
0
votes
0 answers

How to index on date in FHIR?

In Fhir we have a parameter called _content which does the search on entire text of the single document. For example, let's say we have patients who have the last name as Bauch then we can search the patient something like…
Srinivas
  • 294
  • 3
  • 18
0
votes
2 answers

How to search birthData in fhir using _content?

When I search with only birthData in fhir I am getting results. For example: http://localhost:8080/hapi-fhir-jpaserver/fhir/Patient?_pretty=true&birthdate=2020-03-16 will return patient who has birthdate as 2020-03-16. When I am searching with…
Srinivas
  • 294
  • 3
  • 18
0
votes
1 answer

What is the purpose of the post request object at the end of my patient resource generated with Synthea?

I have generated a patient with the default settings using Synthea. The first entry in the bundle generated is as follows: { "fullUrl": "urn:uuid:0100411a-6826-40d8-bfc7-baba56c9945b", "resource": { // Patient resource here }, "request":…
Ewan Brown
  • 143
  • 1
  • 9
0
votes
2 answers

Retrieving all the data at once instead of calling each reference separately

Working the first time with FHIR, and I can't figure out how I retrieve all data saved as a bundle at once. So I save a Bundle: Composition with 3 references. Everything is successful. When I call the data (GET) then I get my Composition, but the…
moritz
  • 3
  • 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

Validation of FHIR Resources against different aspects listed at https://www.hl7.org/fhir/validation.html using HAPI Library

Getting the below exception when running the code: FhirContext ctx = FhirContext.forR4(); // Create a FhirInstanceValidator and register it to a validator FhirValidator validator = ctx.newValidator(); FhirInstanceValidator…
user2734915
  • 85
  • 1
  • 10
0
votes
2 answers

Can Kafka's stream API help distribute hundreds of pagination requests?

I am building an application that reaches out to a FHIR API that implements paging, and only gives me a maximum of 100 results per page. However, our app requires the aggregation of these pages in order to hand over metadata to the UI about the…
0
votes
1 answer

Fhir client against hapi server never returns more than 2000 records

I'm using the .NET Fhir client against a Smile (hapi) CDR Fhir server. I have 3235 patients that I'm trying to retrieve using the code below, but never get more than 2000 exactly. I have tried adding headers using and not using the no-cache…
Geekn
  • 2,650
  • 5
  • 40
  • 80
0
votes
1 answer

Operation failure doing conditional delete against Fhir server with large number of patients

I'm trying to perform a conditional delete what involves many records. When attempting to delete patients that meet the criteria, I receive the following exception when using the .NET FHIR client (Hl7.Fhir.Rest). I have a feeling like may be due to…
Geekn
  • 2,650
  • 5
  • 40
  • 80
0
votes
1 answer

What does HapiFhir toListOfResourcesOfType() method do?

I have this getPatients() method where I get the patients whose family's names matches "Goodwin32". This is my code: public List getPatients(){ Bundle bundle = client.search().forResource(Patient.class) .where(new…
Sook Lim
  • 541
  • 6
  • 28
0
votes
1 answer

FHIR HL7 json structure

I just wanted to know the structure of FHIR HL7 when we have following information for same patient with difference addresses and compound drugs. Reference id Execution or publication date Precription1 Drug Name Drug Strength Prescription written…