Search in sources :

Example 1 with IBillingSystemFactor

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;
}
Also used : ICoding(ch.elexis.core.findings.ICoding) IBillingSystemFactor(ch.elexis.core.model.IBillingSystemFactor) ArrayList(java.util.ArrayList) TransientCoding(ch.elexis.core.findings.util.model.TransientCoding) HashSet(java.util.HashSet)

Aggregations

ICoding (ch.elexis.core.findings.ICoding)1 TransientCoding (ch.elexis.core.findings.util.model.TransientCoding)1 IBillingSystemFactor (ch.elexis.core.model.IBillingSystemFactor)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1