FHIR Chat · hapi fhir classes · hapi

Stream: hapi

Topic: hapi fhir classes


view this post on Zulip Muhammad Abdelhady (Feb 21 2022 at 19:07):

I can not find id property in hapi fhir model class

I can not map the received object to its corresponding class, for example: getting the practitioner resource object and saving it to a variable of type Practitioner, gives me an error because it can not find the property named id in the Practitioner model

this happens for bundle and every request that returns an id

view this post on Zulip James Agnew (Feb 23 2022 at 14:36):

ID can be found on the super-superclass (called Resource).

To get the ID from a Practitioner:

Practitioner p;
IdType id = p.getIdElement();

Last updated: Apr 12 2022 at 19:14 UTC