fix missing extensions when converting value set properties
This commit is contained in:
parent
f52df7c0cc
commit
93e1b3e4b3
|
@ -465,7 +465,11 @@ public class ValueSet40_50 {
|
|||
tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
|
||||
for (org.hl7.fhir.r4.model.Extension t : src.getExtension()) {
|
||||
if ("http://hl7.org/fhir/5.0/StructureDefinition/extension-ValueSet.expansion.contains.property".equals(t.getUrl())) {
|
||||
tgt.addProperty().setCode(t.getExtensionString("code")).setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(t.getExtensionByUrl("value").getValue()));
|
||||
ConceptPropertyComponent prop = tgt.addProperty();
|
||||
ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(t, prop, "code", "value");
|
||||
prop.setCode(t.getExtensionString("code"));
|
||||
prop.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(t.getExtensionByUrl("value").getValue()));
|
||||
|
||||
}
|
||||
}
|
||||
for (org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains())
|
||||
|
@ -494,6 +498,7 @@ public class ValueSet40_50 {
|
|||
tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
|
||||
for (org.hl7.fhir.r5.model.ValueSet.ConceptPropertyComponent t : src.getProperty()) {
|
||||
org.hl7.fhir.r4.model.Extension ext = tgt.addExtension().setUrl("http://hl7.org/fhir/5.0/StructureDefinition/extension-ValueSet.expansion.contains.property");
|
||||
ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(t, ext, "code", "value");
|
||||
ext.addExtension().setUrl("code").setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(t.getCodeElement()));
|
||||
ext.addExtension().setUrl("value").setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(t.getValue()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue