FHIR Chat · syntax multiple codes · shorthand

Stream: shorthand

Topic: syntax multiple codes


view this post on Zulip Catherine Hosage Norman (Jan 10 2022 at 23:25):

What is the SUSHI syntax for more than one code
For planDefintion
action.relatedAction.relationship = http://hl7.org/fhir/ValueSet/action-relationship-type
Both #concurrent #after are the only accepted values
I have tried all types of concatenation. to no avail.

view this post on Zulip Jean Duteau (Jan 10 2022 at 23:36):

i think you have to create a value set with just those two codes and bind the code to that new value set

view this post on Zulip Catherine Hosage Norman (Jan 11 2022 at 01:58):

Thanks. I was trying not to do that. Seems like a lot for just restricting it to 2 instead of 1 code.

view this post on Zulip Catherine Hosage Norman (Jan 11 2022 at 01:59):

this is one case when the spreadsheet was better. You just had to put a pipe between them.

view this post on Zulip Catherine Hosage Norman (Jan 11 2022 at 02:21):

It did not give an error on * action.relatedAction.relationship = #concurrent or #after

view this post on Zulip Catherine Hosage Norman (Jan 11 2022 at 02:33):

It does not like the "or". Another error was suppressing the evaluation

view this post on Zulip Catherine Hosage Norman (Jan 11 2022 at 02:37):

It does not accept a valueset. Says is wants a code system.

view this post on Zulip Jean Duteau (Jan 11 2022 at 05:18):

Catherine Hosage Norman said:

It does not accept a valueset. Says it wants a code system.

then you are doing something wrong since you bind code elements in profiles (and resources) to value sets and not to code systems. Can you show us an example of what you're doing?

view this post on Zulip Jean Duteau (Jan 11 2022 at 05:20):

Catherine Hosage Norman said:

this is one case when the spreadsheet was better. You just had to put a pipe between them.

I'm not sure that's true - i know that the description was set with codes between pipes. But if you actually wanted to restrict the values, you had to bind it to a new value set. There had to have been a value set behind the scenes if it was doing it automatically and I don't see how that would have worked.

view this post on Zulip Catherine Hosage Norman (Jan 11 2022 at 15:57):

The codes for relatedAction.relationshp are a value systen and not a code system http://hl7.org/fhir/ValueSet/action-relationship-type. Should I do a rule with multiple variants or a value set on a value set?

view this post on Zulip Chris Moesel (Jan 11 2022 at 16:26):

@Catherine Hosage Norman -- here is a barebones example of what I think you're trying to do: https://fshschool.org/FSHOnline/#/share/3GidvE5

view this post on Zulip Catherine Hosage Norman (Jan 11 2022 at 16:46):

Thank you. worked perfectly.

view this post on Zulip Hank Lenzi (Jan 21 2022 at 12:30):

Catherine Hosage Norman said:

What is the SUSHI syntax for more than one code
For planDefintion
action.relatedAction.relationship = http://hl7.org/fhir/ValueSet/action-relationship-type
Both #concurrent #after are the only accepted values
I have tried all types of concatenation. to no avail.

Have you tried slicing ?
Maybe these can help:
https://fhirblog.com/2019/08/12/slicing-with-forge/
https://fhirblog.com/2020/05/01/slicing-with-sushi/comment-page-1/
They use Forge but you can translate directly to FSH.

HTH


Last updated: Apr 12 2022 at 19:14 UTC