code clean up

This commit is contained in:
Grahame Grieve 2023-10-28 06:35:20 +11:00
parent b60d9e4f81
commit a327f0312e
4 changed files with 0 additions and 6 deletions

View File

@ -276,9 +276,6 @@ public class FhirRequestBuilder {
if (error != null) {
String s = ResourceUtilities.getErrorDescription(error);
System.out.println(s);
if (s.startsWith("Unable to find value set")) {
System.out.println("!");
}
throw new EFhirClientException("Error from "+source+": " + ResourceUtilities.getErrorDescription(error), error);
}

View File

@ -130,7 +130,6 @@ public abstract class ParserBase {
public abstract void compose(Element e, OutputStream destination, OutputStyle style, String base) throws FHIRException, IOException;
//FIXME: i18n should be done here
public void logError(List<ValidationMessage> errors, String ruleDate, int line, int col, String path, IssueType type, String message, IssueSeverity level) throws FHIRFormatError {
if (errors != null) {
if (policy == ValidationPolicy.EVERYTHING) {

View File

@ -119,7 +119,6 @@ public class PackageClient {
try {
return obj.hasString("date") ? obj.asDate("date") : null;
} catch (DateTimeParseException e) {
//FIXME Some IGs use an older date format:
try {
return new SimpleDateFormat("yyyyMMddhhmmss").parse(obj.getJsonString("date").asString()).toInstant();
} catch (ParseException ex) {

View File

@ -351,7 +351,6 @@ public class BaseValidator implements IValidationContextResourceLoader {
* Set this parameter to <code>false</code> if the validation does not pass
* @return Returns <code>thePass</code> (in other words, returns <code>true</code> if the rule did not fail validation)
*/
//FIXME: formatMessage should be done here
protected boolean slicingHint(List<ValidationMessage> errors, String ruleDate, IssueType type, int line, int col, String path, boolean thePass, boolean isCritical, String msg, String html, String[] text) {
if (!thePass && doingHints()) {
addValidationMessage(errors, ruleDate, type, line, col, path, msg, IssueSeverity.INFORMATION, null).setSlicingHint(true).setSliceHtml(html, text).setCriticalSignpost(isCritical);