Get extension value as an Array
# support
t
Hello @rahul1 , @cody I have an extension that a reuse a couple of times to create an array of values. I wanted to know if there is something in the medplum sdk to retrieve the array in a simple way ? I've created this github issue about getExtensionValue https://github.com/medplum/medplum/issues/4850, but maybe I've missed some things. Thank you.
r
@thomabig , your understanding of array extensions is correct, and this seems like a gap in our SDK helpers
Based on the pattern we have been following, the path forward would be for us to implement a separate function,
getExtensionAllValues
, that would return an array. That would also have the correct return types
t
Yes, that's actually what I did, and it is more tricky than expected but works 😉
194 Views