From 816f1832d5da10e7ceb5b6346ffa3b815d0e22cb Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 27 Jul 2022 22:38:09 +1000 Subject: [PATCH] fix phinvads format --- .../java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java index 8c18746c5..4a0b26d88 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java @@ -1,6 +1,7 @@ package org.hl7.fhir.convertors.misc; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.formats.IParser.OutputStyle; import org.hl7.fhir.r5.formats.JsonParser; import org.hl7.fhir.r5.model.Enumerations.PublicationStatus; import org.hl7.fhir.r5.model.ValueSet; @@ -36,7 +37,7 @@ public class PhinVadsImporter extends OIDBasedValueSetImporter { System.out.println("Process " + f.getName()); ValueSet vs = importValueSet(TextFile.fileToBytes(f)); if (vs.getId() != null) { - new JsonParser().compose(new FileOutputStream(Utilities.path(dest, "ValueSet-" + vs.getId() + ".json")), vs); + new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.path(dest, "ValueSet-" + vs.getId() + ".json")), vs); } } catch (Exception e) { e.printStackTrace();