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
If you have a primitive datatype with an extension the value can not be read. We have a QuestionnaireResponse with extended datatypes for the answers (in this example a date):
* Due to a bug in fhir_models (fhir-crucible/fhir_models#93) we need too use xml response, which apparently doesn't parse the encrypted message very well, so a hack is needed there as well
esbakker
added a commit
to openhealthhub/FhirClients
that referenced
this issue
Aug 9, 2021
* OP-651 add get examples for ruby
* OP-651 add create and search examples for ruby
* OP-651 add decryption example of questionnaire response
* Due to a bug in fhir_models (fhir-crucible/fhir_models#93) we need too use xml response, which apparently doesn't parse the encrypted message very well, so a hack is needed there as well
If you have a primitive datatype with an extension the value can not be read. We have a QuestionnaireResponse with extended datatypes for the answers (in this example a date):
As you can see the date is emitted with a
_
prefix by HAPI. As described here.There is no way to access these values. If I do a
JSON.dump
of the item I only get the linkId:For non-primitive datatypes like Coding it works as expected
For XML responses it works a little better, since the extension value is set as hash on the valueDate field:
The text was updated successfully, but these errors were encountered: