Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Reference resource in bundle entry by UUID via fullURL does not work #544
I am currently trying to process a bundle which contains a DocumentReference resource that has an author which is a reference to another resource in this bundle (another entry) and the reference is done by UUID.
As far as i can see in the FHIR standard this should be correct (see example in https://www.hl7.org/FHIR/bundle.html#references) but the parser in HAPI-FHIR does not resolve the author resource properly. I had a look in the code in ParserState.stitchBundleCrossReferences which should handle this and it seems that this kind of references are currently not supported/implemented by HAPI-FHIR.
See also example bundle in the attachement.
Hey @jodue , I actually only saw your reply after already having fixed this. The root cause was an issue I've wanted to fix for a while (IdType/IdDt parsing placeholder IDs into a prefix and a root when it should actually treat them as an opaque string) so I dove in and corrected all of that.
If you're interested in getting involved in other parts of the code base, naturally we would welcome any help you want to offer! :)
Perfect! Thanks again for fixing this so fast!
I am working on a project where we utilize the HAPI-FHIR library and since we just started we probably will find other areas where we want to fix/improve code. I already saw that at least one other person from my company (Agfa Healthcare) contributed code to this library in the past.