clinical-reasoning icon indicating copy to clipboard operation
clinical-reasoning copied to clipboard

Problem test case EXM104-FHIR4

Open pylgrim73 opened this issue 1 year ago • 0 comments

Hi All,

following the indsruction reported in the home page of the repository, I have tried to perform the test case related to the library EXM104-FHIR4. I used a local Java Main class (in place of the evaluator-cli) initialized as reported below: private static void initiLibraries() { libraries = new ArrayList<LibraryParameter>(); LibraryParameter lp = new LibraryParameter(); lp.libraryUrl="../connectathon/fhir4/input/pagecontent/cql"; lp.libraryName="EXM104_FHIR4"; ModelParameter mp = new ModelParameter(); mp.modelName = "FHIR"; mp.modelUrl = "../connectathon/fhir4/input/tests/EXM104_FHIR4-8.1.000"; lp.model=mp; lp.terminologyUrl="../connectathon/fhir4/input/vocabulary/valueset"; ContextParameter cp = new ContextParameter(); cp.contextName = "Patient"; cp.contextValue = "numer-EXM104-FHIR4"; lp.context=cp; libraries.add(lp); }

whe I run the program I get the following exception:

exception

I debugged a little bit and it seems that for some reason the operand is a List with 3 Patient inside (I mean 3 patients instead of a single Patient). The Patient objects are all the same. This determines (correctly I would add) the exception within the SingletonFromEvaluator at line 32. The problem I can't understand is why we arrive at that point of the code with 3 patients. Please can you provide a feedback on this? Thx

pylgrim73 avatar Jan 23 '23 16:01 pylgrim73