Search in sources :

Example 1 with FilterOperator

use of org.hl7.fhir.dstu3.model.ValueSet.FilterOperator in project org.hl7.fhir.core by hapifhir.

the class CodeSystemSpreadsheetGenerator method addFilters.

private void addFilters(List<CodeSystemFilterComponent> filters) {
    Sheet sheet = makeSheet("Filters");
    addHeaders(sheet, "Code", "Description", "Operators", "Value");
    for (CodeSystemFilterComponent f : filters) {
        CommaSeparatedStringBuilder cs = new CommaSeparatedStringBuilder();
        for (Enumeration<FilterOperator> op : f.getOperator()) {
            cs.append(op.asStringValue());
        }
        addRow(sheet, f.getCode(), f.getDescription(), cs.toString(), f.getValue());
    }
}
Also used : FilterOperator(org.hl7.fhir.r5.model.Enumerations.FilterOperator) CodeSystemFilterComponent(org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent) CommaSeparatedStringBuilder(org.hl7.fhir.utilities.CommaSeparatedStringBuilder) Sheet(org.apache.poi.ss.usermodel.Sheet)

Example 2 with FilterOperator

use of org.hl7.fhir.dstu3.model.ValueSet.FilterOperator in project org.hl7.fhir.core by hapifhir.

the class CodeSystemSpreadsheetGenerator method addFilters.

private void addFilters(List<CodeSystemFilterComponent> filters) {
    Sheet sheet = makeSheet("Filters");
    addHeaders(sheet, "Code", "Description", "Operators", "Value");
    for (CodeSystemFilterComponent f : filters) {
        CommaSeparatedStringBuilder cs = new CommaSeparatedStringBuilder();
        for (Enumeration<FilterOperator> op : f.getOperator()) {
            cs.append(op.asStringValue());
        }
        addRow(sheet, f.getCode(), f.getDescription(), cs.toString(), f.getValue());
    }
}
Also used : FilterOperator(org.hl7.fhir.r4b.model.Enumerations.FilterOperator) CodeSystemFilterComponent(org.hl7.fhir.r4b.model.CodeSystem.CodeSystemFilterComponent) CommaSeparatedStringBuilder(org.hl7.fhir.utilities.CommaSeparatedStringBuilder) Sheet(org.apache.poi.ss.usermodel.Sheet)

Aggregations

Sheet (org.apache.poi.ss.usermodel.Sheet)2 CommaSeparatedStringBuilder (org.hl7.fhir.utilities.CommaSeparatedStringBuilder)2 CodeSystemFilterComponent (org.hl7.fhir.r4b.model.CodeSystem.CodeSystemFilterComponent)1 FilterOperator (org.hl7.fhir.r4b.model.Enumerations.FilterOperator)1 CodeSystemFilterComponent (org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent)1 FilterOperator (org.hl7.fhir.r5.model.Enumerations.FilterOperator)1