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

How to form post request body where resource contained multi reference resources from Java to FHIR api

I have to send request body as org.hl7.fhir.r4.model.CoverageEligibilityRequest which is contained Patient, Practitioner, Organization as below. This API will return Bundle response. I am using Java and Generic client from Hapi Fire library. There…
Shridevi
  • 19
  • 7
0
votes
1 answer

FHIR read/write rules on determinated resource field

I want to know if is it possible define in FHIR a strategy about read / write specific resource field. i.e. I have a ServiceRequest resource. I want to grant for a specific profile / role write on authoredOn field and I want to prevent the write for…
Joe Taras
  • 15,166
  • 7
  • 42
  • 55
0
votes
1 answer

Hapi Fhir Constants for "Common Parameters defined for all resources"

http://www.hl7.org/implement/standards/fhir/search.html#advanced Common Parameters defined for all resources: Name Type Description Paths _id token Resource id (not a full URL) Resource.id _lastUpdated date Date last updated. Server…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
0
votes
1 answer

Angular Recursive HTTP Request results in infinite loop

I'm having a very hard time implementing a recursive HTTP request functionality in an Angular application using HttpClient. I have an API that serves some data for me. The API puts the data into pages, meaning that the first response contains a URL…
Walnussbär
  • 567
  • 5
  • 19
0
votes
0 answers

How to write hapi code for a specific local URL

I am presently using HAPI FHIR server for implementation. Presently I have HAPI code for below AND Query which is working fine. http://127.0.0.1:8080/hapi-fhir-jpaserver/fhir/Organization?name=SIMPLY&address=SIMPLY Bundle bundle =…
Shriya
  • 21
  • 2
0
votes
2 answers

Unable to remove "\" from the json nested attributes using spark scala

I am working on an FHIR resource where I am getting a JSON data like below: { "appointmentRef": "Appointment/12213#4200", "encounterLengh": "2", "billingAccount": "savingsAccount", "hospitalization":…
whatsinthename
  • 1,828
  • 20
  • 59
0
votes
1 answer

Deploying a custom HAPI FHIR server using docker compose

I cloned the hapi-fhir-jpaserver-starter and modified the code to meet my requirements then did as they said in the README file: mvn clean install docker-compose up -d --build It did deploy the server but with a new fresh HAPI server, not the one I…
DevGeek344
  • 129
  • 11
0
votes
2 answers

After installing a HAPI FHIR server, what database to use?

I'm new to HAPI FHIR, I created a google cloud compute engine VM, installed java and maven, cloned the hapi-fhir-jpaserver-starter and installed it with : mvn install Then runned it to test in my server with : mvn jetty:run Now I access it using :…
xgeek652
  • 305
  • 3
  • 17
0
votes
1 answer

loadPage().next(bundle).execute() would lead to infinite loop

I am trying to get all the entries in a paginated bundle. The working code is as follow: Bundle bundle = fhirClient.search() .forResource(...) .where(...) .returnBundle(Bundle.class) .execute(); …
EzyHoo
  • 301
  • 2
  • 14
0
votes
0 answers

Setting and Getting of Values using Scala Reflection

I have a patient resource of below type: val p:Patient = new Patient which comes under below package: import org.hl7.fhir.r4.model.Patient Now, I want to set some value for it like one ID attribute with value like example and when I try…
whatsinthename
  • 1,828
  • 20
  • 59
0
votes
1 answer

Usage of search parameter "_profile" in HAPI FHIR

In the FHIR REST API, there are some standard parameters for all resources that can be used in the 'search' endpoints. I need to use the '_profile' parameter on a search operation: https://www.hl7.org/fhir/search.html#profile The HAPI FHIR…
Pablo Pazos
  • 3,080
  • 29
  • 42
0
votes
1 answer

How do I do authorization/access control in FHIR store?

Is it possible to do authorization / access control in FHIR store? Let me show one example: The insurance company receive clinical information from 3 different partners, but the company need to create a different role for each one. So, the first…
0
votes
2 answers

Can we update any fhir resource on the basis of patient id?

I am trying to update Encounter resource on the basis of patient id but it is only creating one new record of Encounter rather than updating the existing one. But if i try to update Encounter on the basis of identifier i.e. unique value representing…
0
votes
1 answer

FHIR Coverage resource

I am working an a project to create FHIR Coverage resource for Patient ID search. I am looking for examples of Coverage resource especially for medicare insurance. I tried a lot but could not find examples for Medicare. Can someone please share some…
0
votes
2 answers

Business logic on FHIR

I want to implement some business logic rules on FHIR resources and I want to work with RESTFUL API methods. An example: I've a ServiceRequest resource with a status, I want to prevent change of status depends of the actual value Suppose if…
Joe Taras
  • 15,166
  • 7
  • 42
  • 55