go-publish related changes

This commit is contained in:
Grahame Grieve 2023-01-20 11:23:17 +11:00
parent b16fc37b02
commit 68b36d3cb5
1 changed files with 27 additions and 0 deletions

View File

@ -128,6 +128,33 @@ public class PackageList {
public Instant instant() throws ParseException {
return json.asInstant("date");
}
/**
* only used for a technical correction. tcPath is the name of archive file (web reference) containing the content before correction
*
* @param asString
* @param webpath
* @param asString2
* @param asString3
* @param fhirVersion
* @param tcName
*/
public void update(String version, String path, String status, String sequence, FhirPublication fhirVersion, String tcPath, String date) {
JsonObject tc = new JsonObject();
json.forceArray("corrections").add(tc);
tc.set("version", json.asString("version"));
tc.set("path", tcPath);
tc.set("date", date);
json.set("version", version);
json.set("path", path);
json.set("status", status);
json.set("sequence", sequence);
if (fhirVersion != null) {
json.set("fhirversion", fhirVersion.toCode());
}
setDate(date);
}
}
private String source;