Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure Definition expects String in StructureDefinition->ElementDefinition->Type->Profile but there will be a list #103

Closed
chrmey opened this issue Apr 14, 2021 · 1 comment

Comments

@chrmey
Copy link

chrmey commented Apr 14, 2021

Screenshot from FHIR-Website: Element Definition

grafik

As the FHIR website suggests there can be multiple values (a list) in this field. FHIR Client gives me an exception, stating that it is expecting a string for this field.

Error Message:

Wrong type <class 'list'> for property "profile" on <class 'fhirclient.models.elementdefinition.ElementDefinitionType'>, expecting <class 'str'>

@mikix
Copy link
Contributor

mikix commented Jul 17, 2024

Thanks for the report!

I'm not sure what the state of things was in April 2021, but in the current release (and in main), the profile field is a string, but marked as is_list (the True right after the str).

So this should be working today at least. If it still isn't working for you, please re-open.

@mikix mikix closed this as completed Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants