nazrulworld / fhir.resources

FHIR Resources https://www.hl7.org/fhir/resourcelist.html
https://pypi.org/project/fhir.resources/
Other
365 stars 104 forks source link

Question: Method resolved() on reference type data #108

Open jyotiamage opened 2 years ago

jyotiamage commented 2 years ago

Description

With fhir.resources 5.1.1 version we had method named resolved() on reference type data to follow through the references but I don't see same with fhir.resources 6.4.0. am I missing anything or is there any alternative for the same?

What I Did

v5.1.1
device= report.subject.resolved(Device)
device.manufacturer

v6.4.0
device= report.subject.resolved(Device)
device.manufacturer

**ERROR:AttributeError: 'Reference' object has no attribute 'resolved'**
nazrulworld commented 2 years ago

@jyotiamage from v6.x.x this library is no longer part of the client of SMART on FHIR server (or any open FHIR server), instead focused on standalone pure FHIR implementation. That is the reason "resolved()" is missing, which required server connection implementation.

binbrain commented 2 years ago

That makes sense. What about navigating references locally contained in the same FHIR document though? Is there an easy alternative method/technique to use in place of resolved()?