Skip to content

Commit

Permalink
Merge pull request #219 from cqframework/fix-datarequirements
Browse files Browse the repository at this point in the history
Fixed minor issues with data requirements
  • Loading branch information
brynrhodes authored Apr 13, 2021
2 parents 76d3615 + ebeb7d2 commit 41f79f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void loadLibrary(Map<String, String> fileMap, List<org.hl7.fhir.r5.model
org.hl7.fhir.r5.model.Library library = (org.hl7.fhir.r5.model.Library) VersionConvertor_40_50.convertResource(resource);
fileMap.put(library.getId(), libraryFile.getAbsolutePath());
libraries.add(library);
} catch (IOException ex) {
} catch (Exception ex) {
logMessage(String.format("Error reading library: %s. Error: %s", libraryFile.getAbsolutePath(), ex.getMessage()));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ private void loadMeasure(Map<String, String> fileMap, List<org.hl7.fhir.r5.model
org.hl7.fhir.r5.model.Measure measure = (org.hl7.fhir.r5.model.Measure) VersionConvertor_40_50.convertResource(resource);
fileMap.put(measure.getId(), measureFile.getAbsolutePath());
measures.add(measure);
} catch (IOException ex) {
logMessage(String.format("Error reading library: %s. Error: %s", measureFile.getAbsolutePath(), ex.getMessage()));
} catch (Exception ex) {
logMessage(String.format("Error reading measure: %s. Error: %s", measureFile.getAbsolutePath(), ex.getMessage()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private Extension toLogicDefinition(ElmRequirement req, ExpressionDef def, Strin
e.addExtension(new Extension().setUrl("libraryName").setValue(toString(req.getLibraryIdentifier().getId())));
e.addExtension(new Extension().setUrl("name").setValue(toString(def.getName())));
e.addExtension(new Extension().setUrl("statement").setValue(toString(text)));
e.addExtension(new Extension().setUrl("sequence").setValue(toInteger(sequence)));
e.addExtension(new Extension().setUrl("displaySequence").setValue(toInteger(sequence)));
return e;
}

Expand Down

0 comments on commit 41f79f6

Please sign in to comment.