You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a known issue when retrieving resources that inherit from DomainResource and have one or more contained resources. As these resources are unmarshaled from the database the exact type of the contained resources is not known, so they are unmarshaled into the generic interface{} type.
This unmarshaling operation names the fields in this interface{}exactly as they are in the database, meaning the id is actually _id, and the fields used to store the extension (@context, @id, @type) remain that way.
The _id field is corrected to id in the web layer before being returned to a client, but the extensions are not.
The text was updated successfully, but these errors were encountered:
eug48
added a commit
to eug48/fhir
that referenced
this issue
Mar 8, 2018
This is a known issue when retrieving resources that inherit from
DomainResource
and have one or morecontained
resources. As these resources are unmarshaled from the database the exact type of the contained resources is not known, so they are unmarshaled into the genericinterface{}
type.This unmarshaling operation names the fields in this
interface{}
exactly as they are in the database, meaning theid
is actually_id
, and the fields used to store the extension (@context
,@id
,@type
) remain that way.The
_id
field is corrected toid
in the web layer before being returned to a client, but the extensions are not.The text was updated successfully, but these errors were encountered: