fix version conversion for OperationDefinition

This commit is contained in:
Grahame Grieve 2020-02-13 21:20:01 +11:00
parent bd40310684
commit 42853db493
2 changed files with 14 additions and 2 deletions

View File

@ -316,6 +316,18 @@ public class VersionConvertor_30_50 {
return tgt; return tgt;
} }
public static org.hl7.fhir.r5.model.MarkdownType convertStringToMarkdown(org.hl7.fhir.dstu3.model.StringType src) throws FHIRException {
org.hl7.fhir.r5.model.MarkdownType tgt = new org.hl7.fhir.r5.model.MarkdownType(src.getValue());
copyElement(src, tgt);
return tgt;
}
public static org.hl7.fhir.dstu3.model.StringType convertMarkdownToString(org.hl7.fhir.r5.model.MarkdownType src) throws FHIRException {
org.hl7.fhir.dstu3.model.StringType tgt = new org.hl7.fhir.dstu3.model.StringType(src.getValue());
copyElement(src, tgt);
return tgt;
}
public static org.hl7.fhir.r5.model.TimeType convertTime(org.hl7.fhir.dstu3.model.TimeType src) throws FHIRException { public static org.hl7.fhir.r5.model.TimeType convertTime(org.hl7.fhir.dstu3.model.TimeType src) throws FHIRException {
org.hl7.fhir.r5.model.TimeType tgt = new org.hl7.fhir.r5.model.TimeType(src.getValue()); org.hl7.fhir.r5.model.TimeType tgt = new org.hl7.fhir.r5.model.TimeType(src.getValue());
copyElement(src, tgt); copyElement(src, tgt);

View File

@ -49,7 +49,7 @@ public class OperationDefinition30_50 {
if (src.hasCodeElement()) if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r5.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement())); tgt.setCodeElement((org.hl7.fhir.r5.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement()));
if (src.hasCommentElement()) if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getCommentElement())); tgt.setCommentElement(VersionConvertor_30_50.convertStringToMarkdown(src.getCommentElement()));
if (src.hasBase()) if (src.hasBase())
tgt.setBaseElement(VersionConvertor_30_50.convertReferenceToCanonical(src.getBase())); tgt.setBaseElement(VersionConvertor_30_50.convertReferenceToCanonical(src.getBase()));
if (src.hasResource()) { if (src.hasResource()) {
@ -109,7 +109,7 @@ public class OperationDefinition30_50 {
if (src.hasCodeElement()) if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement())); tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement()));
if (src.hasCommentElement()) if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getCommentElement())); tgt.setCommentElement(VersionConvertor_30_50.convertMarkdownToString(src.getCommentElement()));
if (src.hasBase()) if (src.hasBase())
tgt.setBase(VersionConvertor_30_50.convertCanonicalToReference(src.getBaseElement())); tgt.setBase(VersionConvertor_30_50.convertCanonicalToReference(src.getBaseElement()));
if (src.hasResource()) { if (src.hasResource()) {