FHIR Chat · Publisher generating an error when slicing element · IG creation

Stream: IG creation

Topic: Publisher generating an error when slicing element


view this post on Zulip Abdullah Rafiqi (Feb 19 2021 at 20:54):

Trying to slice identifier within the the qi-core profile spreadsheet (http://hl7.org/fhir/us/qicore/STU4/StructureDefinition-qicore-organization.html) to align with (http://build.fhir.org/ig/HL7/davinci-deqm/StructureDefinition-organization-deqm.html) and duplicate EIN/CCN.

I am getting the following error when running the publisher:

A screenshot of the profile spreadsheet is where '$this' is the slice discriminator (similar to us-core-organization) and fixed value of system uri is expressed in XMl.

Any suggestions would be greatly appreciated.

view this post on Zulip Chris Moesel (Feb 19 2021 at 21:41):

I have never used the spreadsheets before, but that error is indicating that you're trying to slice using discriminator type value, but the parent profile uses discriminator type pattern. I see that there are Value and Pattern columns in the spreadsheet. Might it work if you move <Identifier> from the Value column to the Pattern column?

view this post on Zulip Abdullah Rafiqi (Feb 19 2021 at 22:25):

Yup, I've moved <Identifier> into the Pattern column and then into both Valueand Pattern and it still generates the same error. I noticed that on the parent profile as well and was wondering if there is a way within the spreadsheet to indicate discriminator type pattern instead of value?

view this post on Zulip Chris Moesel (Feb 19 2021 at 22:33):

Oh well. It was worth a shot. ;-)

view this post on Zulip Abdullah Rafiqi (Feb 24 2021 at 15:39):

Thanks @Chris Moesel Wonder if @Lloyd McKenzie might have any suggestions.

view this post on Zulip Lloyd McKenzie (Feb 24 2021 at 15:48):

To indicate pattern, put a ".@pattern" on the end of your discriminator. I have no idea why it's doing that as the default. There's no way to assert 'value' because it's supposed to be the default...

view this post on Zulip Eric Haas (Feb 24 2021 at 16:28):

Even us hardcore spreadsheeters have moved on from them ...I’d suggest ditching the spreadsheets and using fsh or some other tool to manage your profiles. The steep learning curve is worth it.

view this post on Zulip Abdullah Rafiqi (Feb 24 2021 at 22:04):

Thanks @Lloyd McKenzie . That fixed the issue and def agree on weaving off the spreadsheet


Last updated: Apr 12 2022 at 19:14 UTC