FHIR Chat · SUSHI 0.6.3 · shorthand

Stream: shorthand

Topic: SUSHI 0.6.3


view this post on Zulip Chris Moesel (Jan 29 2020 at 23:01):

Announcing SUSHI 0.6.3:

  • Defaults new Profile/Extension definitions to minimal set of high-level metadata (#157)
  • Validates id and name values (#139)
  • Converts local CodeSystem names to URLs when used in concepts (#149)
  • Minimizes xhtml strings to remove whitespace or other invalid characters (#147)
  • Adds releaselabel and copyrightyear parameters to generated ImplementationGuide JSON to make IG Publisher happy (#166)
  • Fixes redundant display of slice information in differential (#99)
  • Fixes instance generation for slices from external profiles/extensions (#121)
  • Fixes parsing of paths that contain a URL in square brackets (#151)
  • Fixes parsing issues for files that don't end with a newline (#145)

More details in the release notes: https://github.com/FHIR/sushi/tree/v0.6.3

view this post on Zulip David Hay (Jan 30 2020 at 00:25):

In an extension. how can I specify a name independently of the Id?

The following now fails (?because the name is derived from the id?

Extension: address-isPrimary
Id: address-isPrimary

view this post on Zulip David Hay (Jan 30 2020 at 00:30):

  • ^name = "Test" is the way of course. But still getting errors. Investigating. Is setting a separate id and name going to cause downstream errors?

view this post on Zulip David Hay (Jan 30 2020 at 00:35):

Ok. This works:

Extension: Address_isPrimary
Id: Address-isPrimary

pity there is a difference between id & name!

view this post on Zulip Chris Moesel (Jan 30 2020 at 00:49):

Yeah, you can have different name and id, in fact, that seems to be pretty common. In US Core I think every profile/resource has separate names and ids. From what I've seen, it seems like maybe it's common for _name_ to be Capitalized (and either PascalCase or using _) and id to be lowercase with dashes (-). That said, I haven't surveyed tons of IGs, so it could just be the IGs I've been looking at.

view this post on Zulip Chris Moesel (Jan 30 2020 at 00:50):

name is stricter than id, so if you really want them to match, I think as long as you do something that obeys the name rules, you're fine. By the way, we didn't make up these rules, they're part of FHIR! We just didn't flag them until now.

view this post on Zulip David Hay (Jan 30 2020 at 00:55):

Yep - I appreciate that! Was just a bit scary when I got 30 errors after updating! A quick fix to the extension generation script has fixed the problem (and doubtless avoided issues when I integrate with the IG builder at connectathon)...

And it's not just that name is stricter - id won't allow '_' whereas name won't allow ' - ' ...

anyway, all working now!

view this post on Zulip Chris Moesel (Jan 30 2020 at 00:59):

Oh. I hadn't noticed that id doesn't allow _. Yikes. Yeah, bummer. In SUSHI/FSH, if you don't specify an id, we used the name as the default id. I guess we'll need to update that code to replace _ with - in the id when we do that.

view this post on Zulip David Hay (Jan 30 2020 at 01:12):

yep..


Last updated: Apr 12 2022 at 19:14 UTC