mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-07 21:38:15 +00:00
Release new version
This commit is contained in:
parent
a418f90672
commit
3de429ae6a
@ -80,6 +80,7 @@ import org.hl7.fhir.dstu3.model.Reference;
|
||||
import org.hl7.fhir.dstu3.model.Type;
|
||||
import org.hl7.fhir.utilities.CSVReader;
|
||||
import org.hl7.fhir.utilities.IniFile;
|
||||
import org.hl7.fhir.utilities.TextFile;
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
||||
public class Mimic14Importer {
|
||||
@ -561,7 +562,7 @@ public class Mimic14Importer {
|
||||
} else {
|
||||
throw new FHIRException("Unhandled Note type '"+cat+"'/'"+desc+"'");
|
||||
}
|
||||
dr.addContent().getAttachment().setContentType("text/plain; charset=UTF-8").setData(csv.cell("text").getBytes(Charset.forName("UTF-8")));
|
||||
dr.addContent().getAttachment().setContentType("text/plain; charset=UTF-8").setData(TextFile.stringToBytes(csv.cell("text"), false));
|
||||
bnd.addEntry().setResource(dr);
|
||||
}
|
||||
System.out.println(Integer.toString(t)+" found");
|
||||
|
@ -76,6 +76,7 @@ import org.hl7.fhir.r4.model.Reference;
|
||||
import org.hl7.fhir.r4.model.Type;
|
||||
import org.hl7.fhir.utilities.CSVReader;
|
||||
import org.hl7.fhir.utilities.IniFile;
|
||||
import org.hl7.fhir.utilities.TextFile;
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
||||
public class Mimic14Importer {
|
||||
@ -561,7 +562,7 @@ public class Mimic14Importer {
|
||||
} else {
|
||||
throw new FHIRException("Unhandled Note type '"+cat+"'/'"+desc+"'");
|
||||
}
|
||||
dr.addContent().getAttachment().setContentType("text/plain; charset=UTF-8").setData(csv.cell("text").getBytes(Charset.forName("UTF-8")));
|
||||
dr.addContent().getAttachment().setContentType("text/plain; charset=UTF-8").setData(TextFile.stringToBytes(csv.cell("text"), false));
|
||||
bnd.addEntry().setResource(dr);
|
||||
}
|
||||
System.out.println(Integer.toString(t)+" found");
|
||||
|
@ -324,7 +324,7 @@ public class NPMPackageGenerator {
|
||||
}
|
||||
|
||||
private void buildIndexJson() throws IOException {
|
||||
byte[] content = indexer.build().getBytes(Charset.forName("UTF-8"));
|
||||
byte[] content = TextFile.stringToBytes(indexer.build(), false);
|
||||
addFile(Category.RESOURCE, ".index.json", content);
|
||||
}
|
||||
|
||||
|
@ -182,7 +182,7 @@ public class NpmPackage {
|
||||
indexer.seeFile(n.substring(8), res.content.get(n));
|
||||
}
|
||||
}
|
||||
res.content.put("package/.index.json", indexer.build().getBytes(Charsets.UTF_8));
|
||||
res.content.put("package/.index.json", TextFile.stringToBytes(indexer.build(), false));
|
||||
}
|
||||
try {
|
||||
res.npm = JsonTrackingParser.parseJson(res.content.get("package/package.json"));
|
||||
@ -526,7 +526,7 @@ public class NpmPackage {
|
||||
tar.closeArchiveEntry();
|
||||
}
|
||||
}
|
||||
byte[] cnt = new GsonBuilder().setPrettyPrinting().create().toJson(npm).getBytes(Charset.forName("UTF-8"));
|
||||
byte[] cnt = TextFile.stringToBytes(new GsonBuilder().setPrettyPrinting().create().toJson(npm), false);
|
||||
TarArchiveEntry entry = new TarArchiveEntry("package/package.json");
|
||||
entry.setSize(cnt.length);
|
||||
tar.putArchiveEntry(entry);
|
||||
|
Loading…
x
Reference in New Issue
Block a user