FHIR Chat · New error about element not existing (did exist) · shorthand

Stream: shorthand

Topic: New error about element not existing (did exist)


view this post on Zulip Jean Duteau (Apr 22 2021 at 19:48):

I made some changes to my FSH project and I'm not getting a bunch of errors about entry[x].fullUrl not existing. I didn't change those and the ci-build is just fine. To double check, I reverted my project and I get the same errors:

error The element or path you referenced does not exist: entry[Message].fullUrl
  File: EstablishmentRegistration.fsh
  Line: 197
error The element or path you referenced does not exist: entry[Registrant].fullUrl
  File: EstablishmentRegistration.fsh
  Line: 199
error The element or path you referenced does not exist: entry[Establishment].fullUrl
  File: EstablishmentRegistration.fsh
  Line: 201

Here is the FSH file:

Instance: ExampleEstablishmentRegistration
InstanceOf: EstablishmentRegistrationBundle
Description: "An example of a Bundle containing a set of Establishment Registration resources."
* timestamp = "2002-08-11T01:01:01.111+06:00"
* entry[Message].resource = EstablishmentRegistrationMessage
* entry[Message].fullUrl = "http://example.org/MessageHeader/EstablishmentRegistrationMessage"
* entry[Registrant].resource = ExampleRegistrant
* entry[Registrant].fullUrl = "http://example.org/Organization/ExampleRegistrant"
* entry[Establishment].resource = ExampleEstablishment
* entry[Establishment].fullUrl = "http://example.org/Organization/ExampleEstablishment"

I'm confused as to how this would have worked before, worked on the latest CI-build, and doesn't work now in my environment. I'm running SUSHI 1.3.1.

view this post on Zulip Jean Duteau (Apr 22 2021 at 19:59):

Followup: I got this to work by removing my constraint on fullUrl where I had declared it 1..1. Since I don't actually want to mandate a fullUrl, this is okay, but I'm not sure why that would cause the errors.


Last updated: Apr 12 2022 at 19:14 UTC