fix narrative rendering
This commit is contained in:
parent
db0413c735
commit
b23e31d44c
|
@ -114,6 +114,7 @@ public class ValueSetProcessBase {
|
|||
}
|
||||
|
||||
public void checkCanonical(List<OperationOutcomeIssueComponent> issues, String path, CanonicalResource resource) {
|
||||
if (resource != null) {
|
||||
StandardsStatus standardsStatus = ToolingExtensions.getStandardsStatus(resource);
|
||||
if (standardsStatus == StandardsStatus.DEPRECATED) {
|
||||
addToIssues(issues, makeStatusIssue(path, "deprecated", I18nConstants.MSG_DEPRECATED, resource));
|
||||
|
@ -123,6 +124,7 @@ public class ValueSetProcessBase {
|
|||
addToIssues(issues, makeStatusIssue(path, "retired", I18nConstants.MSG_RETIRED, resource));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private List<OperationOutcomeIssueComponent> makeStatusIssue(String path, String id, String msg, CanonicalResource resource) {
|
||||
List<OperationOutcomeIssueComponent> iss = makeIssue(IssueSeverity.INFORMATION, IssueType.EXPIRED, path, context.formatMessage(msg, resource.getVersionedUrl()));
|
||||
|
@ -149,6 +151,7 @@ public class ValueSetProcessBase {
|
|||
}
|
||||
|
||||
public void checkCanonical(ValueSetExpansionComponent params, CanonicalResource resource) {
|
||||
if (resource != null) {
|
||||
StandardsStatus standardsStatus = ToolingExtensions.getStandardsStatus(resource);
|
||||
if (standardsStatus == StandardsStatus.DEPRECATED) {
|
||||
if (!params.hasParameterValue("warning-deprecated", resource.getVersionedUrl())) {
|
||||
|
@ -164,6 +167,7 @@ public class ValueSetProcessBase {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected AlternateCodesProcessingRules altCodeParams = new AlternateCodesProcessingRules(false);
|
||||
|
|
Loading…
Reference in New Issue