mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +00:00
code clean up
This commit is contained in:
parent
b60d9e4f81
commit
a327f0312e
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user