Stream: hapi
Topic: Location references under HealthcareService
Juan Ospina (Jan 12 2022 at 20:13):
Hi all!
Regarding HealthcareService objects (org.hl7.fhir.r4.model.HealthcareService), in order to represent its coverage area, currently we are defining a Location object (org.hl7.fhir.r4.model.Location) which has associated an Extension object (org.hl7.fhir.r4.model.Extension) which, in turn contains all the coverage area information under an Attachment object (org.hl7.fhir.r4.model.Attachment).
Once the Location object representing the coverage area is added to the HealthcareService object via the addLocation() method, in addition to the Location entry created in the JSON file bundle ("resourceType": "Bundle") with all the coverage area relevant information (totally expected), a Location reference is created under the HealthcareService>Location element (not desirable according to our expectations).
Our question is:
Is there a way to add a Location object to a HealthcareService object and avoid including the HealthcareService>entry>location reference to the newly added Location object in the generated JSON file?
Our HAPI FHIR version is 5.4.0.
Example:
Undesirable HealthcareService > entry > location:
"location": [
{
"reference": "<some valid reference to the HealthcareService location>",
"type": "Location",
"display": "ABC"
},
{
"reference": "<Undesirable reference to the coverage area Location object>"
}
],
Thanks and regards,
Juan Ospina
Last updated: Apr 12 2022 at 19:14 UTC