cqframework / cqframework/clinical-reasoning
Problem test case EXM104-FHIR4
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 49
- Forks
- 43
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 13
Description
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:

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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the EXM104-FHIR4 case with the local Java Main setup and the paths shown in the report. Start at SingletonFromEvaluator line 32 and trace how the evaluator-cli inputs produce the three identical Patient objects. Done means identifying the source of the duplicate results and documenting or correcting the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100