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

FHIR profiled json format

Base Patient resource has identifier with cardinality 0 -> many. We have profile based on Patient where we have identifier 1 -> 1. So how the output json should look like ? "identifier": { "system" : "some-system.url", "code" :…
Yaroslav Kovbas
  • 430
  • 4
  • 7
1
vote
1 answer

How to set custom header in fhirclient-4.0.0 python library?

I am working with fhirclient-4.0.0 and using this library to send Http requests to my fhir server. For the update request, I need to send one extra header 'If-Match'. But I don't see any option to do this or to set custom header. This is my python…
Neeraj
  • 11
  • 1
1
vote
2 answers

FHIR - Extending a operation parameter (Additional parameters in Patient Resource)

https://www.hl7.org/fhir/parameters.html is it right to add the additional parameters in extended operation or can we add the add the parameters in patient resource type . because if we have multiple values we are not able to map the patient data…
Shuail_CR007
  • 292
  • 1
  • 15
1
vote
2 answers

hapi fhir server full turn key implementation

So I have been using Hapi Fhir Server (for several years) as a way to expose proprietary data in my company....aka, implementing IResourceProvider for several resources. Think "read only" in this world. Now I am considering accepting writes. The…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
1
vote
1 answer

org.hl7.fhir.dstu3.model.Parameters resource object will not hydrate/populate on extended operation

I have a custom IResourceProvider that serves Measure (Measure.class). In that code, I have the following extended operation. (from http://hapifhir.io/doc_rest_operations.html#_toc_extended_operations ) @Operation(name = "$humptydumpty") public…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
1
vote
1 answer

FHIR search multiple words with _content

I am trying to search multiple words using _content search parameter but it does not work. Example CAll - GET [base]/Condition?_content=(bone OR liver) and metastases This request should return all Condition resources with the word "metastases" and…
Saurav
  • 13
  • 2
1
vote
1 answer

Can't understand importance of Schema/Schematron Validator

I am validating resource through Schema/Schematron validator. I am providing invalid xml of patient resource to it, still it does not complain and giving output as 'Validation passed'. As in below code snippet you can observe, I have given multiple…
Amit Gawali
  • 270
  • 2
  • 4
  • 18
1
vote
1 answer

GROUP BY-like function in FHIR Search

I am using the latest release of HapiFHIR (both server and client side) which should be HL7 FHIR compliant. As part of the project I am working on, I need to retrieve the latest observation for each device. Having experience in SQL, I naturally…
Alexandre Cassagne
  • 2,384
  • 23
  • 40
1
vote
0 answers

How can i consume HAPI Structure from my spring-boot application

I would like to use the HAPI FHIR structures in my application. My application is a spring-boot application. Code: @RequestMapping(value = "{fhirVersion}/$transaction", method = RequestMethod.POST) public String execute(@RequestBody Bundle…
CPF
  • 13
  • 3
1
vote
0 answers

Mapping CDA to FHIR resource using hapi-Fhir StructureMap resource in Java

I am trying to map xml cda document to Fhir resources using structureMap resource. Here is structureMap resource which I programmed: StructureMap structureMap = new StructureMap(); StructureMapGroupComponent group = new…
Sohrab
  • 1,348
  • 4
  • 13
  • 33
1
vote
0 answers

Hapi Fhir importing Snomed-CT

I am a newbie in Hapi Fhir, in Fhir also. I'm trying to import Snomed-CT / US version on Hapi Fhir. I'm using the client to do this, this way: To run the server: java -jar hapi-fhir-cli.jar run-server to upload snomed-ct java -jar hapi-fhir-cli.jar…
Alfonso Tienda
  • 3,442
  • 1
  • 19
  • 34
1
vote
0 answers

How can i create FHIR ValueSet with hierarchical content?

I want create ValueSet with link to my CodeSystem. ValueSet expantion with enclosed contains should be like: { ... "expansion": { "parameter": [ { "name": "total", "valueString": "282" …
DanStopka
  • 535
  • 5
  • 22
1
vote
2 answers

hapi-fhir conver fhir object to json string

I am currently using hapi-fhir 2.3 for DSTU2. If I have create a RiskAssessment object using hapi-fhir client api. How can I convert it to standard fhir json format? If using toSting() method, the following results are generated: { "mySubject" :…
Yi Luo
  • 153
  • 2
  • 15
1
vote
1 answer

FHIR complex extension

How can I add an extension that has multiple fields ? For example if I have a extension related to visit motives that is structured like this in my application : "visit_motive": { "id": "1", "label": "Visit motive name", …
user2462805
  • 1,049
  • 3
  • 11
  • 26
1
vote
0 answers

HAPI always seems to timeout on searches

I have a HAPI instance set up in it's out of the box configuration. I've loaded 370,000 instances of Basic into it, and each one has a value for Basic.Meta.Profile. I try to do a search for all instances of a given profile:…
Andy
  • 3,228
  • 8
  • 40
  • 65