FHIR Chat · vocab validation · hapi

Stream: hapi

Topic: vocab validation


view this post on Zulip Josh Mandel (Jul 13 2016 at 15:43):

In the updated HAPI terminology support, does the $validate operation know how to determine whether a code does-not-exist in a system (e.g. if instance data claims to use "loinc 123-bad-fake-code"?

view this post on Zulip James Agnew (Jul 13 2016 at 15:46):

Yup, $validate should be able to reject codes that are in any code system it knows about (including ones which have been uploaded to the server via a CodeSystem resource, and ones which are external such as LOINC/SCT)

view this post on Zulip Josh Mandel (Jul 13 2016 at 15:47):

Awesome!

view this post on Zulip Grahame Grieve (Jul 20 2016 at 00:10):

@James Agnew - looking at a mustifying line in ValueSetExpanderSimple, and wondering whether it's yours, cause I don't remember it, and it doesn't make sense to me

view this post on Zulip Grahame Grieve (Jul 20 2016 at 00:10):

} else if ("display".equals(fc.getProperty()) && fc.getOp() == FilterOperator.EQUAL) {

view this post on Zulip Grahame Grieve (Jul 20 2016 at 00:10):

what follows that. Here's my comment I just added:

view this post on Zulip Grahame Grieve (Jul 20 2016 at 00:10):

// gg; note: wtf is this if the filter is display=v, look up the code 'v', and see if it's diplsay is 'v'?

view this post on Zulip James Agnew (Jul 20 2016 at 01:19):

hmmm.... you're right, that does not make sense at all. It's supposed to be a filter on the display property, but obviously that's not going to work right!

let's see why my unit test isn't failing that...

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:25):

wouldn't want a regex here - all codes with display properties that meet a regex?

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:26):

p.s. how do you feel about breaking changes to the iWorkerContext interface?

view this post on Zulip James Agnew (Jul 20 2016 at 01:28):

That would probably be useful as well, but the intent here is to supply the EQUAL one since that's supported in my lucene equivalent and I'm trying to have ValueSetExpanderSimple support all of the same stuff I can do in Lucene for external CodeSystems. I'll add a regex equivalent as I fix this though, that would be useful I'd agree.

view this post on Zulip James Agnew (Jul 20 2016 at 01:29):

I'm sure that would be fine- I treat that interface as internal so I'm not fussy about it changing between versions as long as I have a way of implemeting its methods

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:30):

ok. I'm making the expand methods have an explicit heirachical parameter

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:30):

default would be false

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:30):

- preserves current behviour

view this post on Zulip James Agnew (Jul 20 2016 at 01:31):

and true requests that the expander return hierarchies instead of the current flat list?

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:31):

yes, in the expansion.contains, it it can figure out how to

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:32):

my first round, there's some cases where I could figure out how to that I haven't tried to yet, but there's ones where I am

view this post on Zulip James Agnew (Jul 20 2016 at 01:33):

neat, yeah that sounds like a useful change.

are you working on this now? obviously this will affect ValueSetExpander so I'll wait until you're done before fixing the display thing if so

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:33):

yes. I'll let you know when I commit

view this post on Zulip James Agnew (Jul 20 2016 at 01:34):

cool

view this post on Zulip Grahame Grieve (Jul 20 2016 at 01:34):

basically, if you have only one include, and you include a whole code system, or you include all children of one code, then I'll make it a heiarchy. Else it won't be

view this post on Zulip Grahame Grieve (Jul 20 2016 at 05:33):

going to commit shortly. This commit will move some elements from code to an enumeration -I picked up a set of elements that weren't getting coded properly


Last updated: Apr 12 2022 at 19:14 UTC