use of org.hl7.fhir.dstu3.utils.formats.CSVWriter in project org.hl7.fhir.core by hapifhir.
the class ProfileUtilities method generateCsvs.
// generate a CSV representation of the structure definition
public void generateCsvs(OutputStream dest, StructureDefinition structure, boolean asXml) throws IOException, DefinitionException, Exception {
if (!structure.hasSnapshot())
throw new DefinitionException("needs a snapshot");
CSVWriter csv = new CSVWriter(dest, structure, asXml);
for (ElementDefinition child : structure.getSnapshot().getElement()) {
csv.processElement(child);
}
csv.dump();
}
use of org.hl7.fhir.dstu3.utils.formats.CSVWriter in project org.hl7.fhir.core by hapifhir.
the class ProfileUtilities method generateCsvs.
// generate a CSV representation of the structure definition
public void generateCsvs(OutputStream dest, StructureDefinition structure, boolean asXml) throws IOException, DefinitionException, Exception {
if (!structure.hasSnapshot())
throw new DefinitionException(context.formatMessage(I18nConstants.NEEDS_A_SNAPSHOT));
CSVWriter csv = new CSVWriter(dest, structure, asXml);
for (ElementDefinition child : structure.getSnapshot().getElement()) {
csv.processElement(child);
}
csv.dump();
}
use of org.hl7.fhir.dstu3.utils.formats.CSVWriter in project org.hl7.fhir.core by hapifhir.
the class ProfileUtilities method generateCsvs.
// generate a CSV representation of the structure definition
public void generateCsvs(OutputStream dest, StructureDefinition structure, boolean asXml) throws IOException, DefinitionException, Exception {
if (!structure.hasSnapshot())
throw new DefinitionException("needs a snapshot");
CSVWriter csv = new CSVWriter(dest, structure, asXml);
for (ElementDefinition child : structure.getSnapshot().getElement()) {
csv.processElement(child);
}
csv.dump();
}
use of org.hl7.fhir.dstu3.utils.formats.CSVWriter in project org.hl7.fhir.core by hapifhir.
the class ProfileUtilities method generateCsvs.
// generate a CSV representation of the structure definition
public void generateCsvs(OutputStream dest, StructureDefinition structure, boolean asXml) throws IOException, DefinitionException, Exception {
if (!structure.hasSnapshot())
throw new DefinitionException(context.formatMessage(I18nConstants.NEEDS_A_SNAPSHOT));
CSVWriter csv = new CSVWriter(dest, structure, asXml);
for (ElementDefinition child : structure.getSnapshot().getElement()) {
csv.processElement(child);
}
csv.dump();
}
Aggregations