use of ch.elexis.core.model.IBillingSystemFactor in project elexis-server by elexis.
the class CoverageTypeCodingContribution method loadTypes.
private List<ICoding> loadTypes() {
List<ICoding> ret = new ArrayList<>();
IQuery<IBillingSystemFactor> query = CoreModelServiceHolder.get().getQuery(IBillingSystemFactor.class);
List<IBillingSystemFactor> factors = query.execute();
HashSet<String> uniqueTypes = new HashSet<>();
for (IBillingSystemFactor factor : factors) {
uniqueTypes.add(factor.getSystem());
}
if (!uniqueTypes.isEmpty()) {
for (String string : uniqueTypes) {
ret.add(new TransientCoding(getCodeSystem(), string, string));
}
}
return ret;
}
Aggregations