-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Labels
Description
Hi,
Is there any reason that fhirclient.models.fhirabstractbase.FHIRAbstractBase.elementProperties() returns list but not dictionary? As the order of elements has no special meaning in FHIR, there seems to be no necessity to use list and there are some advantages for `using ``dictionary```.
If it returns dictionary, we can easily access information of an specific element of a resource:
from fhirclient.models.organization import Organization
organization = Organization()
organization.elementProperties()['identifier']
-> ('identifier', 'identifier', fhirclient.models.identifier.Identifier, True, None, False)
(As it could be a breaking change, new function such as *.elementPropertiesDictionary() might be preferred.)
How do you think about this??
Thanks.