question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate ways to speed up FHIRJsonParser

See original GitHub issue

FHIRJsonParser is currently generated from FHIR structure definitions using com.ibm.fhir.tools.CodeGenerator. The current structure of the parser is to check for all possible elements which results in more map lookups and method invocations than are needed for a typical instance. A better structure might be something like this:

Patient.Builder builder = Patient.builder();
for (String key : jsonObject.keySet()) {
    switch (key) {
    case "active":
        builder.active(parseBoolean(...));
        break;
    case "gender":
        builder.gender(parseString(...));
        break;
    // ...
}
return builder.build();

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnTimmcommented, May 26, 2021

Personally I think Deferral of resource deserialization is on the same order of magnitude as #2417 (and I actually like it a bit more). Should we open an issue for that idea?

I have created the following issue: https://github.com/IBM/FHIR/issues/2432

1reaction
lmsurprecommented, May 25, 2021

Personally I think Deferral of resource deserialization is on the same order of magnitude as #2417 (and I actually like it a bit more). Should we open an issue for that idea?

Read more comments on GitHub >

github_iconTop Results From Across the Web

performance testing · Issue #134 · hapifhir/hapi-fhir
We should investigate using ASM or Javassist or something to speed this up. Another possibility would be to use code-genned helper methods ......
Read more >
Parsing and Serializing - HAPI FHIR Documentation
A built in parser can be used to convert HAPI FHIR Java objects into a serialized form, and to parse serialized data into...
Read more >
Advanced FHIR search features | Cloud Healthcare API
This page explains how to search for FHIR resources using more advanced query functionality available through the projects.locations.datasets.
Read more >
An Interactive Visualization Tool for HL7 FHIR Specification ...
The FHIR resource schema in JSON contains two types of key elements “$ref” and “properties.” Our method supports the automatic parsing of the...
Read more >
FHIR Data | FHIR Support in InterSystems Products
If a FHIR payload is in JSON, for example in an Interoperability request or response, you can convert it to a dynamic object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found