FHIR Chat · ValueSet $expand with specific code system · terminology

Stream: terminology

Topic: ValueSet $expand with specific code system


view this post on Zulip Yunwei Wang (Jul 03 2018 at 14:23):

Assume I have a valueset which has both Snomed and Loinc in its full expansion. How do I get only Snomed codes in $expand operation. I am considering using context=http://snomed.info/sct parameter. Or I can define my own input parameter in CapabilityStatement.

view this post on Zulip Grahame Grieve (Jul 03 2018 at 20:04):

right now, there's no way to say this

view this post on Zulip Grahame Grieve (Jul 03 2018 at 20:04):

sounds like an odd use case to me

view this post on Zulip Michael Lawley (Jul 03 2018 at 21:11):

You could perhaps define a new ValueSet that includes the original ValueSet and has a filter that restricts system to being http://snomed.info/sct

view this post on Zulip Grahame Grieve (Jul 04 2018 at 17:42):

actually, this is supported in ExpansionProfile

view this post on Zulip Rob Hausam (Jul 04 2018 at 18:07):

yes, but we're removing ExpansionProfile

view this post on Zulip Grahame Grieve (Jul 04 2018 at 19:59):

right. and so I just moved that functionality across. I'm hoping to commit a removed ExpansionProfile in the next 2 hours

view this post on Zulip Yunwei Wang (Jul 04 2018 at 20:05):

@Rob Hausam Will those parameter in ExpansionProfile be added to $expand operation?

view this post on Zulip Grahame Grieve (Jul 04 2018 at 20:05):

yes

view this post on Zulip Yunwei Wang (Jul 04 2018 at 20:09):

I think ExpansionProfile.excludeSystem is close to what I need but not exactly. I may need an extra parameter. To declare additional input parameters, I need update my OperationDefinition instance. Is that all. No extension required?

view this post on Zulip Grahame Grieve (Jul 04 2018 at 20:15):

no

view this post on Zulip Grahame Grieve (Jul 04 2018 at 20:15):

why doesn't it do what you want?

view this post on Zulip Yunwei Wang (Jul 04 2018 at 20:17):

if there are only two code systems, excludeSystem is fine. But if there are more, then I have to exclude the rest one by one. That's why I think it is close but not exactly what I need. I wish there were includeSystem parameter. :)

view this post on Zulip Grahame Grieve (Jul 04 2018 at 20:22):

hmm what is your use case? Maybe Michael's suggestion above is the go?

view this post on Zulip Yunwei Wang (Jul 04 2018 at 20:38):

I want to create a ValueSet definition which can be used to generated expansions using different code systems. For example, I can define a value set "diabetes", and I want to generate one expansion for SCT codes and another expansion for ICD-10 code. In my opinion, It is the same ValueSet instance with two different $expand operation results. My problem is, as I mentioned, how to specify which expansion I want when invoke $expand operation.

view this post on Zulip Peter Jordan (Jul 04 2018 at 20:39):

Maybe this is a case of asking a server to implement something that's easier for a client to do?

view this post on Zulip Grahame Grieve (Jul 04 2018 at 21:00):

Committing now

view this post on Zulip Michael Lawley (Jul 06 2018 at 01:38):

If the client is choosing, why can't it just choose the appropriate ValueSet definition? I'm not sure I understand the advantage of having a single ValueSet for this use case

view this post on Zulip Carol Macumber (Jul 16 2018 at 15:57):

I'm with @Michael Lawley . @Yunwei Wang can you tell us a little more about your use case (if this is still something you still think you need and haven't come up with an acceptable solution)?


Last updated: Apr 12 2022 at 19:14 UTC