Fix displays for some codes in ConceptMap.relationship when rendering + Add Publication Version to rendering context for future use.
This commit is contained in:
parent
1b1b564682
commit
278916ba97
|
@ -0,0 +1,9 @@
|
|||
Validator:
|
||||
|
||||
* Added parameter -want-invariants-in-messages
|
||||
* fix issue with dependencies on IGs that have uppercase in package IDs
|
||||
|
||||
Other Code Changes
|
||||
|
||||
* Fix displays for some codes in ConceptMap.relationship when rendering
|
||||
* Add Publication Version to rendering context for future use.
|
|
@ -327,9 +327,9 @@ public class ConceptMapRenderer extends TerminologyRenderer {
|
|||
} else if ("equivalent".equals(code)) {
|
||||
return "is equivalent to";
|
||||
} else if ("source-is-narrower-than-target".equals(code)) {
|
||||
return "maps to wider concept";
|
||||
return "is narrower then";
|
||||
} else if ("source-is-broader-than-target".equals(code)) {
|
||||
return "maps to narrower target";
|
||||
return "is broader than";
|
||||
} else if ("not-related-to".equals(code)) {
|
||||
return "is not related to";
|
||||
} else {
|
||||
|
|
|
@ -21,8 +21,6 @@ import org.hl7.fhir.utilities.xhtml.XhtmlNode;
|
|||
|
||||
public class PatientRenderer extends ResourceRenderer {
|
||||
|
||||
|
||||
|
||||
public PatientRenderer(RenderingContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,8 @@ import org.hl7.fhir.r5.conformance.ProfileUtilities.ProfileKnowledgeProvider;
|
|||
import org.hl7.fhir.r5.context.IWorkerContext;
|
||||
import org.hl7.fhir.r5.model.Base;
|
||||
import org.hl7.fhir.r5.model.DomainResource;
|
||||
import org.hl7.fhir.r5.model.Enumerations.FHIRVersion;
|
||||
import org.hl7.fhir.r5.model.FhirPublication;
|
||||
import org.hl7.fhir.r5.renderers.utils.Resolver.IReferenceResolver;
|
||||
import org.hl7.fhir.r5.renderers.utils.Resolver.ResourceContext;
|
||||
import org.hl7.fhir.r5.utils.FHIRPathEngine.IEvaluationContext;
|
||||
|
@ -96,6 +98,7 @@ public class RenderingContext {
|
|||
private QuestionnaireRendererMode questionnaireMode = QuestionnaireRendererMode.FORM;
|
||||
private boolean addGeneratedNarrativeHeader = true;
|
||||
|
||||
private FhirPublication targetVersion;
|
||||
/**
|
||||
*
|
||||
* @param context - access to all related resources that might be needed
|
||||
|
@ -392,7 +395,12 @@ public class RenderingContext {
|
|||
return this;
|
||||
}
|
||||
|
||||
public FhirPublication getTargetVersion() {
|
||||
return targetVersion;
|
||||
}
|
||||
|
||||
|
||||
public void setTargetVersion(FhirPublication targetVersion) {
|
||||
this.targetVersion = targetVersion;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue