FHIR Chat · inline problem, non helpful error · shorthand

Stream: shorthand

Topic: inline problem, non helpful error


view this post on Zulip John Moehrke (Jan 01 2021 at 19:40):

I have successfully used inline in other projects, but my current (MHD) project is confusing me. I now am getting

error Cannot read property '0' of undefined

If I remove the contained[0] line and the #inline usage, it will work fine... just not contained...

I really think I have nothing more than https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/example.20of.20a.20FSH.20Instance.20with.20contained.20resources/near/217701268
But clearly, I have messed something up.. and the error message is not helping me figure out what I messed up.

view this post on Zulip John Moehrke (Jan 04 2021 at 14:07):

I figured it out... self inflicted... Being the security geek, I put meta.security at HTEST for all my examples... but inline resources can't have meta.security. So this is what caused this error.


Last updated: Apr 12 2022 at 19:14 UTC