Stream: hapi
Topic: vocab validation
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"?
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)
Josh Mandel (Jul 13 2016 at 15:47):
Awesome!
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
Grahame Grieve (Jul 20 2016 at 00:10):
} else if ("display".equals(fc.getProperty()) && fc.getOp() == FilterOperator.EQUAL) {
Grahame Grieve (Jul 20 2016 at 00:10):
what follows that. Here's my comment I just added:
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'?
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...
Grahame Grieve (Jul 20 2016 at 01:25):
wouldn't want a regex here - all codes with display properties that meet a regex?
Grahame Grieve (Jul 20 2016 at 01:26):
p.s. how do you feel about breaking changes to the iWorkerContext interface?
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.
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
Grahame Grieve (Jul 20 2016 at 01:30):
ok. I'm making the expand methods have an explicit heirachical parameter
Grahame Grieve (Jul 20 2016 at 01:30):
default would be false
Grahame Grieve (Jul 20 2016 at 01:30):
- preserves current behviour
James Agnew (Jul 20 2016 at 01:31):
and true requests that the expander return hierarchies instead of the current flat list?
Grahame Grieve (Jul 20 2016 at 01:31):
yes, in the expansion.contains, it it can figure out how to
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
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
Grahame Grieve (Jul 20 2016 at 01:33):
yes. I'll let you know when I commit
James Agnew (Jul 20 2016 at 01:34):
cool
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
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