Skip to content

What if elementProperties returns dictionary but not list? #137

@tmitanitky

Description

@tmitanitky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions